Military Time Converter

Convert 12-hour AM/PM time to 24-hour military time and back. Noon is 12:00 and midnight is 00:00.

12-hour to 24-hour time

Include AM or PM, like 5:30 PM or 9am.

24-hour time Enter a 12-hour time.

24-hour to 12-hour time

Use 00:00 to 23:59, with or without the colon (1730).

12-hour time Enter a 24-hour time.

Copy the text

Your browser didn’t allow automatic copying. The text below is selected. Press Ctrl+C (or ⌘C on a Mac) to copy it.

12-hour to 24-hour time chart

Each hour of the day in 12-hour, 24-hour, and military format
12-hour 24-hour Military
12:00 AM (Midnight) 00:00 0000
1:00 AM 01:00 0100
2:00 AM 02:00 0200
3:00 AM 03:00 0300
4:00 AM 04:00 0400
5:00 AM 05:00 0500
6:00 AM 06:00 0600
7:00 AM 07:00 0700
8:00 AM 08:00 0800
9:00 AM 09:00 0900
10:00 AM 10:00 1000
11:00 AM 11:00 1100
12:00 PM (Noon) 12:00 1200
1:00 PM 13:00 1300
2:00 PM 14:00 1400
3:00 PM 15:00 1500
4:00 PM 16:00 1600
5:00 PM 17:00 1700
6:00 PM 18:00 1800
7:00 PM 19:00 1900
8:00 PM 20:00 2000
9:00 PM 21:00 2100
10:00 PM 22:00 2200
11:00 PM 23:00 2300

How to convert between 12-hour and 24-hour time

12-hour to 24-hour

  • 12:00 AM to 12:59 AM: change 12 to 00 (12:30 AM → 00:30).
  • 1:00 AM to 11:59 AM: keep the hour, adding a leading zero if needed (7:05 AM → 07:05).
  • 12:00 PM to 12:59 PM: keep 12 (12:45 PM → 12:45).
  • 1:00 PM to 11:59 PM: add 12 to the hour (5:30 PM → 17:30).

24-hour to 12-hour

  • 00:00 to 00:59: the hour is 12 AM (00:15 → 12:15 AM).
  • 01:00 to 11:59: keep the hour and add AM (09:40 → 9:40 AM).
  • 12:00 to 12:59: keep 12 and add PM (12:10 → 12:10 PM).
  • 13:00 to 23:59: subtract 12 and add PM (21:00 → 9:00 PM).

The converter rejects times that don’t exist, such as 13:00 PM or 25:10, instead of guessing. See the methodology page for the accepted formats.

Examples

Midnight

12:00 AM = 00:00 (0000).

Noon

12:00 PM = 12:00 (1200).

Evening shift

5:30 PM = 17:30 (1730).

Early morning

0645 = 6:45 AM.

Frequently asked questions

Is midnight 00:00 or 24:00?

Midnight at the start of a day is 00:00. Some schedules write 24:00 for the end of a day, but this converter uses 00:00 to avoid confusion, so 24:00 is not accepted.

Is 12:00 PM noon or midnight?

12:00 PM is noon (12:00 in 24-hour time) and 12:00 AM is midnight (00:00). A minute after noon is 12:01 PM; a minute after midnight is 12:01 AM, or 00:01.

How is military time written?

Military time is usually written as four digits without a colon, such as 0730 or 1730, and often said as “seventeen thirty.” Everyday 24-hour time usually includes the colon: 17:30.

Do I need a leading zero?

In military style, yes: 7:30 AM is 0730. This converter accepts 730, 0730, 7:30, and 07:30 as 24-hour input.