Military Time Converter

Military Time Converter

Popular AI Skill PRO

Enter Calculation

Examples: 1630, 0730, 16, 16:30:45, 5pm, 4:30 pm, noon, midnight

Formula

Military Time=100H+Mwhere{h:M=Time (h:mm am/pm)H=(hmod12)+12·[pm]\begin{gathered} \text{Military Time} = 100\,H + M \\[1.5em] \text{where}\quad \left\{ \begin{aligned} h : M &= \text{Time (h:mm am/pm)} \\ H &= (h \bmod 12) + 12 \cdot \left[\, \text{pm} \,\right] \end{aligned} \right. \end{gathered}
Show calculation steps (1)
  1. Military Time to Regular Time

    Regular Time=h12:Mam/pmwhere{R=Military time (0000-2400)H=⌊R100⌋,M=Rmod100h12=((H+11)mod12)+1am/pm=am if H<12 or H=24,pm otherwise\begin{gathered} \text{Regular Time} = h_{12} : M \;\; \text{am/pm} \\[1.5em] \text{where}\quad \left\{ \begin{aligned} R &= \text{Military time (0000-2400)} \\ H &= \left\lfloor \frac{R}{100} \right\rfloor, \quad M = R \bmod 100 \\ h_{12} &= \left((H + 11) \bmod 12\right) + 1 \\ \text{am/pm} &= \text{am if } H < 12 \text{ or } H = 24, \; \text{pm otherwise} \end{aligned} \right. \end{gathered}

    R = military time typed in the Time box; H = floor(R/100), M = R mod 100; 12-hour clock hour h12 = ((H+11) mod 12) + 1, am when H < 12 or H = 24 (0000 = start of day, 2400 = end of day, both 12:00 am)

Usage stats

Advertisement

Results

Military Time
1630 hours
Regular time 4:30 PM
24-hour time 16:30
How to say it sixteen thirty hours
Decimal hours 16.5

Report an error on this page

What is the Military Time Converter?

This tool converts time between the everyday 12-hour clock (with am and pm) and 24-hour "military" time. Military time runs from 0000 (midnight) to 2359, removing the am/pm ambiguity that the 12-hour clock has. The converter shows your time in three formats at once: regular 12-hour time, military "hours" notation (for example 1624 hours), and 24-hour colon notation (16:24).

Circular 24-hour clock face showing the relationship between 12-hour and 24-hour times
A 24-hour clock dial mapping each hour to its 12-hour am/pm equivalent.

How to use it

Type any time in the single Time box and press calculate. The tool recognizes the format by itself: military time such as 1624, 0008 or 730, 24-hour time with a colon such as 16:24 or 16:24:30, and regular time with am or pm such as 4:24 pm, 5pm or 4 p.m. One or two digits up to 24 are read as an hour, so 16 means 1600; to enter minutes after midnight, type four digits such as 0016. The result shows regular time, military time, 24-hour time, how to say it, and decimal hours.

The formula explained

The converter first reduces any input to a canonical 24-hour hour H (0–24) and minute mm. From a regular time: if it is am, 12 becomes 0 and every other hour stays the same; if it is pm, 12 stays 12 and every other hour gains 12.

$$H = \begin{cases} 0 & h=12,\ \text{am} \\ h & 1\le h\le 11,\ \text{am} \\ 12 & h=12,\ \text{pm} \\ h+12 & 1\le h\le 11,\ \text{pm} \end{cases}$$

From military time, the hour is the value divided by 100 (dropping the remainder) and the minute is the value modulo 100.

$$H=\left\lfloor \tfrac{R}{100}\right\rfloor,\quad mm = R \bmod 100$$

0000 is midnight at the start of the day and 2400 is midnight at the end of the day; both are 12:00 am on the 12-hour clock.

Advertisement
Number line comparing 12-hour and 24-hour time scales
Midnight starts at 00:00; pm hours add 12 to the regular hour.

Worked example

Convert 4:24 pm to military time. Because it is pm and the hour is not 12, add 12: \(H = 4 + 12 = 16\), with \(mm = 24\). The outputs are regular "4:24 pm", military "1624 hours", and 24-hour "16:24".

FAQ

Is midnight 0000 or 2400? Both notations are used. By convention the start of the day is 0000 and the end of the day is 2400; this tool keeps what you type, so 0000 is shown as the start of the day and 2400 as the end of the day.

What is 12:00 pm in military time? Noon is 1200 hours. Many people confuse it with midnight, but 12:00 am (0000) is midnight and 12:00 pm (1200) is noon.

How are minutes handled? Minutes stay the same in every format and are always shown with two digits, so 7 minutes becomes 07.

Last updated:

Most popular in Time and Date

View all Time and Date calculators