How long will it take to apply for a VISA to the UK?

You can apply for a visa up to 3 months before your date of travel to the UK. UKVI say that you should get a decision on your visa within 3 weeks, however some may take longer.

Please check this guide to find out how long getting a visa might take in the country you’re applying from: guide processing times