ISO Duration Converter

Convert an ISO 8601 duration to seconds or turn seconds into ISO duration notation.

Loading tool…

How the format works

After T, H means hours, M means minutes, and S means seconds. Before T, M means months. The converter shows calendar months and years separately because their lengths depend on the starting date.

How to use this tool

  1. Choose a direction and enter an ISO duration or a number of seconds.
  2. Read the converted values below the input.

Example

PT1H30M is 5400 seconds.

Common questions

Does P1M equal 30 days?

It represents one calendar month. The number of days depends on the start date.