12 Hour to 24 Hour Clock Converter
Convert between 12-hour (AM/PM) and 24-hour (military) time formats easily.
12h / 24h Time Converter
Result
13:00
12 hour to 24 hour clock converter
Formula
12-hour to 24-hour:
\\text{24hour} = \\begin{cases} \\text{hour} + 12 & \\text{if PM and hour \\neq 12} \\\\ \\text{hour} & \\text{if AM and hour \\neq 12} \\\\ 0 & \\text{if AM and hour = 12} \\\\ 12 & \\text{if PM and hour = 12} \\end{cases}24-hour to 12-hour:
\\text{12hour} = \\begin{cases} \\text{hour} & \\text{if hour > 12} \\\\ \\text{hour} & \\text{if hour = 0 or 12} \\\\ \\text{hour} & \\text{if hour < 12} \\end{cases}Worked examples
3:30 PM to 24-hour:
- PM and hour ≠ 12, so: 3 + 12 = 15
- Result: 15:30
12:00 AM to 24-hour:
- AM and hour = 12, so: 0
- Result: 00:00 (midnight)
14:45 to 12-hour:
- hour > 12, so: 14 - 12 = 2
- Result: 2:45 PM
00:15 to 12-hour:
- hour = 0, so: 12
- Result: 12:15 AM
How to use
- Enter the time in either 12-hour or 24-hour format
- Click "Convert" to see the conversion
Time conversion table
| 12-hour | 24-hour | |---------|---------| | 12:00 AM | 00:00 | | 1:00 AM | 01:00 | | 12:00 PM | 12:00 | | 1:00 PM | 13:00 | | 2:00 PM | 14:00 | | 3:00 PM | 15:00 | | 4:00 PM | 16:00 | | 5:00 PM | 17:00 | | 6:00 PM | 18:00 | | 7:00 PM | 19:00 | | 8:00 PM | 20:00 | | 9:00 PM | 21:00 | | 10:00 PM | 22:00 | | 11:00 PM | 23:00 |
Common use cases
- Programming and computing
- Military and aviation
- Healthcare (medication schedules)
- International communication
- Software development
FAQ
What is 12 AM? Midnight (00:00), the start of the day.
What is 12 PM? Noon (12:00), the middle of the day.
Is 12:00 AM before or after 12:00 PM? 12:00 AM is at the start of the day, 12:00 PM is at midday.
Why 24-hour time? It eliminates ambiguity and is the international standard (ISO 8601).
Can I use AM/PM with 24-hour? No, 24-hour time uses hours 00-23 without AM/PM suffixes.
What about seconds? Both formats support seconds: 12:30:45 PM = 12:30:45.