The UK airport with the longest single runway is London Heathrow Airport (LHR).
Its northern runway (09L/27R) is 3,902 metres (12,802 feet) long, and its southern runway (09R/27L) is 3,658 metres (12,005 feet) long.
However, if you are asking about the airport with the longest possible runway available for use, that title goes to a military airfield:
For context, here are other UK airports with notably long runways:
Important Distinction: Civilian Airport: Heathrow has the longest runways. Overall (including military): RAF Brize Norton is comparable, but Heathrow’s northern runway is still the longest paved runway in the UK.
Heathrow’s exceptionally long runways are necessary to accommodate fully laden, large long-haul aircraft (like the Boeing 747 and Airbus A380) on hot days or when flying to distant destinations, as they require more runway length to take off.