To convert standard 12-hour time to military time, use the 24-hour clock: midnight is 0000, noon is 1200, AM hours from 1 through 11 keep their hour value, and PM hours from 1 through 11 gain 12.
Military time normally displays the hour and minute as four digits without a colon. The first two digits represent the hour and the final two represent the minutes. Most of the conversion therefore comes down to selecting the correct AM or PM rule, adjusting the hour, and preserving the minutes.

What Military Time Represents
The common military format runs from 0000 through 2359. It covers the full day without AM or PM labels, so there is no need to decide whether an hour belongs to the first or second half of the day. The minute value remains the same during the conversion.
Each part of the display has a fixed position. The first two digits contain an hour from 00 through 23, and the last two contain a minute from 00 through 59. A one-digit hour or minute must be padded with a leading zero so that the complete reading contains four digits.
A colon can make a 24-hour clock easier to read in general 24-hour notation, but the standard military-style version places the four digits together. Follow the required format for the situation: use the four-digit form for military time and use the colon form only when the receiving system expects it.
Convert Standard Time to Military Time
Use this process for any ordinary clock reading that includes AM or PM:
- Identify the AM or PM period. Write down the complete standard time before changing it. The AM or PM label determines which hour rule applies, while the minutes remain unaffected.
- Set the military hour. For an AM time, keep an hour from 1 through 11. For a PM time, add 12 to an hour from 1 through 11. Handle 12 AM and 12 PM separately because they are boundary cases rather than ordinary AM or PM hours.
- Preserve the minutes. Copy the minute value exactly as shown. If the minutes contain only one digit, remember that the final military display still needs two minute digits.
- Combine and pad the fields. Write the adjusted hour first and the minutes second, using two digits for each. Remove the colon for the usual four-digit military format.
- Verify the range. Confirm that the hour is from 00 through 23, the minutes are from 00 through 59, and the complete result contains exactly four digits.
Worked example: To convert 2:30 PM, the PM hour rule gives 2 + 12 = 14. Substituting the unchanged minutes gives 14:30, and removing the colon produces 1430.
AM, PM, and Boundary-Hour Rules
This quick reference separates the four input patterns. It is safer to choose a row first and then apply its hour rule than to make several separate changes at once.
| Standard-time pattern | Hour rule | Minute rule |
|---|---|---|
| 12:xx AM | Change the hour from 12 to 00 | Keep both minute digits |
| 12:xx PM | Keep the hour as 12 | Keep both minute digits |
| 1:00–11:59 AM | Keep the hour value unchanged | Keep both minute digits |
| 1:00–11:59 PM | Add 12 to the hour | Keep both minute digits |
Only the hour changes during a standard conversion. Do not add 12 to the minutes, and do not add 12 to the complete clock reading. For a PM time, the adjustment is applied to the hour field alone.
Midnight, Noon, and Leading Zeros
The two appearances of 12 require special attention. On a 12-hour clock, 12 AM marks the beginning of the day, so its military hour is 00. At the opposite boundary, 12 PM marks noon, so its military hour remains 12. The rules for converting midnight and noon in military time provide a concise review of these edge cases.
Leading zeros are part of the format rather than optional decoration. A one-digit hour needs a zero before it, and minutes below 10 also need a zero before the single minute digit. Keeping both fields at two digits ensures that a reader can always identify the hour and minute positions.
The strict 24-hour day ends at 2359. If an adjustment produces an hour of 24, normalize it to 0000 for the following day rather than retaining an invalid four-digit value.
Convert Military Time Back to Standard Time
To check your work by reversing the conversion, divide the four digits into a two-digit hour and a two-digit minute. Interpret an hour of 00 as 12 AM, hours from 01 through 11 as the same AM hour, and 12 as 12 PM. For hours from 13 through 23, subtract 12 and label the result PM.
The minutes remain unchanged during the reverse conversion. After identifying the hour and period, insert the appropriate colon and AM or PM label. A correct round trip should preserve both the original hour and the original minute value.
Using Time Converter for Duration Units
The Time Converter supports a related but different task: rescaling one numeric duration across ten units, from nanoseconds through years. Use it when the question concerns the size of a time quantity rather than the format of a clock reading.
- Type the number to convert into the Value field.
- Choose the unit in which that number is measured from the From unit dropdown.
- Read the equivalent amounts in the results grid, which recalculates as you type.
- Check the note below the grid for the distinction between exact and average units.
This workflow does not parse an AM or PM clock reading or produce the four-digit military clock format, so it cannot complete the main task described above. It also does not calculate the elapsed time between two clock readings or shift one moment across time zones.
For duration conversion, fixed units from nanoseconds through weeks use exact definitions. Months and years are averages: the converter uses 365.25 days for a year and 30.4375 days for a month rather than treating them as calendar-exact date ranges. The calculations run locally in the browser, require no account, and remain available offline once the page has loaded.
Check the Final Answer
- Confirm that the result contains exactly four digits in the strict military format.
- Check that the hour falls between 00 and 23 and the minutes fall between 00 and 59.
- Make sure the AM or PM decision was made before adjusting the hour.
- Confirm that midnight and noon were not treated like ordinary AM or PM hours.
- Verify that only the hour changed and the original minutes were preserved.
For a deeper look, see Hours Between Two Times: Same Day and Overnight.