ISO 8601 Duration Converter
Parse ISO 8601 durations like P1Y2M3DT4H5M6S into total seconds, minutes, hours and days, or build an ISO duration from a plain amount. All processing runs locally in your browser. Your data is not uploaded to any server. 100% Local Processing
How to Use
Translate between ISO 8601 duration strings and plain time amounts. Parse P1DT2H30M into totals, or turn 90 minutes into P1H30M.
Steps
- Choose the direction: ISO to totals, or an amount to ISO.
- For ISO to totals, paste a string like P1DT2H30M.
- For amount to ISO, type a number and pick its unit, then click Convert.
What ISO durations look like
- P1DT2H30M means 1 day, 2 hours and 30 minutes.
- Weeks use the W token, years the Y token, months the M token.
- A leading P is required; time always follows a T.
- Decimals are supported in the seconds field.
Features
- Both directions from one input area.
- Totals are given in seconds, minutes, hours and days.
- Months and years follow the 30-day and 365-day conventions.
- All processing runs locally in your browser. Your data is not uploaded to any server.