24-Hour to 12-Hour Time Converter
Instantly convert 24-hour (military) time to 12-hour AM/PM format. Features a smart bidirectional parser, visual analog clock, and reference charts.
About
This tool eliminates the confusion between the 24-hour time system (often called Military Time in the US) and the 12-hour AM/PM system. While the 24-hour clock is the international standard (ISO 8601) used in aviation, medicine, and computing to avoid ambiguity, the 12-hour format remains dominant in everyday life in North America and parts of the UK.
The primary risk in manual conversion is the Midnight/Noon Phase. For example, 12:00 AM is the start of the day (00:00), while 12:00 PM is noon (12:00). This tool uses strict modulo arithmetic to handle these edge cases, ensuring precision for scheduling, logs, or timestamping.
Formulas
The conversion logic relies on Modular Arithmetic to cycle the hours. The minutes m remain constant between formats.
Where h24 is the hour in 24-hour format and h12 is the hour in 12-hour format.
Reference Data
| 24-Hour (Military) | 12-Hour (AM/PM) | Day Period |
|---|---|---|
| 00:00 | 12:00 AM | Midnight (Start of Day) |
| 01:00 | 1:00 AM | Late Night |
| 02:00 | 2:00 AM | Late Night |
| 03:00 | 3:00 AM | Early Morning |
| 04:00 | 4:00 AM | Early Morning |
| 05:00 | 5:00 AM | Early Morning |
| 06:00 | 6:00 AM | Morning |
| 07:00 | 7:00 AM | Morning |
| 08:00 | 8:00 AM | Morning |
| 09:00 | 9:00 AM | Morning |
| 10:00 | 10:00 AM | Morning |
| 11:00 | 11:00 AM | Morning |
| 12:00 | 12:00 PM | Noon (Midday) |
| 13:00 | 1:00 PM | Afternoon |
| 14:00 | 2:00 PM | Afternoon |
| 15:00 | 3:00 PM | Afternoon |
| 16:00 | 4:00 PM | Afternoon |
| 17:00 | 5:00 PM | Late Afternoon |
| 18:00 | 6:00 PM | Evening |
| 19:00 | 7:00 PM | Evening |
| 20:00 | 8:00 PM | Evening |
| 21:00 | 9:00 PM | Night |
| 22:00 | 10:00 PM | Night |
| 23:00 | 11:00 PM | Night |