Milliseconds to readable duration

Timers in code and server logs measure time in milliseconds. Paste the number to see how long it really is.

Loading the tool…

Processing and privacy: The result is calculated inside your browser and your data is not sent to any server.

How to use it

  1. Enter milliseconds.
  2. The result appears straight away and updates as you edit.
  3. Copy the result, or copy a link that keeps the same values to share it.

How it is calculated

1 s = 1000 ms, 1 min = 60,000 ms, 1 h = 3,600,000 ms and 1 day = 86,400,000 ms. Divide in turn and carry the remainder down.

Example

Inputs: Milliseconds = 90,061,001 ms. Result: Duration: 1 day, 1 hour, 1 minute, 1 second, 1 millisecond; Total seconds: 90,061.001.

Limits and caveats

  • A day is 86,400,000 ms here, with no leap seconds.
  • The number is treated as a duration, not as a Unix timestamp.

Questions about this tool

How many milliseconds are in a second?

1000. The prefix milli means one thousandth.

How long is 250,000 ms?

250 seconds, which is 4 minutes 10 seconds.

Where do millisecond durations come from?

JavaScript timers such as setTimeout, server response times and log files commonly use them.