What is the Military Time Converter?
This tool converts time between the everyday 12-hour clock (with am and pm) and 24-hour "military" time. Military time runs from 0000 (midnight) to 2359, removing the am/pm ambiguity that the 12-hour clock has. The converter shows your time in three formats at once: regular 12-hour time, military "hours" notation (for example 1624 hours), and 24-hour colon notation (16:24).
How to use it
Type any time in the single Time box and press calculate. The tool recognizes the format by itself: military time such as 1624, 0008 or 730, 24-hour time with a colon such as 16:24 or 16:24:30, and regular time with am or pm such as 4:24 pm, 5pm or 4 p.m. One or two digits up to 24 are read as an hour, so 16 means 1600; to enter minutes after midnight, type four digits such as 0016. The result shows regular time, military time, 24-hour time, how to say it, and decimal hours.
The formula explained
The converter first reduces any input to a canonical 24-hour hour H (0–24) and minute mm. From a regular time: if it is am, 12 becomes 0 and every other hour stays the same; if it is pm, 12 stays 12 and every other hour gains 12.
$$H = \begin{cases} 0 & h=12,\ \text{am} \\ h & 1\le h\le 11,\ \text{am} \\ 12 & h=12,\ \text{pm} \\ h+12 & 1\le h\le 11,\ \text{pm} \end{cases}$$From military time, the hour is the value divided by 100 (dropping the remainder) and the minute is the value modulo 100.
$$H=\left\lfloor \tfrac{R}{100}\right\rfloor,\quad mm = R \bmod 100$$0000 is midnight at the start of the day and 2400 is midnight at the end of the day; both are 12:00 am on the 12-hour clock.
Worked example
Convert 4:24 pm to military time. Because it is pm and the hour is not 12, add 12: \(H = 4 + 12 = 16\), with \(mm = 24\). The outputs are regular "4:24 pm", military "1624 hours", and 24-hour "16:24".
FAQ
Is midnight 0000 or 2400? Both notations are used. By convention the start of the day is 0000 and the end of the day is 2400; this tool keeps what you type, so 0000 is shown as the start of the day and 2400 as the end of the day.
What is 12:00 pm in military time? Noon is 1200 hours. Many people confuse it with midnight, but 12:00 am (0000) is midnight and 12:00 pm (1200) is noon.
How are minutes handled? Minutes stay the same in every format and are always shown with two digits, so 7 minutes becomes 07.