ISO 8601 Duration Converter

Type an ISO 8601 duration, a number of seconds or plain words, and see it in the other forms.

Use the tool

Loading the tool…

About ISO 8601 Duration Converter

Convert between ISO 8601 durations, such as PT1H30M, plain seconds and everyday wording such as "1 hour 30 minutes". It works in three directions: a duration to words and seconds, seconds to a duration, and words to a duration.

Worked example

Enter `PT1H30M`. The tool shows 1 hour 30 minutes and 5,400 seconds.

Limits

ISO 8601 durations are often used in data files and APIs. Check the result against the format that system expects.

How to use ISO 8601 Duration Converter

  1. Choose what you are converting from.
  2. Enter the duration.
  3. Read the ISO, words and seconds.

Good to know

  • P means period and T separates the date part from the time part, so P1M is a month and PT1M is a minute.
  • A year counts as 365.2425 days and a month as 30.44 days when converted to seconds, so those results are approximate.
  • Negative durations are not part of the standard and are rejected.

Frequently asked questions

What does PT1H30M mean?

One hour and thirty minutes.

Why is a month approximate?

Months have different lengths, so a month in seconds depends on the date.