Skip to content
OverCalculator
  1. Home
  2. Conversion
  3. Military Time Converter
Conversion

Military Time Converter

Convert 12-hour AM/PM time to 24-hour military time and decode 0000-2359 values with noon, midnight, and leading-zero rules.

By OverCalculator Editorial Team, Updated

24-hour time
Standard time to military time
1430
Standard input
2:30 PM
Read as
14 30 hours
Military input to standard time
2:30 PM
Military input with colon
14:30

2:30 PM is 1430; 1430 is 2:30 PM.

Results update as you type.

Military Time Converter

Military time is a format converter, not a numeric unit-factor converter. It does not multiply hours by 60 or divide seconds by 3,600. Instead, it translates between two ways of writing a time of day: the 12-hour AM/PM clock and the 24-hour clock commonly used by the military, aviation, hospitals, dispatch, public transportation, security logs, and international schedules.

The form works in both directions at the same time. The standard-time fields convert an hour, minute, and AM/PM choice into a four-digit value. The military time field decodes a value from 0000 through 2359 back into standard time. For elapsed durations, use the hour converter, minute converter, or seconds converter instead. Those pages convert quantities of time; this page converts clock notation.

12-hour and 24-hour systems

The 12-hour clock divides the day into two cycles. AM covers midnight through the morning, and PM covers noon through the evening. That system is familiar in the United States but can be ambiguous when AM or PM is omitted. “7:00” could be morning or evening unless the context is obvious.

The 24-hour clock counts the day once, from 00:00 at midnight to 23:59 just before the next midnight. Written military time usually removes the colon and keeps four digits, so 00:00 becomes 0000, 07:05 becomes 0705, 14:30 becomes 1430, and 23:59 stays 2359. The 24-hour clock has long been used in navigation, railways, aviation, medicine, and military operations because it avoids the AM and PM ambiguity that can cause missed departures or wrong shift changes.

Rules used by the calculator

For standard time to military time, the compute function first converts the 12-hour input to a 24-hour hour:

hour 24={0,if hour is 12 and period is AM12,if hour is 12 and period is PMhour,if period is AM and hour is 1 through 11hour+12,if period is PM and hour is 1 through 11\text{hour 24} = \begin{cases} 0, & \text{if hour is 12 and period is AM} \\ 12, & \text{if hour is 12 and period is PM} \\ \text{hour}, & \text{if period is AM and hour is 1 through 11} \\ \text{hour} + 12, & \text{if period is PM and hour is 1 through 11} \end{cases}

Then it pads the hour and minute to two digits and joins them:

military time=two digit hour 24 two digit minutes\text{military time} = \text{two digit hour 24}\ \text{two digit minutes}

For military time back to standard time, the first two digits must be between 00 and 23, and the last two digits must be between 00 and 59. Hour 00 becomes 12 AM. Hours 01 through 11 stay AM. Hour 12 is 12 PM. Hours 13 through 23 subtract 12 and use PM.

Worked example matching the calculator

The default standard input is 2:30 PM. Because it is PM and the hour is not 12, the calculator adds 12:

2+12=142 + 12 = 14

The minutes stay 30, so the primary result is 1430. The item rows show the standard input as 2:30 PM, a read-as row generated by the form, the military input converted to standard time, and the military input with a colon. With the default military input of 1430, the reverse result is 2:30 PM, and the colon display is 14:30. This exactly matches the compute function’s two-way behavior.

Implementation note: the current read-as row prints grouped digits such as “14 30 hours” rather than spelling “fourteen thirty hours.” The arithmetic and format conversion are still the rules above; the spoken wording is a display wording issue in the form component.

Reference table

Standard timeMilitary time24-hour with colonRule
12:00 AM000000:00midnight becomes 00
12:15 AM001500:15keep minutes, hour 12 AM becomes 00
5:45 AM054505:45AM hour keeps value with leading zero
11:59 AM115911:59late morning stays AM
12:00 PM120012:00noon stays 12
2:30 PM143014:30add 12 to PM hour
11:59 PM235923:59last minute before next day

Noon, midnight, and leading zeros

Noon and midnight cause the most errors. Noon is 12:00 PM, so it is 1200. Do not add 12 to noon; 2400 is not the calculator’s noon value. Midnight at the start of a day is 12:00 AM, so it is 0000. The form accepts 0000 through 2359 and rejects values whose minute part is 60 or greater, such as 1260.

Leading zeros are part of the format. A schedule that says 705 may still be read as 0705 by a person, but the formal four-digit value is 0705. The form pads single-digit hours and minutes so 7:05 AM becomes 0705 and 12:05 AM becomes 0005. This is especially important in aviation, dispatch, medicine, and overnight shift schedules where a missing zero can be misread under pressure.

Military, aviation, and scheduling domains

Military and aviation operations use 24-hour notation because the day often crosses midnight and events are coordinated across teams. A report at 2315 and a handoff at 0015 clearly show a one-hour interval over midnight. Hospitals, security desks, public transit, and logistics teams use the same clarity. In international contexts, the 24-hour system also avoids translating AM/PM conventions between regions.

For programming, store the time carefully. A military-time value such as 1430 is not a duration of 1,430 minutes and not a decimal number of hours. It is a formatted time-of-day token. If you need elapsed minutes between two times, first parse each time into minutes after midnight, then subtract with date awareness when the interval crosses midnight.

Sources

Frequently asked questions

What is military time?
Military time is a compact 24-hour clock format usually written as four digits without a colon. Hours run from 00 through 23 and minutes run from 00 through 59. For example, 1430 means 14:30, which is 2:30 PM.
How do I convert PM to military time?
For 1 PM through 11 PM, add 12 to the hour and keep the minutes. For 12 PM, do not add 12 because noon is already 1200. The calculator uses that rule, so 2:30 PM becomes 1430 and 12:30 PM stays 1230.
How do I convert AM to military time?
For 1 AM through 11 AM, keep the hour and add a leading zero when needed. For 12 AM, use 00 because midnight begins the 24-hour count. For example, 5:45 AM becomes 0545, while 12:15 AM becomes 0015.
Is midnight 0000 or 2400?
This calculator accepts 0000 through 2359 and uses 0000 for midnight at the start of a day. Some schedules use 2400 to mark midnight at the end of a day, but the form does not accept 2400 because its valid range stops at 2359.
How do I convert military time back to standard time?
Read the first two digits as the 24-hour hour. 00 becomes 12 AM, 01 through 11 use AM, 12 becomes 12 PM, and 13 through 23 subtract 12 and use PM. The last two digits remain the unchanged minutes.
Why are leading zeros important?
Leading zeros preserve the four-digit format. Without them, 0705 can look like 705 or be confused with a number rather than a time. The calculator formats military output with two hour digits and two minute digits, covering 0000 through 2359.

Related calculators

Military Time Converter updated at