Duration Converter — Seconds, Hours & ISO 8601 Convert durations and ISO 8601 periods.
100% offline
Input7 chars · 1 lines
Output105 chars
Converted
Seconds     5400
Minutes     90
Hours       1.5
Days        0.0625
ISO 8601    PT1H30M
Humanized   1h 30m

About Duration Converter — Seconds, Hours & ISO 8601

Durations show up everywhere in software — API token TTLs, cache expiries, cron-ish intervals, config timeouts — but rarely in the same shape. One service wants raw seconds (`5400`), another speaks ISO 8601 periods (`PT1H30M`), and a human just wants to know that's "1h 30m". Converting between them in your head is slow and easy to get wrong.

This free duration converter parses any of those forms — an ISO 8601 period, plain seconds, or a human string like `1h 30m` — and shows the length across seconds, minutes, hours, and days, plus the canonical ISO 8601 and humanized summary. It's pure arithmetic, so it runs entirely in your browser with nothing sent to a server.

Features

  • Convert across seconds, minutes, hours, and days
  • Parse and emit ISO 8601 period strings like PT1H30M and P1DT2H
  • Accepts plain seconds or human input ("1h 30m")
  • Humanized summary plus copy-ready output; fully offline

How to use

  1. Type a duration: an ISO period (PT1H30M), a number of seconds (5400), or a human string (1h 30m).
  2. Read the converted value across seconds, minutes, hours, and days.
  3. Copy the canonical ISO 8601 or humanized form from the output.

Frequently asked questions

What does PT1H30M mean?

It is an ISO 8601 duration. The "P" marks a period and "T" separates the time part, so PT1H30M reads as 1 hour and 30 minutes — 5400 seconds. A leading day component looks like P1DT2H (1 day, 2 hours).

How do I convert seconds to hours and minutes?

Enter the number of seconds and the converter breaks it down for you: 5400 seconds is 1.5 hours, or 1h 30m. It also shows the equivalent ISO 8601 period.

Does it support fractional seconds?

Yes. ISO periods like PT1.5S and decimal second inputs are parsed correctly, and the fractional part is preserved in the breakdown.

Is my input sent anywhere?

No. The conversion is plain regex and arithmetic that runs locally in your browser — nothing is uploaded, so it works offline and keeps your data private.

Everything runs locally in your browser — your input is never uploaded.