The pioneering toilet, the result of collaboration between global aid agency Oxfam and the University of the West of England in Bristol, uses live microbes which feed on urine and convert it into power.
"Living in a refugee camp is hard enough without the added threat of being assaulted in dark places at night. The potential of this is huge," Andy Bastable, head of water and sanitation at Oxfam, said in a statement.
The first toilet will be sent to a refugee camp within the next six months, and after testing will be rolled out more widely, initially in camps, but possibly also in other places without electricity, Oxfam said.
"This technology is about as green as it gets, as we do not need to use fossil fuels and we are effectively using a waste product that will be in plentiful supply," said Ioannis Ieropoulos, director of the Bristol BioEnergy Centre and leader of the team that developed the toilet.
Bastable and Ieropoulos say it is the sustainability of the technology - it just needs a plentiful supply of urine - that makes it practical for aid agencies to use the toilet in the field.
"One microbial fuel cell costs about 1 pound ($2) to make, and we think that a small unit like the demo we have mocked up for this experiment could cost as little as 600 pounds to set up, which is a significant bonus as this technology is, in theory, everlasting," said Ieropoulos.
The prototype toilet, conveniently located near the University of the West of England's student union bar, was successfully tested by students who found it produced enough electricity to power a light bulb. ($1 = 0.6546 pounds)