ThisCalculator

Everyday

24 Hour to 12 Hour Converter Online: Examples and Tips

Updated · Standard formula, shown below

Time in 12-hour format 105 clock
Hour (24-hour time)
13 h
You entered
Minute
45 min
You entered

24 Hour to 12 Hour Converter Online: Examples and Tips

This 24-hour to 12-hour converter turns a time written from 00:00 through 23:59 into an a.m. or p.m. clock time. Enter the hour and minute, and the calculator returns the equivalent 12-hour time while preserving the minutes.

Formula

For a valid 24-hour time, convert the hour to a 12-hour clock hour using hour12 = hour24 modulo 12; replace a result of 0 with 12. Keep the minute unchanged. The a.m./p.m. label depends on the original hour: 00:00–11:59 is a.m., and 12:00–23:59 is p.m.

In the calculator, h is the 24-hour hour from 0 to 23, and m is the minute from 0 to 59. The output expression, (h % 12) × 60 + m, expresses the converted clock reading as minutes after midnight, which the clock output displays as HH:MM. The display is a 12-hour clock time with the appropriate a.m. or p.m. marker.

Worked Example

Using the default values, the input is 13 hours and 45 minutes, or 13:45.

  1. Find the 12-hour hour: 13 modulo 12 = 1.
  2. Keep the minutes: 45.
  3. Since 13 is at least 12 and less than 24, use p.m.
  4. Calculator expression: (13 % 12) × 60 + 45 = 105 minutes after midnight; the clock display is 01:45 p.m.

The result is 01:45 p.m., the same instant as 13:45.

Online 24-Hour to 12-Hour Converter Options

The converter is the direct way to translate a time. These examples also show how to handle the key hour boundaries and common everyday formats.

  1. Standard converter entry. Enter the hour and minute separately when the tool requests two numbers; this avoids accidentally treating 13:45 as a decimal.
  2. Whole-time entry. If a field accepts a complete time, type a clearly separated value such as 18:20 rather than entering the hour alone.
  3. Leading-zero format. Write early hours with two digits, as in 07:05, when matching schedules or digital displays.
  4. Minute-preserving conversion. Keep the minute value unchanged: 16:38 becomes 4:38 p.m., not 4:00 p.m.
  5. Two-digit result. Use 01 through 09 for morning hours if the destination form expects a fixed-width clock reading.
  6. Include the meridiem. Add a.m. or p.m. to make the converted time unambiguous in messages and notes.

Convert Midnight, Noon, and Other Boundary Times

Midnight and noon are easy to misread because 12-hour clocks label them differently from the surrounding hours. Check these cases before copying a converted time into a schedule.

  1. 00:00 to 12:00 a.m. Midnight is the beginning of a new day, so 00 becomes 12 and the label is a.m.
  2. 00:01 to 12:01 a.m. Times just after midnight remain a.m.; only the hour changes from 00 to 12.
  3. 11:59 to 11:59 a.m. The final minute before noon stays in the morning hour.
  4. 12:00 to 12:00 p.m. Noon is 12 p.m., not 12 a.m.
  5. 12:01 to 12:01 p.m. The first minute after noon is still in the 12 p.m. hour.
  6. 23:59 to 11:59 p.m. The last minute of the day converts to 11:59 p.m.; the next minute is midnight on the following day.

Common Times and Schedule Conversions

These familiar examples help check a result quickly. They are useful when reading transport timetables, work schedules, event plans, or digital logs.

  1. 06:00 to 6:00 a.m. Six in the morning keeps its hour and gains the a.m. label.
  2. 09:30 to 9:30 a.m. A morning time before 10 is commonly written without a leading zero in ordinary prose.
  3. 12:30 to 12:30 p.m. Half past noon remains in the 12 p.m. hour.
  4. 13:00 to 1:00 p.m. Subtract 12 from afternoon hours greater than 12.
  5. 15:45 to 3:45 p.m. The same minute value carries across the conversion unchanged.
  6. 18:00 to 6:00 p.m. An evening hour from 18 through 23 converts by subtracting 12.

Ways to Check and Share the Result

A conversion is a format change, not a change to the actual moment. Keep the date and time zone with the result when either could affect what a reader understands.

  1. Reverse-check the hour. Add 12 to a p.m. hour other than 12; a.m. hours keep their hour, except 12 a.m. maps to 00.
  2. Check the range. A valid 24-hour input uses hours 00–23 and minutes 00–59, so values outside those ranges need correction.
  3. Keep the date attached. For 00:15, specify the calendar date because it is shortly after midnight at the start of that date.
  4. Retain the time zone. Converting 18:00 to 6:00 p.m. does not convert between locations or time zones.
  5. Match the required style. Use 6:00 p.m. in typical prose, or 06:00 p.m. when a form asks for two-digit hours.
  6. Use a clear separator. A colon distinguishes hours and minutes, making 7:05 easier to read than a compact string such as 0705.

How to Use This List

For a quick conversion, enter the 24-hour hour and minute in the calculator, then confirm the a.m./p.m. label using the original hour. Use the boundary examples for 00 and 12, and the schedule examples to check ordinary afternoon and evening times. If the result will be shared, include the date and time zone when relevant; the converter changes clock notation only and does not resolve regional time differences or daylight-saving changes.

Frequently Asked Questions

How do I convert a 24-hour time to 12-hour time?
For hours 13 through 23, subtract 12 and use p.m. Hours 00 through 11 use a.m., with 00 written as 12; hour 12 stays 12 p.m.

Is 12 a.m. midnight or noon?
12 a.m. means midnight, the start of a new day. Noon is 12 p.m.

What does 00:00 mean?
It means midnight in 24-hour notation. In 12-hour notation, write 12:00 a.m.

Does converting a time change its date or time zone?
No. It changes only the clock format. Check the date and time zone separately when coordinating across midnight or locations.

Why is 12:00 p.m. not midnight?
In the conventional 12-hour system, the period before noon is a.m. and the period after noon is p.m.; noon itself is labeled 12 p.m.

Final Thoughts

Converting 24-hour time is straightforward once midnight and noon are handled correctly: preserve the minutes, adjust the hour, and attach the right a.m. or p.m. label. Use the calculator for a quick answer and the examples above as a check.

Related

Formula used
in h | Hour (24-hour time) | h | 13 | 0
in m | Minute | min | 45 | 0
out t | Time in 12-hour format | clock | (h % 12) * 60 + m | 0

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.