ISO 8601 Duration Converter
What is an ISO 8601 Duration Converter?
Convert ISO 8601 duration format strings (such as `P1Y2M3DT4H5M6S` or `PT1H30M`) into total seconds, minutes, hours, days, and human-readable text.
Why Use This Converter?
- API Integration: Decode ISO 8601 video duration strings from YouTube API (`PT15M33S`) into seconds.
- Cloud Billing & Timeouts: Parse ISO duration strings used in AWS, Azure, and microservice SLA definitions.
- Data Processing: Convert ISO duration strings into numeric time metrics for calculations.
How to Use
- Type an ISO 8601 duration string (e.g. `PT1H30M` or `P2DT5H`).
- The converter parses years, months, days, hours, minutes, and seconds.
- View total breakdown in seconds, minutes, hours, and days.
Real Conversion Example
Input (TEXT):
P1DT2H30M
Output (TEXT):
Human Format: 1 day, 2 hours, 30 minutes Total Seconds: 95,400 seconds Total Minutes: 1,590 minutes Total Hours: 26.5 hours
Important Technical Details & Mechanics
- ISO 8601 Spec Parser: Full parsing for `P` (Period), `Y` (Years), `M` (Months), `W` (Weeks), `D` (Days), `T` (Time), `H` (Hours), `M` (Minutes), `S` (Seconds).
- Bi-Directional Conversion: Converts ISO strings to seconds and numeric time inputs back into ISO duration strings.
- Client-Side Engine: Instant calculation with zero network overhead.
Related Developer & Utility Tools
- Percentage Calculator: Calculate percentage increases and discounts.
- Ratio Calculator: Solve aspect ratio and proportional values.
- Math Evaluator: Evaluate complex mathematical expressions.
Frequently Asked Questions
What does "P" and "T" mean in ISO 8601 duration?
P stands for Period (placed at the start). T stands for Time (separates date units from hours/minutes/seconds).
How does it decode YouTube API video durations like PT4M20S?
PT4M20S represents 4 Minutes and 20 Seconds (260 total seconds).
Can I convert seconds back to ISO duration?
Yes, enter total seconds to generate the equivalent ISO 8601 duration string.
Is it free?
Yes, 100% free.
What is the main function of ISO 8601 Duration Converter?
Convert ISO 8601 duration strings (P1Y2M3DT4H5M6S) into total seconds, minutes, hours, days, and human text. This converter transforms iso 8601 duration data formats locally without server uploads.