Conversion
100% in your browser
Time Duration Converter
Convert time durations between milliseconds, seconds, minutes, hours, days and weeks instantly. Edit any field to update all others.
Time Duration Converter
Convert any time duration between milliseconds, seconds, minutes, hours, days, and weeks. Edit any field and all others update automatically. The human-readable breakdown (e.g. “1h 30min”) is shown below the fields.
Conversion reference
- 1 second = 1 000 milliseconds
- 1 minute = 60 seconds = 60 000 ms
- 1 hour = 60 minutes = 3 600 seconds = 3 600 000 ms
- 1 day = 24 hours = 86 400 seconds = 86 400 000 ms
- 1 week = 7 days = 168 hours = 604 800 seconds
Common durations
- API timeout: 30 000 ms = 30 seconds
- JWT expiry (1 hour): 3 600 seconds = 3 600 000 ms
- Cache TTL (1 day): 86 400 seconds
- Session expiry (2 weeks): 1 209 600 seconds
- Unix timestamp difference: seconds since 1970-01-01 UTC
Use cases
- Setting server timeouts and cache expiry values
- Converting animation durations (CSS uses seconds, JS uses milliseconds)
- Understanding database timestamp differences
- Calculating SLA and uptime windows