Duration Converter
Convert durations between milliseconds, seconds, minutes, hours, days, and ISO 8601 (PT1H30M). Paste 1h 30m, 5400s, or a timeout from a config file. Parsing stays on-device.
Runs in your browser. Nothing is uploaded.
Enter a duration to see it in milliseconds, seconds, minutes, hours, days, and ISO 8601. A bare number is read as milliseconds.
About this tool
Convert a duration between milliseconds, seconds, minutes, hours, days, ISO 8601, and a short readable form such as 1h 30m. Useful for timeouts, cache TTLs, and cron gaps written in whichever unit the config file prefers.
How to use: type 1h 30m, 90s, 2.5 days, PT1H30M, or a bare number, which is read as milliseconds. Units such as ms, s, min, h, d, and w can be combined.
Example: 5400000 ms is 5400 seconds, 90 minutes, and PT1H30M. ISO years and months are rejected because their length depends on the calendar.
Parsing is local. Related: timestamp converter for points in time rather than lengths of time. After load, converting works offline.
Related Convert tools
JSON ↔ YAML
Convert JSON to YAML and YAML back to JSON in the browser. Paste a config, Kubernetes snippet, or API fixture and copy the other format. Parsing uses js-yaml locally. Documents are never posted to a converter.
JSON ↔ TOML
Convert JSON objects to TOML and TOML documents back to JSON in the browser. Handy for Cargo.toml, pyproject, and app config fragments. Parsing stays on-device.
JSON ↔ XML
Convert JSON objects to XML and XML documents back to JSON. Useful for SOAP leftovers, RSS, and mixed API stacks. XML is parsed with the browser DOMParser so payloads stay on the device.
JSON ↔ CSV
Turn an array of JSON objects into CSV, or parse CSV headers into JSON objects. Quote-aware parsing runs in the tab so spreadsheets of IDs and emails are not uploaded to a conversion service.
JSON to SQL
Turn a JSON object or array of objects into SQL INSERT statements. Set a table name, copy the query, and keep rows on the device instead of pasting fixtures into a hosted converter.
CSV ↔ TSV
Convert comma-separated values to tab-separated values and back, preserving quoted fields. A small delimiter swap for dumps you would rather not paste into a spreadsheet SaaS.