</> ConvertAtlas Developer Tools
Converters

Duration Converter (ms, s, min, hours, days)

Convert between milliseconds, seconds, minutes, hours and days.

Instant 100% in-browser Free

This tool converts a duration between milliseconds, seconds, minutes, hours and days, and shows a human-readable breakdown like "1h 30m". Type a value in any unit and the others update live in your browser.

How to use it

  1. Enter a value in any unit.
  2. The equivalents in the other units update instantly.
  3. A human-readable summary is shown too.

About Duration Converter

Durations turn up constantly in code — cache lifetimes, timeouts, token expiry, rate-limit windows — and they are expressed in whatever unit a given API chose. Converting 90000 milliseconds into "a minute and a half", or working out how many seconds are in three days, is simple arithmetic that is nonetheless easy to fumble. This converter keeps the common time units in sync from one input and adds a plain-language breakdown, so you can reason about timeouts and intervals quickly. It runs entirely in your browser.

FAQ

Why do I need this for code?

APIs express durations in different units — milliseconds, seconds, or human strings. Converting quickly avoids off-by-1000 timeout bugs.

Does it show a human-readable form?

Yes, it breaks the duration into days, hours, minutes and seconds.

How many milliseconds are in common durations?

One second is 1000 ms, one minute is 60000 ms, one hour is 3,600,000 ms and one day is 86,400,000 ms. Converting between units is common when working with timeouts, animations and API rate limits.