Military Time Converter
Convert any time between the 24-hour military format and the standard 12-hour AM/PM clock.
Conversion direction
14:30 = 2:30 PM
- 1
24-hour input
H = 14 = 14 - 2
Minutes since midnight
14 × 60 + 30 = 870
How does this calculator work?
Military (24-hour) time runs 00:00 to 23:59. To convert to 12-hour, hours under 12 are AM and 12 or more are PM, with 0 and 12 both shown as 12. To go back, add 12 to PM hours (except noon) and turn 12 AM into 00. This tool does both instantly.
Formula
How this is calculated
Choose a conversion direction, then enter the hour and minute (and AM/PM when converting from 12-hour). Hours run 0-23 in 24-hour mode and 1-12 in 12-hour mode; minutes run 0-59.
To go from 24-hour to 12-hour, the period is AM when the hour is below 12 and PM otherwise. The displayed 12-hour hour is computed as ((H+11) mod 12)+1, which maps 0 to 12 (midnight), 12 to 12 (noon), and everything else to 1-11. To go from 12-hour to 24-hour, AM hours become h12 mod 12 (so 12 AM is 00) and PM hours become (h12 mod 12)+12 (so 12 PM stays 12 and 1 PM becomes 13).
The result also shows the time written out in words and the minutes elapsed since midnight (H times 60 plus M). Common edge cases are handled: 00:00 is 12:00 AM (midnight) and 12:00 is 12:00 PM (noon).
Frequently asked questions
Midnight is 00:00 (sometimes written 2400). In 12-hour format it is 12:00 AM.
Add 12 to the hour for 1 PM through 11 PM (1 PM = 13:00). 12 PM (noon) stays as 12:00.
12 AM is 00:00. The hour 12 wraps to 0 because AM hours use h12 mod 12.
Also known as
TG we-Calculate Editorial Team. (2026). Military Time Converter [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/military-time-converter
TG we-Calculate Editorial Team. "Military Time Converter." TG we-Calculate. 2026. https://we-calculate.com/calculator/military-time-converter.
TG we-Calculate Editorial Team, "Military Time Converter," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/military-time-converter
@misc{wecalculate_military_time_converter, title = {Military Time Converter}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/military-time-converter}}, year = {2026}, note = {TG we-Calculate} }
Did this calculator help you?
