- Enter a duration expression or milliseconds.
- Run Convert.
- Read total ms and converted units.
- Bare numbers are milliseconds, not seconds.
Compound Duration Converter
Parse compound durations and millisecond totals.
How to Use This Tool
Learn More About Compound Duration Converter
Durations
Compound strings combine several number + unit pairs (e.g. 2h 30min). The convert package parses them consistently. For a single number, this tool follows `ms(number)`: the value is milliseconds, which matches many APIs and databases.
For single-unit conversions (seconds ↔ hours), see the time converter.
About
Use this tool when you have a duration expression (several units at once) or a large millisecond value and want one screen with milliseconds, hours, days, and a compact string. It runs in the browser and uses convert ms and convertMany.
Examples
Milliseconds total
Bare ms value expands to seconds through weeks.
Input
3600000
Output
Total ms: 3600000 Human-readable: 0.9999999999999999 h Seconds: 3600.000 Minutes: 60.000000 Hours: 1.000000 Days: 0.041666667 Weeks: 0.005952381
Compound expression
Multi-part duration; some patterns use a shorter breakdown line.
Input
1d 2h 30min
Output
Total ms: 95400000 Human-readable: 1.1041666666666667 d (Could not expand into hours/minutes with convertMany for this pattern.)
Use Cases
- Turning SLA windows like “1d 4h” into milliseconds for APIs
- Reading log timestamps or TTL values in human units
- Checking homework or media timelines expressed as compound durations