Convert 12-Hour Clock to 24-Hour screenshot

Convert 12-Hour Clock to 24-Hour

Turn a 12-hour AM/PM time into 24-hour form: 12:00 AM is 00:00 and 12:00 PM is 12:00.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

One reading, two spellings

Type a time in 12-hour form with AM or PM, such as 03:45 PM, and the page prints the 24-hour reading: 15:45. The rule is arithmetic on the hour. Midnight, 12 AM, becomes hour 0; noon, 12 PM, stays hour 12; every other PM hour gains 12, and every other AM hour keeps its number. Minutes and seconds are carried across unchanged.

The page reads one time at a time and requires an explicit AM or PM, because a bare 03:45 is ambiguous and guessing would be a coin toss. An hour outside 1 to 12 is refused, as are minutes or seconds outside 00 to 59, and a line without a meridian is refused with the expected shape rather than silently treated as morning.

The conversion is arithmetic in this tab on the reading you typed. No clock is read, nothing is uploaded, and the same string prints the same 24-hour time after a reload.

The page turns a 12-hour reading into 24-hour form: 12 AM is hour 0, 12 PM stays hour 12, every other PM hour gains 12, and minutes and seconds carry across. 03:45 PM prints as 15:45. It reads one time at a time and needs an explicit AM or PM, because a bare 03:45 could be either half of the day and guessing would be a coin toss.

One reading, two spellings, with no timezone involved.

How to use it

Type a time in 12-hour form with AM or PM, such as 03:45 PM, and press Run. The 24-hour reading is printed first, with a line naming the two special cases: midnight and noon.

What it will not do

The page refuses an hour outside 1 to 12, minutes or seconds outside 00 to 59, and any string without AM or PM. It does not add a date, apply a timezone or convert a duration — 25 hours is not a time it will accept, and a time it cannot parse is quoted back rather than guessed.

What to Expect

Best for

  • Reading a schedule, a ticket or a rota that mixes both clock styles.

What this tool keeps

  • The conversion is arithmetic in this tab on the string you typed, so nothing is uploaded and no clock is consulted.

Sample input

03:45 PM

Sample output

15:45 03:45 PM in 24-hour form; 12:00 AM is 00:00 and 12:00 PM is 12:00.

Frequently asked questions

How do I use the 12-hour to 24-hour converter?

Fill in the fields above and press Run. Type a time in 12-hour form with AM or PM, such as 03:45 PM, and press Run. The 24-hour reading is printed first, with a line naming the two special cases: midnight and noon.

Is my input uploaded?

No. Every figure is computed in this tab with JavaScript. Nothing is posted to a server, nothing is stored, and the page keeps working offline once it has loaded.

What are the limits?

The hour must be 1 to 12 and the minutes and seconds 00 to 59, and the string must end in AM or PM; anything else is refused with the expected shape.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.