Yes, you require a Transit Visa to Dubai and must apply for a transit visa in Dubai beforehand, unless you’re eligible for a Dubai Visa on Arrival.
The visa for Dubai transit is valid for 96 hours from the date of entry.
The entry validity of a UAE transit visa is for 14 days from the date of issue.
The Dubai transit e visa is the shortest duration of visa, and the 60 days Dubai visa is the longest duration of visa available in the UAE.