Seconds to human-readable duration: '5445' → '1h 30m 45s'
HH:MM:SS to seconds and back — useful for video editors and spreadsheets
Secondary outputs shown alongside the primary result for quick cross-checking
Why it Matters
Time format confusion causes real errors — missed meetings, off-by-12-hour scheduling bugs, and incorrect video timestamps. The 12-AM-is-midnight / 12-PM-is-noon rule trips up even experienced users. A converter that handles both directions plus duration formats covers the cases developers, travellers, students, and content creators hit every day.
★★★★★
Use Cases
International Scheduling
Convert between the AM/PM times in emails from US colleagues and the 24-hour times your calendar uses
Development & Logging
Convert seconds from a log file into readable HH:MM:SS for debugging or timestamps
Video Editing
Convert between timecode HH:MM:SS and raw seconds for video chapter markers and scripts
Education
Understand the midnight/noon rule and practice time format conversions with instant feedback
Quick 12-hour / 24-hour conversion chart
12-hour
24-hour
12-hour
24-hour
12:00 AM
00:00
12:00 PM
12:00
1:00 AM
01:00
1:00 PM
13:00
2:00 AM
02:00
2:00 PM
14:00
6:00 AM
06:00
6:00 PM
18:00
9:00 AM
09:00
9:00 PM
21:00
11:00 AM
11:00
11:00 PM
23:00
Rule: AM → keep the hour (12 AM → 00). PM → add 12 (12 PM → 12). Minutes never change.
Privacy
All conversions happen in your browser. No data is sent to any server.
Frequently Asked Questions
How do I convert 12-hour time to 24-hour time?
For AM times keep the hour as-is, except 12 AM becomes 00. For PM times add 12 to the hour, except 12 PM stays 12. Minutes never change. Examples: 3:45 PM → 15:45; 12:00 AM → 00:00; 12:30 PM → 12:30; 11:59 PM → 23:59.
What is 12 AM and 12 PM in 24-hour time?
12 AM (midnight) = 00:00. 12 PM (noon) = 12:00. This is the most common source of confusion. A helpful mnemonic: 12 AM is just after 11:59 PM the night before — the clock resets to 00:00, not 12:00.
Is 24-hour time the same as military time?
Yes. Military time uses the 24-hour clock, typically written without a colon (1430 instead of 14:30) and spoken as 'fourteen thirty'. The conversion rules are identical.
How does duration parsing work?
The converter accepts formats like '1h 30m 45s', '1 hour 30 minutes', '90m', '2h', or bare seconds. It extracts hours, minutes, and seconds via pattern matching and returns the total in seconds. All parts are optional — '90m' and '1h 30m' both produce 5400 seconds.
Why is HH:MM:SS → Seconds useful?
Video editors, subtitle writers, and spreadsheet users often need to convert timecodes to raw seconds for arithmetic (e.g. adding durations) and then back to HH:MM:SS for display. This converter handles both directions instantly.