Back to Time
Duration format converter — seconds, mm:ss, hh:mm:ss & 1h30m bulk

Duration format converter — seconds, mm:ss, hh:mm:ss & 1h30m bulk

Convert durations between three formats: seconds (5400), clock (01:30:00), and human-readable (1h30m). Pick the output format and the input is auto-detected — even mixed formats on different lines. Bulk-converts multi-line input and reports skipped (unparseable) lines. Supports d/h/m/s units (1d = 86400 seconds). Runs entirely in your browser.

timeconversionformat

How to use

Paste one duration per line into the input, pick an output format (seconds / clock / human-readable) and click Convert. Each line's input format is auto-detected and mixed formats are fine: integer seconds (5400), colon-separated clock `H:M:S` or `M:S` (e.g. 01:30:45 / 90:00), or `1d2h3m4s` with d/h/m/s units (1d = 86400 s). Unparseable lines are skipped and counted in the stats. Copy the result or download it as .txt.

FAQ

Is my input uploaded?
No. All conversion runs in the browser via JavaScript — input and output never leave your device.
Which input formats are accepted?
Three formats are auto-detected: (1) integer seconds (e.g. 5400), (2) colon-separated clock `H:M:S` or `M:S` (e.g. 01:30:45 / 90:00 — minutes/seconds need not be 0–59), and (3) `1d2h3m4s` with d/h/m/s units (case-insensitive, any unit may be omitted). Empty lines are ignored.
Does it handle durations longer than 24 hours?
Yes. Clock format keeps growing the hour field (e.g. `25:00:00`). Human-readable format uses `d` for full days (e.g. `1d2h30m`, where 1d = 86400 s).
What happens to unparseable lines like `abc`?
They are skipped (not included in the output). The stats line reports the skipped count, so you can fix those lines in the input and click Convert again.
Are milliseconds or fractional seconds (1.5s) supported?
Not currently — only integer seconds are accepted. Inputs like `1.5` or `1500ms` are skipped. We may add support if there's demand.

Related tools