AM/PM and military time

Free Time Format Converter Online - No Signup

Convert 12-hour AM/PM time to 24-hour military time or convert 24-hour time back to 12-hour format. Midnight, noon, seconds, and batch conversions are handled accurately.

12-hour to 24-hour 24-hour to 12-hour Midnight and noon safe Batch conversion

12/24 Hour Time Converter

Select a direction, enter a time, and get an exact conversion with optional seconds, batch processing, copying, and CSV export.

100% local conversion

Enter 12-hour time

Use an hour from 1 to 12 and select AM or PM.

1–12
0–59
0–59
AM / PM
Include seconds Display seconds in single and batch results.

Converted time

12-hour to 24-hour conversion

Conversion result 19:30:00

07:30:00 PM is 19:30:00 in 24-hour time.

Source time 07:30:00 PM
Target format 24-hour
Hour value 19
Day period Evening / PM
PM rule: add 12 to hours 1 through 11. Keep 12 PM as hour 12.

Batch time converter

Enter one time per line. Invalid rows are reported separately and are never silently modified.

12-hour format: h:mm[:ss] AM/PM. 24-hour format: H:mm[:ss].

Batch time conversion results
Line Input Output Status
Select Convert batch to process the entered times.

Recent conversions

The latest eight single conversions are stored only for this page session.

Completed conversions will appear here.
01
Midnight safe 12 AM converts to hour 00
02
Noon safe 12 PM remains hour 12
03
Batch conversion Convert multiple times together
04
Private by design All values remain in your browser
Time format conversion

Convert AM/PM and military time accurately

This 12-hour and 24-hour Time Converter converts conventional AM/PM time into 24-hour time and converts 24-hour or military time back into an easy-to-read 12-hour format.

The main source of conversion mistakes is hour 12. In the 12-hour system, 12 AM means midnight and maps to hour 00. In contrast, 12 PM means noon and remains hour 12.

For other PM times, add 12 to the hour. For example, 1:30 PM becomes 13:30 and 11:45 PM becomes 23:45. AM hours from 1 through 11 remain unchanged apart from a leading zero.

What is 24-hour or military time?

The 24-hour clock numbers every hour from 00 through 23 and does not require AM or PM. It is widely used in transportation, healthcare, public safety, computing, international schedules, and military communication.

Complete conversion toolkit

Everything needed for 12-hour and 24-hour time

Convert one time or a complete list while preserving seconds and identifying invalid entries clearly.

12-hour to 24-hour

Convert AM and PM times into zero-padded 24-hour or military time without manual arithmetic.

24-hour to 12-hour

Convert hours 00 through 23 into a familiar 12-hour clock time with the correct AM or PM period.

Optional seconds

Keep seconds in detailed schedules or hide them when only hours and minutes are needed.

Batch conversion

Enter one time per line and convert multiple schedules, rosters, logs, or timetable values at once.

Copy and CSV export

Copy a single result, copy all valid batch results, or download reusable CSV data.

Private local processing

Conversion, validation, temporary history, copying, and export are performed locally inside your browser.

Three simple steps

How to convert 12-hour and 24-hour time

Get an accurate conversion without memorizing clock rules.

Step 1

Select a direction

Choose 12-hour to 24-hour or 24-hour to 12-hour conversion.

Step 2

Enter the time

Add the hour, minute, optional second, and AM or PM when required.

Step 3

Copy or export

Review the converted time, copy it, download CSV, or process multiple values in batch mode.

Quick reference

12-hour to 24-hour conversion chart

Use these common values to understand the full-day conversion pattern.

12-hour
24-hour
Meaning
12:00 AM
00:00
Midnight, start of the day
6:00 AM
06:00
Morning
11:59 AM
11:59
One minute before noon
12:00 PM
12:00
Noon
3:30 PM
15:30
Afternoon
11:59 PM
23:59
One minute before midnight
Avoid common mistakes

Best practices for time format conversion

These rules prevent the most frequent midnight, noon, and schedule-format errors.

1

Remember that 12 AM is hour 00

Midnight is the beginning of the 24-hour day, so 12:15 AM becomes 00:15.

2

Do not add 12 to 12 PM

Noon already uses hour 12. Only PM hours 1 through 11 need 12 added.

3

Use leading zeros in 24-hour time

Write morning hours as 06:30 or 09:05 for consistent schedules, sorting, and data export.

4

Use 00:00 instead of 24:00

This converter uses the standard clock range from 00:00 through 23:59 and rejects hour 24.

Common questions

12-hour and 24-hour converter FAQ

How do I convert 12-hour time to 24-hour time?

For AM times, keep hours 1 through 11 unchanged and convert 12 AM to 00. For PM times, add 12 to hours 1 through 11 and keep 12 PM as 12.

What is 12 AM in 24-hour time?

12:00 AM is midnight and converts to 00:00 in 24-hour time. For example, 12:30 AM converts to 00:30.

What is 12 PM in 24-hour time?

12:00 PM is noon and remains 12:00 in 24-hour time. You do not add 12 to the hour when the time is 12 PM.

How do I convert 24-hour time to 12-hour time?

Hours 00 through 11 use AM, with 00 converted to 12. Hour 12 uses PM, and hours 13 through 23 subtract 12 and use PM.

Is 24:00 accepted by this converter?

No. This converter uses the standard 00:00 through 23:59 clock range. Enter 00:00 for midnight at the beginning of a day.

Can I convert multiple times at once?

Yes. Batch mode accepts one time per line, converts every valid row, and reports invalid lines separately without silently changing them.

Are my time values uploaded to a server?

No. Single conversion, batch conversion, temporary history, copying, and CSV generation are performed locally in your browser.

Ready to convert your time?

Convert AM/PM to military time, convert 24-hour time back to 12-hour format, or process a complete list privately.

Open Time Converter