Skip to content
T
Tools.Town
Free Online Tools for Everyone
Product Updates

Time Format Converter

Introducing the Time Format Converter — 12h, 24h, Duration & HH:MM:SS

Convert between 12-hour AM/PM and 24-hour time, turn duration strings into seconds, and switch between HH:MM:SS and total seconds. Six modes in one tool.

Tools.Town Team 25 June 2026 2 min read

The new Time Format Converter handles six common time conversions that previously required different tools or mental arithmetic.

Six modes

ModeInput → Output
12h → 24h3:45 PM15:45
24h → 12h15:453:45 PM
Duration → Seconds1h 30m 45s5445
Seconds → Duration54451h 30m 45s
HH:MM:SS → Seconds01:30:455445
Seconds → HH:MM:SS544501:30:45

Secondary outputs

Each conversion also shows related representations. A 12→24 conversion shows HH:MM:SS and total seconds since midnight — so one click gives you everything.

Use cases

  • Scheduling: convert AM/PM times from email invites to 24-hour for API calls
  • Video editing: convert HH:MM:SS timecodes to total seconds for arithmetic
  • Database work: convert duration strings from logs to integer seconds
  • Cooking or sports: convert “1h 30m” run time to seconds for pace calculations

Try it

Open the Time Format Converter and pick the mode you need. See the guide for the full format reference table.

Frequently Asked Questions

What formats does it accept?
12-hour: '3:45 PM', '03:45:22 AM'. 24-hour: '15:45', '23:59:00'. Duration: '1h 30m 45s', '90m', '1 hour 30 minutes'. HH:MM:SS: '01:30:45'. Bare integers are treated as seconds.
What secondary outputs does it show?
A 12→24 conversion also shows HH:MM:SS and total seconds since midnight. Duration→Seconds also shows HH:MM:SS and the human-readable form.

Explore more on Tools.Town Blog

Finance guides, tool launches, and engineering stories — updated weekly.

All Posts