What is a 12-Hour to 24-Hour Time Converter?
This tool converts the everyday 12-hour clock — the AM/PM system used in the United States, the United Kingdom and many other English-speaking countries — into 24-hour "military" time. In the 24-hour system there is no AM or PM: the day runs continuously from 00:00 (midnight) to 23:59 (one minute before the next midnight). This format is standard in aviation, the military, healthcare, computing and most of the world's railway and broadcast schedules.
How to Use It
Enter the hour (1–12), the minute (0–59), and select AM or PM. The converter returns the exact 24-hour equivalent, formatted as HH:MM, along with the numeric hour and a four-digit military value such as 1330.
The Formula Explained
The conversion uses one simple rule:
$$H_{24} = (h \bmod 12) + 12 \cdot [\text{PM}]$$For PM times, take the hour modulo 12 and add 12: 1 PM → \((1 \bmod 12) + 12 = 13\). For AM times, take the hour modulo 12 with no addition: this turns 12 AM into 0, which is written as 00:00. Note the two special cases — 12 AM is midnight (00:00) and 12 PM is noon (12:00).
Worked Example
Convert 9:30 AM. The hour is 9 and the period is AM, so
$$H_{24} = 9 \bmod 12 = 9$$The result is 09:30, with a military value of 0930. Now convert 9:30 PM:
$$H_{24} = (9 \bmod 12) + 12 = 21$$giving 21:30 or 2130 hours.
FAQ
What is 12 AM in 24-hour time? 12 AM is midnight, written as 00:00. Twelve modulo 12 equals 0.
What is 12 PM in 24-hour time? 12 PM is noon, written as 12:00, because \((12 \bmod 12) + 12 = 12\).
Is "military time" the same as 24-hour time? Yes — the format is identical. Military usage typically drops the colon (e.g. 1330) and reads it as "thirteen thirty hours."