If you are not an EEA citizen or citizen of countries exempt from visitor's visa you might need a visa to pass through the UK in transit (on your way to another country).
In order to qualify for a transit visa you must prove that:
- you'll be in transit to another country, with enough funds and the intention to travel on
- you can enter that country
- the only purpose of your visit to the UK is transit