Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Date & Time

Duration Converter

Paste a duration in any common shape — 1h 30m, PT1H30M, 01:30:00 or a bare number of seconds — and read it back in every other format, with a component breakdown.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

Any duration in, every format out

Give the tool a duration in almost any shape and it normalises it to seconds, then shows it back as a human string, an ISO 8601 duration, a clock value, the raw total and a component breakdown. Accepted inputs include "1h 30m", "90 minutes", "PT1H30M", "01:30:00", "1d 12h" and a bare number of seconds.

Auto-detect versus total seconds

In auto mode a plain number is seconds and anything else is parsed as a duration — ISO 8601 first, then clock notation, then unit tokens such as d, h, m and s, with the long forms understood too. Switch to Total seconds when a bare number must be seconds and everything else should be rejected.

The month-and-year shortcut

An ISO input with Y or M components uses fixed conversions: a year is 365 days and a month is 30 days. That is the standard approximation, not a calendar calculation, so a span crossing February comes out slightly off. Days, hours, minutes and seconds are exact.

Clock notation is ambiguous

Two-part values like 01:30 are read as MM:SS, so that input is ninety seconds, not ninety minutes. Use "1:30:00" or "1h 30m" for an hour and a half. Minutes and seconds in clock form must be under 60. Negative durations are allowed and keep their sign.

Output options and privacy

The Output option narrows the result to one form — human, ISO 8601, clock, total seconds or components — or shows the full set as a table. Everything is computed with plain arithmetic inside this tab; no value is sent anywhere.

Questions

Is 01:30 read as 1 hour 30 minutes or 1 minute 30 seconds?

Two-part clock values are read as MM:SS (90 seconds here). Use 1:30:00 or 1h 30m when you mean ninety minutes.

How are months and years converted?

ISO 8601 Y and M components use fixed approximations: a year is 365 days and a month is 30 days. That is the standard, not a calendar calculation, so a span crossing February comes out slightly off while days, hours, minutes and seconds are exact.

Can I convert negative or fractional durations?

Yes. Negative values keep their sign through every output, and fractional units such as 1.5h or 90.25s are accepted in human and bare-seconds input. Clock components must stay whole numbers below 60.

See category