Military time converter and calculator
Convert 12-hour and 24-hour time, calculate an overnight interval, or add and subtract hours without guessing at midnight.
Enable JavaScript to use the calculator. The formulas, chart and examples remain available below.
Military time conversion rules
Military time uses a four-digit 24-hour clock. The first two digits are hours from 00 through 23 and the last two are minutes from 00 through 59.
- From 1:00 PM through 11:59 PM, add 12 to the standard-clock hour.
- For 12:xx AM, use hour 00.
- For 12:xx PM, keep hour 12.
- For elapsed time crossing midnight, add 1,440 minutes to the end time before subtracting.
Checked examples
| Input | Result |
|---|---|
| 0000 | 12:00 AM |
| 0730 | 7:30 AM |
| 1200 | 12:00 PM |
| 1730 | 5:30 PM |
| 2359 | 11:59 PM |
| 2200 to 0600 | 8 hours, next day |
| 2330 plus 2 hours | 0130, next day |
24-hour military time chart
| Standard time | Military time | 24-hour clock |
|---|---|---|
| 12:00 AM | 0000 | 00:00 |
| 1:00 AM | 0100 | 01:00 |
| 2:00 AM | 0200 | 02:00 |
| 3:00 AM | 0300 | 03:00 |
| 4:00 AM | 0400 | 04:00 |
| 5:00 AM | 0500 | 05:00 |
| 6:00 AM | 0600 | 06:00 |
| 7:00 AM | 0700 | 07:00 |
| 8:00 AM | 0800 | 08:00 |
| 9:00 AM | 0900 | 09:00 |
| 10:00 AM | 1000 | 10:00 |
| 11:00 AM | 1100 | 11:00 |
| 12:00 PM | 1200 | 12:00 |
| 1:00 PM | 1300 | 13:00 |
| 2:00 PM | 1400 | 14:00 |
| 3:00 PM | 1500 | 15:00 |
| 4:00 PM | 1600 | 16:00 |
| 5:00 PM | 1700 | 17:00 |
| 6:00 PM | 1800 | 18:00 |
| 7:00 PM | 1900 | 19:00 |
| 8:00 PM | 2000 | 20:00 |
| 9:00 PM | 2100 | 21:00 |
| 10:00 PM | 2200 | 22:00 |
| 11:00 PM | 2300 | 23:00 |
Frequently asked questions
Is midnight 0000 or 2400?
Use 0000 for the start of a day. Some schedules use 2400 for the end of a day, but this calculator uses 0000 to avoid date ambiguity.
Does military time use a colon?
Compact military notation is commonly written as 1730. The equivalent 24-hour clock display is 17:30.
How are overnight hours calculated?
In automatic mode, an end time earlier than the start is treated as the next day. Equal times represent zero elapsed time unless “next day” is selected.
Can I calculate paid work hours?
The interval mode can subtract one break, but it does not apply overtime, rounding or labor rules. Use the Time Card Calculator for those calculations.
Related calculators: Hours Calculator, Time Card Calculator, Clock Out Time Calculator and Time Zone Calculator.