How It Works – Military Time Converter

24-hour time runs from 00:00 to 23:59. Learn the rules, edge cases, and examples for converting to 12‑hour time.

24‑Hour → 12‑Hour Conversion Rules

  1. For hours 00–11, keep the hour (00 becomes 12) and add AM.
  2. For hours 12–23, subtract 12 if over 12 (e.g., 13 → 1) and add PM.
  3. Minutes and seconds stay the same (e.g., 17:04:09 → 5:04:09 PM).

Edge cases: 12:00 AM is midnight (00:00). 12:00 PM is noon (12:00). Some timetables use 24:00 for day end; treat it as 00:00 next day.

Examples

  • 0000 → 12:00 AM
  • 0105 → 1:05 AM
  • 1045 → 10:45 AM
  • 1320 → 1:20 PM
  • 2359 → 11:59 PM

Speak It

  • 0900 → “oh‑nine hundred”
  • 1730 → “seventeen thirty”
  • 0030 → “zero thirty” or “oh‑thirty”

Why Use 24‑Hour Time?

It eliminates AM/PM ambiguity, aligns with ISO time formats, and reduces mistakes in transport, healthcare, aviation, security, and global operations.

Pitfalls & Edge Cases

  • 12 AM vs 12 PM: 12:00 AM is midnight, 12:00 PM is noon. Never swap them.
  • Leading zeros: 09:05 is valid in 24-hour; in 12-hour you’d write 9:05 AM (no leading zero on the hour).
  • 24:00 vs 00:00: 24:00 marks day end on some schedules; convert it to 00:00 of the next day.
  • Seconds optional: If not provided, assume :00. Our converter accepts seconds both ways.

Time Zone Awareness

Military/24-hour time is just a clock format, not a time zone. Two tips:

  1. Always record the zone if events cross regions (e.g., “14:30 UTC-5”).
  2. Convert format first, then convert zone if needed.

The live clock on the homepage uses your device time zone for “now”.

Math Tricks

  • 13–23 hours: subtract 12 for 12-hour: 18:10 → 6:10 PM.
  • AM range: 00–11 → AM (00 → 12 AM).
  • PM range: 12–23 → PM (12 → 12 PM).
  • Back to 24-hour: add 12 to 1–11 PM (e.g., 7:45 PM → 19:45); keep 12 PM at 12:xx; 12 AM → 00:xx.

Practice Conversions

24 → 12

  • 07:20 → 7:20 AM
  • 12:00 → 12:00 PM
  • 14:05:09 → 2:05:09 PM
  • 23:59 → 11:59 PM

12 → 24

  • 12:00 AM → 00:00
  • 6:45 AM → 06:45
  • 12:00 PM → 12:00
  • 9:30:06 PM → 21:30:06

Glossary

  • 24-hour time: 00:00–23:59 with no AM/PM.
  • 12-hour time: 1–12 with AM or PM suffix.
  • UTC: Coordinated Universal Time (reference time zone).
  • Z (Zulu): Military letter for UTC (e.g., 1400Z = 14:00 UTC).

History & Standards

The 24-hour clock predates digital timekeeping and is widely standardized via ISO 8601, which orders date-time elements from largest to smallest, making logs and filenames easy to sort. Militaries and civil services adopted it to remove AM/PM ambiguity across long shifts and time zones.

Practice Quiz

  1. Convert 18:55 → 6:55 PM
  2. Convert 12:07 AM → 00:07
  3. Convert 9:10 PM → 21:10
  4. Convert 00:45 → 12:45 AM

Advanced Walkthrough

Normalize input (strip spaces and punctuation), parse hours/minutes/seconds, map the hour to AM/PM ranges, then format with the chosen style. Validate ranges carefully to prevent off-by-one mistakes.

  • Parse → Validate → Convert hour → Append AM/PM → Reassemble
  • 12 AM → 00:xx; 12 PM → 12:xx; 1–11 PM → +12

Worked Problems

  1. 18:03:04 → 6:03:04 PM (subtract 12, keep minutes/seconds)
  2. 12:04 AM → 00:04 (12 AM becomes 00)
  3. 9:09 PM → 21:09 (add 12 to 1–11 PM)