Skip to content

Duration Converter

Convert a duration between seconds, ISO 8601, clock time and words.

A bare number is read as seconds. 1h 30m, PT1H30M and 01:30:00 all work too.

Quick Tool Overview

The Duration Converter reads a length of time however it is written — 5400, "1h 30m", PT1H30M, 01:30:00 — and returns all the others, including the ISO 8601 form that turns up in Kubernetes and XML schemas without ever being explained there.

What it does
Converts a duration between every notation
You give it
A duration in any form
You get back
Seconds, ISO 8601, clock time and words
Best for
Config files, APIs and timeouts
Developer Tools Free, unlimited use No sign-up Runs in your browser

About the Duration Converter

Enter a duration however it comes — 5400, "1h 30m", PT1H30M, 01:30:00 — and get it in every other form, plus a breakdown into whole units.

The ISO 8601 duration is the one most people meet without being introduced. PT1H30M is one hour and thirty minutes; P1DT2H is one day and two hours; the T separates the date part from the time part, which is what stops the M in P1M (one month) meaning the same as the M in PT1M (one minute). It turns up in Kubernetes manifests, XML schemas, YouTube API responses and JSON schema definitions, and it is rarely explained where it appears.

Key features of the Duration Converter

ISO 8601 durations

Both read and written, including the T that separates months from minutes — the commonest mistake in a hand-written one.

Reads four notations

A bare number, a written duration, ISO 8601 and clock time, with the reading it chose stated explicitly.

Honest about months

Months and years use conventional averages, because their real length depends on which one you mean — the page says so rather than implying precision.

Broken into whole units

Weeks, days, hours, minutes, seconds and milliseconds, as well as each total on its own.

Plain English too

"1 hour and 30 minutes", ready to put in an interface.

How to use the Duration Converter

  1. 1

    Enter a duration

    5400, 1h 30m, PT1H30M or 01:30:00 — all are understood.

  2. 2

    See how it was read

    The page says which notation it recognised, so a bare number is never silently misread.

  3. 3

    Read the conversions

    Milliseconds, seconds, minutes, hours and days, plus ISO, clock and written forms.

  4. 4

    Copy the form you need

    Click any value to take it.

Frequently asked questions

One hour and thirty minutes. P opens the duration, T separates the date part from the time part, and each number is followed by its unit. P1DT2H30M is one day, two hours and thirty minutes.

Reviews of the Duration Converter

What people who use the Duration Converter think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Duration Converter. It takes half a minute and no account.

Write the first review

More developer tools