Duration Formatter

Convert a number of seconds, milliseconds or minutes into a readable duration and clock format.

Seconds
Duration
Runs locally in your browser

About the Duration Formatter

A raw count of seconds, like a video length, a timeout, or an elapsed time from a log, is hard to read. This tool converts it into a human duration such as "1h 1m 1s" and into HH:MM:SS clock format. Choose whether the input is seconds, milliseconds or minutes. Convert several at once, one per line.

Two details of the output are deliberate. The clock column counts total hours rather than rolling over at midnight, so 90000 seconds shows as 25:00:00 beside the friendlier "1d 1h 0s" form, which is what you want when reading a job runtime. And the largest unit is the day, never the month, because a bare duration has no start date and therefore no way to know whether the month it covered was 28 or 31 days long. That makes "30 days" here a different answer from adding a calendar month to a date.

It is useful for turning API durations, video and audio lengths, cache lifetimes and benchmark timings into something readable, and for the reverse sanity check when a config file wants a timeout in seconds and you are thinking in hours. For a duration measured between two calendar dates, the Date Difference Calculator handles the month and year arithmetic properly; for converting a single value between time units, the Time Converter.

How to use

  1. Paste numbers, one per line.
  2. Choose the input unit.
  3. Read the readable duration and clock format.

Common questions

What does it output?
A compact human form like "1d 2h 30m" and the HH:MM:SS clock format.
Can the input be milliseconds?
Yes, choose milliseconds or minutes as the input unit.
Does it handle durations over a day?
Yes, it shows days when the duration exceeds 24 hours.