12-hour to 24-hour time converter

Type a time the way a wall clock shows it, with AM or PM, and get the same time in the 24-hour format used by flight, train and shift schedules.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter 12-hour time.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

1 to 11 AM keep the hour, 12 AM becomes 00. For 1 to 11 PM add 12 to the hour, and 12 PM stays 12. Minutes do not change.

Example

Inputs: 12-hour time = 3:45 PM. Result: 24-hour time: 15:45.

3:45 PM
15:45

Limits and caveats

  • AM or PM is required, since a time without it is ambiguous.
  • Military time is shown as hours and minutes only, without seconds.

Questions about this tool

What is 12 AM in 24-hour time?

12 AM is midnight, written 00:00 in 24-hour time. 12 PM is noon, written 12:00.

How do I convert 5 PM to 24-hour time?

Add 12 to the hour: 5 + 12 = 17, so 5 PM is 17:00.

Can I include seconds?

Yes. A time such as 11:59:30 PM becomes 23:59:30. The military time output keeps only hours and minutes.