Skip to content
T
Tools.Town
Free Online Tools for Everyone
3:45 PM → 15:45

Time Format Converter

100% Free

Convert 12-hour AM/PM ↔ 24-hour, duration strings ↔ seconds, and HH:MM:SS ↔ seconds — with a full reference chart.

12 & 24-hr
Durations
Instant
Private
15:45
12-hour → 24-hour
15:45:00
HH:MM:SS
56700
Seconds since midnight
Format reference ↓
ModeExample inputOutput
12→243:45 PM15:45
24→1215:453:45 PM
Duration→s1h 30m 45s5445
Seconds→dur54451h 30m 45s
HH:MM:SS→s01:30:455445
Seconds→HMS544501:30:45

Embed This Tool

Easy to Embed

Add Time Format Converter to your website or blog in seconds.

  • Responsive design
  • Lightweight & fast
  • No backend required
  • Always up-to-date
<iframe
  src="https://tools.town/embed/time-format-converter/"
  width="100%"
  height="600"
  style="border:none; border-radius:12px;"
  loading="lazy"
  title="Time Format Converter">
</iframe>

Share This Tool

Share Instantly

Share Time Format Converter with anyone — no login required.

  • Shareable link
  • No login required
  • Works on any device
  • No account needed

Share via

Advertisement

How to Use

  1. 1 Choose a conversion mode: 12→24, 24→12, Duration→Seconds, Seconds→Duration, HH:MM:SS→Seconds, or Seconds→HH:MM:SS
  2. 2 Enter your time string in the input field (e.g. '3:45 PM', '15:45', '1h 30m 45s', or '5445')
  3. 3 The result appears instantly — no button to press
  4. 4 Copy the primary output or any secondary representation (HH:MM:SS, human-readable) with one click
  5. 5 Refer to the conversion chart below for a quick reference of all 24 hours

Features

  • 12-hour to 24-hour conversion with correct handling of 12 AM (→ 00:00) and 12 PM (→ 12:00)
  • 24-hour to 12-hour with automatic AM/PM labelling
  • Duration string parser: '1h 30m 45s', '90m', '2 hours' → total seconds
  • 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-hour24-hour12-hour24-hour
12:00 AM00:0012:00 PM12:00
1:00 AM01:001:00 PM13:00
2:00 AM02:002:00 PM14:00
6:00 AM06:006:00 PM18:00
9:00 AM09:009:00 PM21:00
11:00 AM11:0011:00 PM23: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.

Related Tools You Might Like

Browse more free tools