← All text tools

ISO 8601 Duration Converter

Convert ISO 8601 durations like PT1H30M into seconds and plain words, or build the duration string from years, days, hours and minutes.

  • Free
  • No sign-up
  • Works on any device

About ISO 8601 Duration Converter

An ISO 8601 duration such as P3DT4H30M packs a length of time into a short string: P starts the period, the date units come first, then T introduces hours, minutes and seconds. APIs, calendars, video metadata and schedulers use it. Paste a string like PT1H30M to get the units, the length in words and the total seconds, minutes, hours and days, or switch to build mode and fill in years, weeks, days, hours, minutes and seconds to get the string. Because months and years vary in length, the totals use 365 and 30 days, and you can change both.

How to use ISO 8601 Duration Converter

  1. Choose whether to parse a duration string or to build one from fields.
  2. Type a string like PT45S, P3DT12H or P1Y2M3DT4H5M6S, or fill in the unit fields.
  3. Read the units in words, the total seconds, minutes, hours and days, or copy the string that was built.

Why use this tool?

Also known as

Frequently asked questions

What does PT1H30M mean?

It is a period of 1 hour and 30 minutes, which is 5,400 seconds. The T separates the date part from the time part, and the H and M letters after it stand for hours and minutes.

What is the difference between P1M and PT1M?

P1M is one month because it sits in the date part. PT1M is one minute because it comes after the T. This is the most common mistake when writing durations by hand.

Why can total seconds for months or years be only an estimate?

A month can be 28 to 31 days and a year 365 or 366, so the exact length depends on the calendar date. This page uses days per month and per year that you can change.

Is ISO 8601 Duration Converter free?

Yes. ISO 8601 Duration Converter on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Can I put ISO 8601 Duration Converter on my own website?

Yes. Use the Embed on your site button under the tool to copy a short piece of code and paste it into your page. It is free, needs no account, and the tool keeps working inside your page.

Related tools