Skip to main content

Seconds to Time Converter

Convert seconds to HH:MM:SS or days/hours/minutes/seconds, and back.

Written by Golam Rabbani, Founder & Lead Engineer

How to use this seconds to time converter

  1. Choose the conversion direction — seconds to H:M:S, or H:M:S to seconds.
  2. Enter the seconds value, or fill in the hours, minutes, and seconds fields.
  3. Press Convert to see the breakdown in days, hours, minutes, and seconds.
  4. Read the secondary lines for decimal minutes and decimal hours.
  5. Use Copy to grab the result, or Reset to start over.

About this seconds to time converter

The seconds-to-time converter takes a single integer in seconds and breaks it down into days, hours, minutes, and seconds, with an HH:MM:SS label plus the same total expressed as decimal minutes and decimal hours. It also runs in reverse — type a duration in H:M:S fields and it returns the matching total seconds.

Internally the conversion is integer division: seconds ÷ 86,400 for days, the remainder ÷ 3,600 for hours, the next remainder ÷ 60 for minutes, and what is left is seconds. The HH:MM:SS label is zero-padded for legibility (e.g. 01:05:09 not 1:5:9). We assume non-negative integer seconds; fractional values are rejected with an inline error because seconds-to-time is most useful at whole-second precision.

For example, 12,345 seconds becomes 0 days, 3 hours, 25 minutes, 45 seconds — labelled 03:25:45 — with 205.75 decimal minutes and 3.4292 decimal hours. A bigger value like 100,000 seconds becomes 1 day, 03:46:40 — useful when you need to talk about an ffmpeg duration, a server uptime, or an event countdown in something other than raw seconds.

FAQ

What format is the H:M:S output?
Zero-padded HH:MM:SS, with an optional day prefix when the total exceeds 24 hours. So 90,061 seconds becomes "1d 01:01:01".
Can I enter fractional seconds?
No. The tool works in whole seconds because that is what most external systems (logs, uptime counters, ffmpeg durations) use. If you need sub-second precision, multiply by 1000 and work in milliseconds.
Why are decimal minutes and decimal hours both shown?
Different tools want different units. Some video editors expect decimal minutes for cue points; some payroll systems want decimal hours. Showing both saves a second conversion step.
How does the reverse direction work?
Switch the mode to "H:M:S → seconds" and fill in three numeric fields. The tool multiplies hours by 3,600, minutes by 60, adds the seconds, and returns the total.
Is the converter free?
Yes. Everything runs in your browser with no signup, no rate limit, and no data sent to a server.