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 timeEnter the time and choose AM or PM
Converted result
Spoken: nineteen forty-five hours
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-hour | 24-hour | 12-hour | 24-hour |
|---|---|---|---|
| 12:00 AM (midnight) | 00:00 | 12:00 PM (noon) | 12:00 |
| 1:00 AM | 01:00 | 1:00 PM | 13:00 |
| 2:00 AM | 02:00 | 2:00 PM | 14:00 |
| 3:00 AM | 03:00 | 3:00 PM | 15:00 |
| 4:00 AM | 04:00 | 4:00 PM | 16:00 |
| 5:00 AM | 05:00 | 5:00 PM | 17:00 |
| 6:00 AM | 06:00 | 6:00 PM | 18:00 |
| 7:00 AM | 07:00 | 7:00 PM | 19:00 |
| 8:00 AM | 08:00 | 8:00 PM | 20:00 |
| 9:00 AM | 09:00 | 9:00 PM | 21:00 |
| 10:00 AM | 10:00 | 10:00 PM | 22:00 |
| 11:00 AM | 11:00 | 11:00 PM | 23: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.
| Tool | 12-hour → 24-hour |
|---|---|
| Excel / Google Sheets | =TEXT(A2,"hh:mm") |
| Python | t.strftime("%H:%M") |
| JavaScript | d.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.
More military time tools
- Core tool
Military to Standard Time
Turn any 4-digit military time such as 2145 into regular 12-hour AM/PM time.
Open tool - Popular
Standard to Military Time
Convert civilian AM/PM time into 24-hour military time with a leading zero.
Open tool - 24-hour clock
24-Hour to 12-Hour Converter
Read 24-hour clock times like 18:30 as 12-hour time in one step.
Open tool - Add / subtract
Military Time Calculator
Add or subtract hours and minutes, or find the time between two military times.
Open tool - Payroll
Time Card & Shift Calculator
Enter clock-in and clock-out times to total shift hours, including overnight shifts.
Open tool - Decimal hours
Military Minutes Conversion
Convert minutes to decimal hours for payroll and time sheets (15 min = 0.25).
Open tool