The tool you need, ready to use

12-Hour to 24-Hour Time Converter

3:40 PM is 15:40 in 24-hour time, and 15:40 is 3:40 PM. For 1 PM to 11 PM add 12 to the hour, and for 13 to 23 subtract 12. Midnight is hour 0 (12 AM) and noon is hour 12 (12 PM). Type any format below, including military time such as 1540, and you get the other notation and how to say it.

Last updated 2026-10-20All math stays in your browser

In 24-hour time

—

Type a time and the other format appears instantly.

  • 12-hour—
  • 24-hour—
  • Military time—
  • In words—
Inner 1–12 · 12-hourOuter 13–23 · 00 · 24-hourRead the same hand on the inner ring for AM and the outer ring for PM to get 24-hour time. Midnight is the outer 00; noon is the inner 12.

24-hour chart — tap an hour to jump to it

Convert many times at once

Paste a schedule or rota: the text stays, only the times change. Times written 1–12 without AM/PM are guesses and get a dotted underline.

Convert to
Converted
Paste text above and the result appears here.

Last updated 2026-10-20Your inputs are not stored

ROBERIN standardThe tool you need,
ready to use.
  • Clear at a glanceInputs and results sit where you expect them.
  • Result firstThe key number comes first; the working only when you need it.
  • Ask lessNo sign-up and no unnecessary details.

3:40 PM is 15:40, and 15:40 is 3:40 PM

The 12-hour clock counts the morning and the afternoon separately, each up to 12, and adds AM or PM. The 24-hour clock counts straight through from 0 to 23. To turn a PM time into 24-hour time, add 12 to the hour. To turn 13 to 23 back into 12-hour time, subtract 12 and add PM. The minutes and seconds never change.

The only tricky hour is 12. Midnight is hour 0 in 24-hour time and is usually written 12:00 AM. Noon is hour 12 in 24-hour time and is written 12:00 PM. Type any time into the converter above, such as "3:40 PM", "15:40", "1540", "11 at night" or "noon", and it shows the other notation, the rule it applied and the way you would say the time aloud. Military time, the 24-hour time written without a colon (1540), is shown too.

When you need to switch between the two

The same time is written differently depending on who wrote it, so you often have to translate when you copy it somewhere else. Typical cases:

  • Moving a booking into a calendar: an appointment text says "3:40 PM", while a work calendar, a booking system or a spreadsheet may use a 24-hour column and expect 15:40.
  • Reading timetables: many train, ferry and airline schedules print 19:05 with no AM or PM. You have to read it as 7:05 PM straight away to avoid planning the evening around the wrong departure.
  • Setting up devices and apps: phones, watches, smart-home timers and alarm apps let you choose a 12-hour or 24-hour display, and a schedule you type in the wrong notation can end up twelve hours off.
  • Building shift rotas: a night shift crosses midnight, and writing it as 22:00 to 06:00 makes it clear where the date changes. The bulk converter lets you convert a whole rota in one go.
  • Travel and business writing: a 24-hour time such as 14:00 in an itinerary, a meeting invitation or a report leaves no room for an AM/PM mix-up, especially between people who are used to different conventions.

How to use the converter

  1. Type a time into the top box. It reads "3:40 PM", "3:40 pm", "15:40", "1540", "0800 hrs" and wording such as "7 in the evening". The "Now" button inserts the time on your device.
  2. The large result shows the other notation: type 12-hour time and you get 24-hour time, and the other way round. Under it, a line such as "3 PM → 3 + 12 = 15" shows the rule that was applied.
  3. If you type "3:40" with no AM or PM, it is read as 24-hour time (03:40), and a "Read it as 3:40 PM" button offers the other reading. Press the one that matches what the original meant.
  4. The rows below list the same time as "12-hour", "24-hour", "Military time" and "In words". Each row has its own "Copy" button, and "Copy both on one line" gives you something like "3:40 PM = 15:40". The clock face shows the same hand against an inner 1 to 12 ring for 12-hour time and an outer 13 to 23 and 00 ring for 24-hour time.
  5. In the "24-hour chart", tap an hour to jump to it. The minutes stay as they are. The small number on each cell is the 12-hour hour and the large number is the 24-hour hour.
  6. For a schedule or a rota, open "Convert many times at once" and paste your text. The words stay, only the times change, and you can choose "All 24-hour" or "All 12-hour" and copy the result.

The conversion rule

Four rows are enough. Remember 12 and 0 separately, and everything else is adding or subtracting 12.

12-hour to 24-hour conversion rules
12-hour time24-hour timeWhat to do
12 AM (midnight)00Replace 12 with 0
1 AM to 11 AM01 to 11Keep the number (use two digits, for example 09:05)
12 PM (noon)12Keep the number
1 PM to 11 PM13 to 23Add 12 (7:05 PM becomes 19:05)

Going the other way, 00 becomes 12 AM, 01 to 11 stay AM, 12 becomes 12 PM, and 13 to 23 have 12 taken off and PM added. For example, 21:30 is 21 − 12 = 9, so 9:30 PM.

24-hour conversion table

Every full hour in three forms. The "spoken form" column follows the day periods described in the section on period words. When minutes are present, convert only the hour with this table and keep the minutes.

24-hour time, 12-hour time and spoken form
24-hour12-hourSpoken form
00:0012:00 AMmidnight (12:00 AM)
01:001:00 AM1:00 in the morning
02:002:00 AM2:00 in the morning
03:003:00 AM3:00 in the morning
04:004:00 AM4:00 in the morning
05:005:00 AM5:00 in the morning
06:006:00 AM6:00 in the morning
07:007:00 AM7:00 in the morning
08:008:00 AM8:00 in the morning
09:009:00 AM9:00 in the morning
10:0010:00 AM10:00 in the morning
11:0011:00 AM11:00 in the morning
12:0012:00 PMnoon (12:00 PM)
13:001:00 PM1:00 in the afternoon
14:002:00 PM2:00 in the afternoon
15:003:00 PM3:00 in the afternoon
16:004:00 PM4:00 in the afternoon
17:005:00 PM5:00 in the afternoon
18:006:00 PM6:00 in the evening
19:007:00 PM7:00 in the evening
20:008:00 PM8:00 in the evening
21:009:00 PM9:00 at night
22:0010:00 PM10:00 at night
23:0011:00 PM11:00 at night

Midnight, noon, 12 AM and 12 PM

Noon and midnight are the two points where AM and PM meet, which is why "12 AM" and "12 PM" cause so much confusion. In everyday use, 12 AM is read as midnight, the start of the day, and 12 PM as noon. This converter reads them the same way: 12 AM is hour 0 and 12 PM is hour 12. For example, 12:30 AM becomes 00:30 and 12:30 PM stays 12:30.

Not everyone agrees on this, so official guidance avoids the labels. The US National Institute of Standards and Technology (NIST) says in its Times of Day FAQs that 12 a.m. and 12 p.m. are ambiguous and should not be used, and that since noon is neither before noon nor after noon, a designation of either a.m. or p.m. is incorrect. For midnight it points to 0000 for the beginning of a given day and 2400 for the end of a day, and it says that giving an event as 11:59 p.m. or 12:01 a.m. on a particular day is a good idea. The converter follows that advice by showing a note whenever you enter 12 AM or 12 PM, and its output for the hour itself says "midnight (12:00 AM)" or "noon (12:00 PM)".

"Midnight tonight" is where dates go wrong. If a deadline is "midnight on Friday", people may mean the end of Friday, which is 00:00 on Saturday, or the start of Friday. Writing the date with 23:59 (for example "Friday 23:59") removes the doubt, and the converter explains the difference when you type "midnight".

Period words: morning, afternoon, evening, night

In speech we often add a word instead of AM or PM. The input box understands "in the morning", "in the afternoon", "in the evening", "at night", "noon", "midday" and "midnight", as well as "am", "pm", "a.m." and "p.m.". "7 in the evening" is 19:00, "9 at night" is 21:00 and "2 in the afternoon" is 14:00. "12 at night" is read as midnight, which is 00:00, and "1 to 5 at night" is read as the small hours after midnight, so 2 at night is 02:00 and the converter notes that the date may be the next day.

The "In words" row and the table's spoken form use the English day periods in Unicode CLDR 48: from 00:00 morning, from 12:00 afternoon, from 18:00 evening and from 21:00 night. Real usage varies from person to person, and many people say "2 at night" for 02:00, which CLDR calls morning. These ranges are a display convention, not a rule.

Military time (1540 and 0800 hrs)

"Military time" in everyday English means 24-hour time written without a colon: four digits, with the first two for the hour and the last two for the minutes. 3:40 PM is 1540, usually said "fifteen forty", and 8:00 AM is 0800. The converter's "Military time" row shows this form, and its input box also accepts 1540, "1540 hours", "0800 hrs" and "1540h". The number is simply the 24-hour time without the colon, so you convert it exactly as you would 15:40.

This is useful when you are reading a roster, a flight schedule or a log that prints times as four digits. 0030 is 12:30 AM, 1200 is noon and 2359 is 11:59 PM. Because the converter treats 24:00 as the end of the day, it shows 24:00 as 00:00 of the next day, and 0000 as the start of a day.

Common mistakes

  • Adding 12 to 12 PM: 12:30 PM written as 24:30 is wrong. Noon takes no 12, so it is 12:30.
  • Writing 12:10 AM as 12:10: 12:10 AM is just after midnight, which is 00:10. Writing 12:10 turns it into a midday time.
  • Leaving the date off a midnight deadline: "midnight Friday" can mean either end of the day. Give the date and the 24-hour time, for example Friday 23:59.
  • Sending "3:40" without AM or PM: the reader has to guess between 03:40 and 15:40. If you write 12-hour time, always include AM or PM.
  • Mixing both notations, such as "15:40 PM": AM and PM belong only to the 12-hour clock. Write either 15:40 or 3:40 PM. The converter reports this as an error.

Limits and caveats

  • The tool only changes the notation of the same moment in the same place. It does not convert between time zones or handle daylight saving time, so use a time-zone converter to find out what 15:40 in one city is somewhere else.
  • It does not take dates. Hours 24 to 47 are converted and marked "Next day", but it does not carry a real date forward. Hours of 48 and above are rejected.
  • Ambiguous input, such as "2 at night" or a bare 1 to 12 with no AM or PM, is read by a fixed rule and the converter tells you it did so. Ask the person who wrote the time what they meant.
  • The spoken form is a display convention based on CLDR day periods, and people in different places say it differently.
  • The bulk converter changes only text that looks like a time, such as "3:40 PM", "15:40" or "1540 hours" (a bare four-digit number like 1540 is left alone in bulk text, because it could be a year or a code). It skips lengths like "3 hours" and dates, but it may convert another number that looks like a time, for example a score of 2:15 or a ratio of 1:10. Most of these carry no AM or PM, so they get a dotted underline; read the result through once.
  • Only whole seconds are accepted. Fractions of a second are not handled.

Sources

Sources checked 2026-10-20.

Frequently asked questions

What is 3:40 PM in 24-hour time?

15:40. From 1 PM to 11 PM you add 12 to the hour and keep the minutes: 3 + 12 = 15, so 3:40 PM is 15:40, and in military time 1540.

What is 15:40 in 12-hour time?

3:40 PM. From 13 to 23 you subtract 12 and add PM: 15 − 12 = 3. By the same rule 19:00 is 7 PM and 23:00 is 11 PM.

Is midnight 00:00 or 24:00?

As a time of day it is 00:00, hour 0. Because midnight is the moment the date changes, "midnight tonight" is 00:00 tomorrow, and 24:00 is sometimes written for the end of today. NIST also gives 0000 for the beginning of a day and 2400 for its end.

Is 12 AM midnight or noon, and what about 12 PM?

In everyday use 12 AM is midnight (hour 0) and 12 PM is noon (hour 12), and this converter reads them that way. NIST calls 12 a.m. and 12 p.m. ambiguous and says they should not be used, so write "midnight" or "noon", or use 00:00 and 12:00.

What does a time with no AM or PM mean, such as 3:40?

The converter reads it as 24-hour time, 03:40 (3:40 AM), and a "Read it as" button shows 3:40 PM (15:40). If the text was written in 12-hour time you cannot tell which was meant, so ask the sender.

What is military time?

It is 24-hour time written without a colon: four digits, hour then minutes. 3:40 PM is 1540, usually said "fifteen forty", and 8:00 AM is 0800. The converter accepts forms like 1540, 1540 hours and 0800 hrs.

Can it convert words like "at night" or "in the evening"?

Yes. 7 in the evening is 19:00, 9 at night is 21:00 and 2 in the afternoon is 14:00. "12 at night" is read as midnight (00:00), and 1 to 5 "at night" as after midnight, so the date may be the next day.

What does 25:30 mean?

It means 1:30 the next day: subtract 24. The converter turns hours 24 to 47 into next-day times and marks them "Next day", and it rejects 48 and above.