Skip to content

Duration Converter

Convert a duration between seconds, minutes, hours, clock notation and ISO 8601 — 90m, 01:30:00 and PT1H30M all read the same.

Enter something above to see the result.

One duration, every notation

Enter a span in whichever form you have it — 90m, 1h 30m, 01:30:00, PT1H30M or a bare number of seconds — and every other representation appears.

The ISO 8601 form is what JSON Schema, Kubernetes manifests and calendar formats expect; the clock form is what a log or a spreadsheet shows.

Frequently asked questions

Is a bare number read as seconds or milliseconds?

Seconds, which is the more common convention for a duration. Add "ms" explicitly for milliseconds.

Why is there no month or year?

Neither has a fixed length — a month is 28 to 31 days — so converting them to seconds would be a guess rather than a conversion.

Related tools