The formula behind it
24 h = hours + 12 (PM only) • 12 h = hours − 12 (afternoon) with AM/PM labels- 00:00
- midnight — 12 AM in 12-hour terms
- 12:00
- noon — 12 PM in 12-hour terms
The two midnight conventions are where conversions break: 12 AM is 00:00 and 12 PM is 12:00, handled explicitly in both directions. Everything else is a mechanical +12 for afternoon hours or a −12 with a label swap.
How to use this calculator
- 1
Choose 12→24 or 24→12 conversion.
- 2
Enter the time with its AM/PM (or as 24-hour).
- 3
Read the converted time.
Worked examples
Afternoon meeting
2:30 PM → 14:30. In reverse, 14:30 → 2:30 PM.
The midnight edge
12 AM → 00:00 and 00:15 → 12:15 AM — the two cases people get wrong, done right.