ToolNimba Browse

⏱️ Seconds to HH:MM:SS Converter

By ToolNimba Editorial Team · Updated 2026-06-19

Enter a number of seconds to convert into HH:MM:SS.

Or type a time (H:M:S, M:S, or S) to get total seconds.

HH:MM:SS
-
Total seconds
-
Decimal hours
-

Enter a number of seconds or a HH:MM:SS time to begin.

This converter turns a plain number of seconds into a clean HH:MM:SS time, and turns a HH:MM:SS time back into total seconds. Type a value into either box and the other updates instantly. It also shows the equivalent decimal hours, and breaks out whole days when the number is large, so 90061 seconds reads as 1 day, 1 hour, 1 minute and 1 second. Everything runs in your browser, with no rounding tricks and no upload.

What is the Seconds to HH:MM:SS Converter?

Time in HH:MM:SS form is just a tidy way of writing a count of seconds. One minute is 60 seconds, one hour is 60 minutes (so 3,600 seconds), and one day is 24 hours (so 86,400 seconds). To turn a raw second count into HH:MM:SS you divide by these fixed factors: take the whole number of hours first (seconds divided by 3,600), then the leftover seconds give the minutes (the remainder divided by 60), and whatever is left after that is the seconds. The reverse direction multiplies each part back out and adds them up.

A key design choice is whether the hours field is allowed to climb past 24. A wall clock wraps around at midnight, so 25 hours becomes 1 o'clock. A duration does not wrap: a video that is 90,000 seconds long is 25 hours, not 1 hour. This tool treats the value as a duration, so the hours field can be any size (00, 09, 25, 100 and so on). When the figure is large it also offers a separate day-and-time breakdown, splitting off whole days for readability while keeping the uncapped HH:MM:SS so nothing is lost.

Decimal hours are the same quantity expressed as a single number of hours rather than three fields. You get it by dividing the total seconds by 3,600. So 5,400 seconds is 1.5 hours and also 01:30:00. Decimal hours are what you typically need for timesheets, billing and spreadsheets, where multiplying 1.5 hours by an hourly rate is far easier than working with a colon-separated string. Showing both side by side means you can copy whichever format the next tool expects.

When to use it

  • Converting a video, audio or media duration given in seconds into a readable HH:MM:SS runtime.
  • Turning a stopwatch or log file value in seconds into hours, minutes and seconds for a report.
  • Getting decimal hours from a HH:MM:SS time to enter into a timesheet, invoice or spreadsheet.
  • Adding up several durations by converting each to total seconds first, then back to HH:MM:SS.
  • Checking how many days, hours and minutes a very large second count (like a server uptime) represents.

How to use the Seconds to HH:MM:SS Converter

  1. To convert seconds, type the number of seconds into the Seconds box.
  2. Read the HH:MM:SS time, the decimal hours, and the plain-language breakdown that appear below.
  3. To go the other way, type a time into the HH:MM:SS box as H:M:S, M:S, or a single number.
  4. See the matching total seconds and decimal hours update at once.
  5. Use Clear to reset both boxes, or the swap button to feed the current result back as new input.

Formula & method

hours = floor(seconds ÷ 3600). minutes = floor((seconds mod 3600) ÷ 60). secs = seconds mod 60. Reverse: total = hours x 3600 + minutes x 60 + secs. Decimal hours = seconds ÷ 3600. (1 minute = 60 s, 1 hour = 3600 s, 1 day = 86400 s.)

Worked examples

Convert 3,661 seconds into HH:MM:SS.

  1. Hours = floor(3661 ÷ 3600) = 1, using up 3600 seconds.
  2. Remainder = 3661 minus 3600 = 61 seconds.
  3. Minutes = floor(61 ÷ 60) = 1, using up 60 seconds.
  4. Seconds = 61 minus 60 = 1.
  5. Decimal hours = 3661 ÷ 3600 = 1.016944 hours.

Result: 3,661 seconds = 01:01:01 = 1.016944 hours

Convert 90,061 seconds (a large value) into days and HH:MM:SS.

  1. Days = floor(90061 ÷ 86400) = 1, using up 86400 seconds.
  2. Remainder = 90061 minus 86400 = 3661 seconds.
  3. 3661 seconds = 01:01:01 (from the previous example).
  4. Uncapped hours = floor(90061 ÷ 3600) = 25, so HH:MM:SS = 25:01:01.
  5. Decimal hours = 90061 ÷ 3600 = 25.016944 hours.

Result: 90,061 seconds = 25:01:01 = 1 day 01:01:01 = 25.016944 hours

Convert the time 02:30:00 back into total seconds.

  1. Hours part = 2 x 3600 = 7200 seconds.
  2. Minutes part = 30 x 60 = 1800 seconds.
  3. Seconds part = 0.
  4. Total = 7200 + 1800 + 0 = 9000 seconds.

Result: 02:30:00 = 9,000 seconds = 2.5 hours

Common second values and their HH:MM:SS and decimal-hour equivalents

SecondsHH:MM:SSDecimal hours
100:00:010.000278
6000:01:000.016667
9000:01:300.025
60000:10:000.166667
3,60001:00:001
5,40001:30:001.5
86,40024:00:0024
90,06125:01:0125.016944

Conversion factors between time units

UnitIn seconds
1 second1
1 minute60
1 hour3,600
1 day86,400
1 week604,800

Common mistakes to avoid

  • Capping the hours at 24 for a duration. A clock wraps at midnight, but a length of time does not. 90,000 seconds is 25 hours, not 1 hour. This tool leaves the hours field uncapped, and breaks out whole days separately when you want them.
  • Mixing up decimal hours with minutes. 1.5 hours means one and a half hours, which is 1 hour 30 minutes, not 1 hour 50 minutes. To turn minutes into a decimal, divide by 60: 30 minutes is 30 ÷ 60 = 0.5 hours.
  • Dividing by 100 instead of 60. Time is base 60, not base 100. There are 60 minutes in an hour and 60 seconds in a minute, so always divide and carry using 60 and 3600, never 100.
  • Losing the leading zero. Writing 1:1:1 instead of 01:01:01 can be misread. HH:MM:SS pads each part to two digits, which keeps times aligned and unambiguous, especially in logs and filenames.

Glossary

HH:MM:SS
A time format with two-digit hours, minutes and seconds separated by colons, used for both clock times and durations.
Duration
A length of time rather than a point on the clock. Durations can exceed 24 hours, so their hours field is not capped.
Decimal hours
A time expressed as a single number of hours, found by dividing the total seconds by 3,600. 90 minutes is 1.5 decimal hours.
Modulo (remainder)
The amount left over after a division. 3661 mod 3600 = 61, the seconds left after taking out one whole hour.
Floor
Rounding a number down to the nearest whole number. floor(1.99) = 1, used to take whole hours or minutes.

Frequently asked questions

How do I convert seconds to HH:MM:SS?

Divide the seconds by 3,600 and take the whole part for the hours. Take the remainder, divide by 60 for the minutes, and what is left is the seconds. For example 3,661 seconds is 01:01:01. This tool does all of that the moment you type a value.

How many seconds are in an hour?

There are 3,600 seconds in an hour, since an hour is 60 minutes and each minute is 60 seconds (60 x 60 = 3,600). A full day of 24 hours is 86,400 seconds.

Does the converter handle values over 24 hours?

Yes. It treats the input as a duration, not a wall-clock time, so the hours field can climb past 24. A value like 90,000 seconds shows as 25:00:00, and very large values also get a separate day-and-time breakdown.

What are decimal hours and how do I get them?

Decimal hours express a time as a single number of hours instead of three fields. You get them by dividing the total seconds by 3,600. So 5,400 seconds is 1.5 hours, the same as 01:30:00. They are handy for timesheets and billing.

Can I convert HH:MM:SS back into seconds?

Yes, the tool works both ways. Type a time into the HH:MM:SS box and it shows the total seconds. You can enter a full H:M:S time, just M:S, or a plain number of seconds, and it parses each correctly.

Does it support fractional seconds?

Yes. If you enter a value with a decimal point, such as 90.5 seconds, the fractional part is carried through to the seconds field and to the decimal-hours figure, so nothing is rounded away unless you choose to round it yourself.