Skip to content
Free Military Time Calculator

24-hour clock

12-Hour to 24-Hour Converter

A 12-hour to 24-hour converter turns AM/PM times into 24-hour clock times: 7:45 PM becomes 19:45 and 12:30 AM becomes 00:30. Enter the time, choose AM or PM, and read the 24-hour result.

Enter 3–4 digits, e.g. 0800, 1430, 2359

Valid time

Enter the time and choose AM or PM

Converted result

7:45 PM = 19:45

Spoken: nineteen forty-five hours

PM hours on the 24-hour clock

Standard24-hour
12:00 PM1200
1:00 PM1300
2:00 PM1400
3:00 PM1500
4:00 PM1600
5:00 PM1700
6:00 PM1800
7:00 PM1900
8:00 PM2000
9:00 PM2100
10:00 PM2200
11:00 PM2300

How to Convert 12-Hour Time to 24-Hour Time

To convert 12-hour time to 24-hour time, add 12 to PM hours from 1 to 11 and write the hour with two digits. AM, PM and 12 o'clock times follow 3 rules.

AM Times

To convert 1:00 AM to 11:59 AM, keep the hour and add a leading zero: 7:05 AM → 07:05, 11:20 AM → 11:20.

PM Times

To convert 1:00 PM to 11:59 PM, add 12 to the hour: 1:00 PM → 13:00, 7:45 PM → 19:45, 11:59 PM → 23:59.

12 AM and 12 PM

To convert the 12 o'clock hours, change 12 AM to 00 and keep 12 PM as 12: 12:30 AM → 00:30, 12:30 PM → 12:30.

12-Hour to 24-Hour Conversion Chart

The chart lists all 24 hours starting from 12-hour time. Minutes stay the same.

12-hour24-hour12-hour24-hour
12:00 AM (midnight)00:0012:00 PM (noon)12:00
1:00 AM01:001:00 PM13:00
2:00 AM02:002:00 PM14:00
3:00 AM03:003:00 PM15:00
4:00 AM04:004:00 PM16:00
5:00 AM05:005:00 PM17:00
6:00 AM06:006:00 PM18:00
7:00 AM07:007:00 PM19:00
8:00 AM08:008:00 PM20:00
9:00 AM09:009:00 PM21:00
10:00 AM10:0010:00 PM22:00
11:00 AM11:0011:00 PM23:00

Writing 24-Hour Time Correctly

Write 24-hour time as HH:MM with two-digit hours and no AM or PM. 4 style rules keep it consistent:

  • Two-digit hours: 07:05, not 7:05, in timetables and ISO 8601.
  • No AM or PM: 19:45, not 19:45 PM.
  • Seconds after a second colon: 19:45:30.
  • No colon for military style: 1945, read “nineteen forty-five hours.”

Convert 12-Hour Time in Excel, Google Sheets and Code

To convert 12-hour time in software, format the time with a 24-hour pattern.

Tool12-hour → 24-hour
Excel / Google Sheets=TEXT(A2,"hh:mm")
Pythont.strftime("%H:%M")
JavaScriptd.toLocaleTimeString("en-GB", { hour: "2-digit", minute: "2-digit" })
SQL (MySQL)DATE_FORMAT(t, '%H:%i')

To convert in the other direction, use the 24-hour to 12-hour converter.

Who Uses This Tool?

4 groups of people use this tool most:

  • Travelers booking abroad

    Enter a 7:45 PM arrival into booking forms that use 24-hour time.

  • Data entry staff

    Convert AM/PM times before importing them into spreadsheets and databases.

  • Event organizers

    Publish schedules for international audiences in 24-hour format.

  • Writers and editors

    Follow style guides and ISO 8601 that require 24-hour times.

12-Hour to 24-Hour FAQ

How do I convert 12-hour time to 24-hour time?

Add 12 to PM hours from 1 to 11, keep 12 PM as 12, change 12 AM to 00, and keep other AM hours with a leading zero. 7:45 PM becomes 19:45.

What is 6 PM in 24-hour time?

6 PM is 18:00 in 24-hour time. 6 + 12 = 18.

What is 12:30 AM in 24-hour time?

12:30 AM is 00:30 in 24-hour time.

What is 12 PM in 24-hour time?

12 PM is 12:00 in 24-hour time. Noon does not get 12 added.

Do I need a leading zero in 24-hour time?

Yes, 24-hour time usually writes hours with two digits: 7:05 AM is 07:05. Some styles allow 7:05, but timetables and ISO 8601 use 07:05.