Unit Converter
12 Hour to 24 Hour Converter
Convert a 12-hour clock time with AM or PM to 24-hour notation while keeping optional seconds and fractional seconds.
12 Hour to 24 Hour Converter examples
| Input | Expected result |
|---|---|
| 12:00 AM | 00:00 |
| 12:00 PM | 12:00 |
| 1:30 PM | 13:30 |
| 11:59:59.125 PM | 23:59:59.125 |
Supported units & limits
Accepts h:mm or hh:mm followed by a space and AM/PM, case-insensitively, with optional :ss and one to three fractional-second digits. Hours must be 1–12; minutes and seconds must be 00–59. Midnight is written 00:00 in the result. No date, time zone, leap second, 24:00 end-of-day notation or duration conversion is included.
Common mistakes
AM/PM are required to identify the half of the day. The converter follows the common clock convention 12 AM = midnight and 12 PM = noon, but those labels can be ambiguous in prose; use midnight/noon or a date and 24-hour time when communicating a deadline. Clock notation does not change the time zone.
Privacy
Conversions run in your browser. This site does not upload or store the values you enter. We use Google Analytics, loaded through Google Tag Manager, to count page visits and see which tools are used; Google may set cookies for this. The hosting server may keep standard access logs when you load a page.
Conversion guide
Use explicit notation for clock times
Enter a clock time with its AM or PM marker and copy the converted 24-hour string. For dates and deadlines, pair it with an explicit calendar date and zone. If you mean a duration, such as 13 hours 30 minutes, use a duration tool rather than an AM/PM clock converter.
12 Hour to 24 Hour Converter FAQ
Is 12 AM midnight or noon?
Under this clock convention, 12 AM is midnight and converts to 00:00. For a dated event, specify the date as well.
Can I keep seconds?
Yes. Optional seconds and up to three fractional digits are preserved without numeric rounding.
Does this change my time zone?
No. It only changes the representation of the same clock time. Use the time-zone tool for dated zone conversions.