How ISO 8601 duration converter works
ISO 8601 Duration Converter parses and converts durations written in the ISO 8601 format (for example P1Y2M10DT4H30M) into a human-readable breakdown of years, months, days, hours, minutes and seconds, and also computes the total in seconds for the time components. Conversion runs entirely in your browser; nothing you type is transmitted to any server, and the tool functions offline once the page is loaded.
ISO 8601 duration strings start with a 'P' (for Period), followed by date components (Y for years, M for months, W for weeks, D for days) and optionally a 'T' separator followed by time components (H for hours, M for minutes, S for seconds). Weeks (W) are a special case: when present, no other date components may appear. The total-seconds output covers only the deterministic time portion (hours, minutes, seconds) because months and years have variable lengths in days and cannot be converted to seconds without a reference date.