DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeDate / TimeISO 8601 Duration Parser

About ISO 8601 Duration Parser

ISO 8601 Duration Parser preview - Date / Time tool

Parse P3Y6M4DT12H30M5S into years, months, weeks, days, time. Part of the DevTools Surf developer suite. Browse more tools in the Date / Time collection.

Use Cases

  • API developers parsing ISO 8601 durations from YouTube or Azure
  • Backend devs converting duration strings to human-readable formats
  • DevOps engineers interpreting interval fields from cloud provider APIs
  • Data analysts decoding duration columns in analytics exports

Tips

  • Paste a full ISO 8601 duration like P3Y6M4DT12H30M5S
  • Output breaks down years, months, days, hours, minutes, seconds
  • Use the T separator to distinguish date from time components

Fun Facts

  • ISO 8601 duration format was first published in 1988 and uses the 'P' prefix (for 'period') — making P1Y2M3D mean '1 year, 2 months, 3 days.'
  • YouTube's Data API v3 returns video durations in ISO 8601 format (e.g., PT4M13S for a 4-minute 13-second video), surprising many developers who encounter it for the first time.
  • The ISO 8601 duration format can also express durations as start/end datetime pairs or as start/duration pairs, though the PnYnMnD form is by far the most common.

FAQ

What's ISO 8601 duration format?
P[n]Y[n]M[n]W[n]DT[n]H[n]M[n]S. Example: P3Y6M4DT12H30M5S = 3 years, 6 months, 4 days, 12 hours, 30 min, 5 seconds.
Who uses this format?
XML Schema, JSON APIs, GraphQL schemas, Kubernetes TTL fields. Wherever duration needs to be machine-parseable.
Can I go duration → ISO?
Toggle — enter 'human' duration fields, get ISO string. Useful when writing API contracts or validators.
What about fractional seconds?
P0DT0H0M0.5S is 500ms. Parsers vary on support; the tool emits the form your consumer specifies.

Related Date / Time Tools

Timezone ConverterDuration CalculatorAge CalculatorWorking Day CalculatorWeek Number LookupDate Offset CalculatorCron HumanizerDate Format Converter
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback