duration.tools

ISO 8601 Duration Converter

PT1H30M, decoded and generated.

Plain duration
1 d 2 h 30 min 0 s
95,400 seconds
ISO 8601
P1DT2H30M
Seconds
95,400
hh:mm:ss
26:30:00

PT1H30M is ISO 8601 for “one hour thirty minutes” — the duration syntax used by YouTube's API, schema.org markup, and countless REST payloads. Paste one to decode it, or enter plain time to generate the ISO string.

How to use it

  1. 1.Paste an ISO 8601 duration (P1DT2H30M) to decode it.
  2. 2.Or type a plain duration (1d 2h 30m) to encode it.
  3. 3.Copy either representation.

Questions people ask

What does the T in PT1H30M mean?
It separates date units from time units. P1M is one month; PT1M is one minute. The T is required before any hours, minutes or seconds.
How are months and years converted?
ISO 8601 leaves their exact length to context; this tool uses the common conventions of 30-day months and 365-day years and notes when they're in play.