Skip to main content
Toolbox
Time

12h to 24h Time Converter

Convert between 12-hour standard time (AM/PM) and 24-hour military time formats instantly.

Quick Answer & Summary

To convert 12-hour PM time to 24-hour military time, add 12 to the hours (e.g., 4:20 PM = 16:20). 12:00 AM midnight equals 00:00, and 12:00 PM noon equals 12:00. To convert 24-hour time above 12:00 to 12-hour time, subtract 12 and append PM.

Time Format Conversion Rules
24h = (PM && H ≠ 12 ? H + 12 : (AM && H = 12 ? 0 : H)) : M

Standard military and ISO 8601 24-hour time conversion logic.

The 12-hour clock divides the 24-hour day into two periods (AM from 12:00 midnight to 11:59 AM, and PM from 12:00 noon to 11:59 PM). The 24-hour clock (military time) runs continuously from 00:00 to 23:59 without ambiguity.

Share This Tool

Help your team and fellow developers save time with free, private client-side utilities.

TB
Toolbox Editorial TeamVerified Authors

Systems & Security Engineers • Applied Cryptography & High-Performance Web Tools

Updated:
100% In-BrowserZero server storage
Standards AuditedRFC & ISO compliant
Peer ReviewedEditorial Policy
Documentation & Guide

How to Use 12h to 24h Time Converter

1

Type 12-Hour or 24-Hour Time

Type into either input box (e.g. '04:20 PM' or '16:20').

2

Instant Conversion

The corresponding military or 12-hour AM/PM time converts dynamically.

3

One-Click Copy

Click 'Copy' to copy the formatted string directly to your clipboard.

Pro Tips
Use for military, hospital shift, pilot, and programmer time conversions

Practical Examples & Conversions

Input
12:00 AM
Output
00:00

Frequently Asked Questions (PAA)

Related Tools & Converters

Authoritative Standards & Citations

Calculations and algorithms on this page are implemented and verified in strict accordance with the following official technical specifications: