Skip to content
OverCalculator
Theme
ConversionMore in Time & speedComparisons: ConversionAngles & coordinatesData & number systemsEnergy & powerLength & areaMass & weightMore conversions

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.

Published

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.

Hour on a 12-hour clock.
AM or PM
Enter four-digit time without a colon, such as 0545 or 1730.

Results update as you type.

Worked example

standardHour: 12 · standardMinute: 0 · period: AM · militaryTime: 0

Result: 0000

Try it →

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 a four-digit 24-hour notation.

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 AM and PM cycles. A time without AM or PM does not provide enough information for this conversion.

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.

Rules used by the calculator

For standard time to military time, the calculation 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.

Example

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 grouped-digit reading, 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 calculation’s two-way behavior.

Display note: the 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.

Time-of-day limitation

A value such as 1430 is a time-of-day notation, not a duration of 1,430 minutes or a decimal number of hours. Calculating elapsed time requires dates or an explicit rule for crossing midnight; this converter does not infer either.

Accuracy and limits

The calculator keeps the defined or cited relationship through the calculation and rounds only the displayed result. A converted number does not become more precise than the source measurement. Keep additional digits for chained calculations, then round to the precision justified by the original value; also preserve any reference basis or notation convention named with the input.

Sources

Compare Military Time Converter with related tools

All comparisons →

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.

Sources

  • The International System of Units (SI Brochure)

    primary · Jul 9, 2026

    Supports: SI base/derived units, prefixes, coherent dimensional relations, exact defining constants, day and degree accepted with SI

    — BIPM, v9th edition, version 3.02 (August 2025)

  • Guide for the Use of the International System of Units (SI)

    primary · Jul 9, 2026

    Supports: US customary/SI conversion factors and precision/significant-digit guidance

    — NIST, vNIST SP 811, 2008 edition

  • GPO Style Manual, 2016

    primary · Jul 9, 2026

    Supports: four-digit government time notation; acceptance fixes midnight serialization at 0000 and independently tests both directions

    — U.S. Government Publishing Office

Related calculators

Military Time Converter updated at

Verified

Corrected — see corrections historyFound an error? Report it