24-Hour to 12-Hour Time Converter

24-Hour to 12-Hour Time Converter

Leading AI Skill PRO

Enter Calculation

Formula

Standard=((Hour+11)mod12+1):Minute{AMHour<12PMHour≥12\text{Standard} = \left(\left(\text{Hour} + 11\right) \bmod 12 + 1\right) : \text{Minute}\ \begin{cases} \text{AM} & \text{Hour} < 12 \\ \text{PM} & \text{Hour} \ge 12 \end{cases}
Usage stats

Advertisement

Results

Standard (12-Hour) Time
6:30 PM
12-hour AM/PM format
12-hour hour 6
Minute 30
Period PM
Minutes since midnight 1,110

Report an error on this page

What Is the 24-Hour to 12-Hour Time Converter?

This tool converts military time (a 24-hour clock running from 00:00 to 23:59) into the everyday 12-hour AM/PM format. Military time is used worldwide by armed forces, aviation, hospitals, and emergency services because it removes any ambiguity between morning and evening hours. If you have ever wondered what "18:30" or "0045" means on a standard clock, this converter gives you the answer instantly.

How to Use It

Enter the hour as a number from 0 to 23 and the minute from 0 to 59. For example, type 18 in the hour box and 30 in the minute box to convert 18:30. Press calculate and the converter shows the equivalent 12-hour time, such as 6:30 PM. Leading zeros are optional.

The Formula Explained

The 12-hour hour is found with \(\text{hour12} = ((H + 11) \bmod 12) + 1\), where \(H\) is the 24-hour input.

$$\text{Standard} = \left(\left(\text{Hour} + 11\right) \bmod 12 + 1\right) : \text{Minute}\ \begin{cases} \text{AM} & \text{Hour} < 12 \\ \text{PM} & \text{Hour} \ge 12 \end{cases}$$

This neatly maps \(0 \to 12\), \(12 \to 12\), \(13 \to 1\), and \(23 \to 11\). The period is AM when \(H\) is less than 12 and PM when \(H\) is 12 or greater. Midnight (00:xx) becomes 12:xx AM, and noon (12:xx) becomes 12:xx PM.

Advertisement
Number line mapping 24-hour values to 12-hour AM and PM ranges
How 24-hour values map onto the 12-hour AM/PM cycle.

Worked Example

Convert 13:45. Compute

$$\text{hour12} = ((13 + 11) \bmod 12) + 1 = (24 \bmod 12) + 1 = 0 + 1 = 1.$$

Since \(13 \ge 12\), the period is PM. So 13:45 in 24-hour time equals 1:45 PM on a standard clock.

Advertisement
Two clock faces showing 24-hour time converting to 12-hour time
A 24-hour reading shown alongside its equivalent 12-hour AM/PM clock.

Time Format Terms and Definitions

24-hour clock
A system that numbers the hours of a day from 0 to 23, so every hour of the day has a unique number. It is standard in ISO 8601 and is used in many countries for timetables, transport and medicine. Example: 17:45 is the same moment as 5:45 PM.
Military time
Everyday name (mainly in the United States) for the 24-hour clock. It is typically written with two-digit hours and minutes, such as 0800 or 2130, often with no colon. Armed forces and emergency services in many countries use this style to avoid AM/PM mix-ups.
12-hour clock
A system that splits the day into two periods of 12 hours. Hours run 12, 1, 2, … 11, and an AM or PM label says which half of the day is meant. It is the common everyday format in the United States, Canada, Australia and some other countries.
AM (ante meridiem)
Latin for "before midday." It covers the time from midnight up to, but not including, noon: 12:00 AM through 11:59 AM, equal to 00:00–11:59 on the 24-hour clock.
PM (post meridiem)
Latin for "after midday." It covers noon up to, but not including, midnight: 12:00 PM through 11:59 PM, equal to 12:00–23:59 on the 24-hour clock.
Midnight
The start of a new day is written 00:00 in 24-hour time and 12:00 AM in 12-hour time. The notation 24:00 is sometimes used to mean the end of a day (the same instant as 00:00 of the next day), as allowed in some scheduling contexts; most converters accept only hours 0–23, so 24:00 should be entered as 0:00. Because "12:00 AM" is often confused, writing 11:59 PM or 12:01 AM is clearer when precision matters.
Noon
Midday is 12:00 in 24-hour time and 12:00 PM in 12-hour time. The hour after it, 13:00, is 1:00 PM. Note that the 12-hour conversion rule subtracts 12 only for hours 13–23.
"Hundred hours" notation
The spoken form of four-digit military time. 0600 is said "zero six hundred hours" and 1500 is "fifteen hundred hours." Times with minutes are read digit by digit, such as 1435 as "fourteen thirty-five."
Zulu time
Military and aviation term for Coordinated Universal Time (UTC), marked with the letter Z (the "Zulu" letter of the NATO phonetic alphabet). For example, 1830Z means 18:30 UTC. It is a time zone reference, not a different clock format; converting it to 12-hour form gives 6:30 PM UTC, which must still be adjusted for your local time zone.

FAQ

What is 00:00 in 12-hour time? Midnight, written 12:00 AM.

What is 12:00 in 12-hour time? Noon, written 12:00 PM.

Why does the military write times without a colon? Military time is often written as four digits (e.g., 1830) and spoken as "eighteen thirty hours" to avoid confusion in radio communication.

Last updated:

Most popular in Time and Date

View all Time and Date calculators