Theory test centres are listed on the official government finder, where you search by postcode and book your slot. Here's the right link for your nation, plus what to know before you go.
Centre locations, live availability and booking are all handled on the official government service. Choose the finder for your nation:
It catches people out, so it is worth knowing before you travel.
Where you sit the 50 multiple-choice questions and the hazard perception clips on a computer. Run for the DVSA at sites across England, Scotland and Wales (the DVA in Northern Ireland). This is the centre this page helps you find.
Where you take your on-road driving test after you have passed the theory. It is usually a separate location, sometimes several miles from the theory centre, so check both when the time comes.
A few things that can save you weeks of waiting.
Waiting times vary a lot between centres. A slightly further centre can have a far earlier slot, so compare several before booking.
New slots appear when other people cancel or reschedule. Looking at a couple of nearby centres and checking again later often turns up an earlier date.
The car theory test is £23. Only ever book through the official service — third-party sites charge a markup to book the very same test.
Walk in ready. Practise full mock tests and revise every topic for free.