A woman has won a legal battle to remove her late partner's testicles from his dead body in the hope of using his sperm to have a child.

The Toowoomba woman was granted permission to remove his testicles in the Queensland Supreme Court.

The woman lodged an urgent application to perform the procedure the day after her fiance died unexpectedly in April, the ABC reported.

A Toowoomba woman has won permission to remove her dead partner's testicles in the hope of using his sperm to get pregnant

Several of the couple's friends presented evidence in court supporting their desire to have a child together.

The two met in September last year, became engaged a month later and were planning to get married in late 2016.

At the time of her fiance's death the pair were already trying for a child.

The woman hopes to use his sperm to get pregnant via in-vitro fertilization, or IVF. The sperm will be stored at a fertility clinic until she is ready

Justice Martin Burns granted the request to remove the testicles but said another application must be made before the sperm was used.

He said this would give the woman the chance to think about whether she really wanted to go through with her pregnancy.

In the meantime, the man's testicles will be stored at an IVF facility.

IVF is a process by which a woman's eggs are fertilised by sperm in a laboratory setting which mimics pregnancy.

Lawyers representing the deceased man did not oppose the application.