How the conversion works
24-hour clock time is mapped to the 12-hour AM/PM format used in everyday speech and analog clocks.
- hour24 — 24-hour clock hour (0–23)
- minute — minute (0–59)
More detail
Why noon and midnight are special
0:00 and 12:00 don't map to "0" or a plain "12" — by convention midnight is 12 AM and noon is 12 PM, both keeping the number 12 instead of wrapping to 0. Every other hour just wraps mod 12: 13h becomes 1 PM, 23h becomes 11 PM.
Practical tip. Useful for reading 24-hour timestamps from logs, tickets, or international schedules into the AM/PM format most people read faster.
Frequently asked questions
What is 14:30 in 12-hour format?
2:30 PM. Since 13–23h map to 1–11 PM, 14h becomes 2 PM — enter hour 14 and minute 30 above to see it computed.
Is 00:00 12 AM or 12 PM?
12 AM. Midnight (0h) is a special case that displays as 12 AM rather than 0 AM, per standard 12-hour clock convention.
Is 12:00 noon 12 AM or 12 PM?
12 PM. Noon (12h) also keeps the number 12 rather than wrapping, and is labeled PM since it marks the start of the afternoon half of the day.
How do I convert 23:59 to 12-hour time?
11:59 PM. 23h wraps to 11 (23 mod 12) and is in the 13–23h PM range.