duration.tools

Duration → Milliseconds Parser

“1h 30m” to ms, seconds, and minutes.

Milliseconds
5,400,000
1 h 30 min 0 s
Seconds
5,400
Minutes
90
Hours
1.5

Timeouts want milliseconds; humans write “90 seconds” or “1h 30m”. Type a duration in any common form and get it as milliseconds, seconds, and minutes, ready to paste into a config or a setTimeout call.

How to use it

  1. 1.Type a duration: 1h 30m, 90s, 1:45:00, 2.5h…
  2. 2.Read the value in ms, seconds, and minutes.
  3. 3.Copy the one your code expects.

Questions people ask

How many milliseconds in an hour?
3,600,000 ms — 60 minutes × 60 seconds × 1000. A day is 86,400,000 ms.
What does a bare number mean?
Bare numbers are read as seconds in this tool — type units (90m, 2h) or colon time when you mean something else.