Details
Duration Converter
This tool converts a time duration between different units. Enter a value in any of the unit fields and every other field updates instantly with the converted value.
It is especially handy for the common task of translating between seconds or milliseconds and days (and everything in between), such as when reading log timestamps, configuring cache expiry, or setting timeouts.
The tool loads with a sample duration so all fields are populated and ready to use.
Supported Units
- Milliseconds:
86400000- Thousandths of a second - Seconds:
86400- The SI base unit of time - Minutes:
1440- 60 seconds - Hours:
24- 60 minutes - Days:
1- 24 hours - Weeks:
0.142857- 7 days - Human readable: A breakdown such as
1 dayor2 days, 4 hours(read-only)
How to Use
- Automatic initialization: The tool loads with a sample duration filled in across all units
- Enter a value: Type a number into any unit field (milliseconds, seconds, minutes, hours, days, or weeks)
- Automatic conversion: Every other field updates instantly with the equivalent value
- Human readable output: A read-only summary shows the duration in plain language
- Copy functionality: Use the copy button next to each field to copy the value to your clipboard
Common Use Cases
- Developers: Converting timeouts, intervals, and cache TTLs between milliseconds, seconds, and days
- System administrators: Interpreting durations found in logs and configuration files
- Data analysts: Translating elapsed-time measurements between units
- General users: Quickly answering "how many seconds are in a day?" and similar questions
Notes
- Months and years are intentionally omitted because their length varies; this tool only covers fixed-length units up to weeks.
- Fractional values are supported, so
1500milliseconds correctly converts to1.5seconds, and43200000milliseconds becomes0.5days.
Features
- Bidirectional conversion: Enter a duration in any supported unit
- Real-time updates: Changes are reflected instantly across all units
- Error handling: Clear error messages for invalid (non-numeric) input
- Copy to clipboard: One-click copying for every field
- Sensible defaults: Loads with a sample duration so it is immediately useful
