For a layover in Dubai (e.g., around 7 hours) on the way to Toronto, whether you need a transit visa depends on what you plan to do during the layover:
- If you stay within the airport transit area, no visa is generally required.
- If you plan to leave the airport, you'll need a visa to enter the UAE, even for a short stay.
- If you already hold a valid US visa, you may be eligible for a UAE visa-on-arrival — historically around 100 AED — which is a faster option than applying for a UAE visa in advance.
UAE transit and visa-on-arrival policies depend on your nationality and can change, so confirm current requirements with your airline or the UAE's official immigration resources before your trip.