๐Ÿ” Time โ‡„ Seconds Converter

Hours / Minutes / Seconds
Hours
Minutes
Seconds
โ‡…
Total Seconds
Seconds

Convert freely between "hours:minutes:seconds" format and total seconds, in either direction, in real time. Useful for calculating video edit durations or converting seconds in code.

How to use

  1. Enter a value in either the "Hours/Minutes/Seconds" field or the "Total Seconds" field.
  2. The other field updates with the converted value in real time.

How the calculation works

This tool converts between hours/minutes/seconds and a total number of seconds, in either direction. Total seconds = hours ร— 3600 + minutes ร— 60 + seconds Going the other way, the quotient of dividing by 3600 is the hours, the remainder divided by 60 gives the minutes, and what is left is the seconds. Decimals are allowed. For example, 1.5 hours is 5400 seconds. If the total has a fraction, the seconds field shows two decimal places.

Worked example

1 h 23 m 45 s โ†’ 1 ร— 3600 + 23 ร— 60 + 45 = 5025 seconds 10000 seconds โ†’ 2 h 46 m 40 s (10000 รท 3600 = 2 remainder 2800, 2800 รท 60 = 46 remainder 40) 1 day = 86400 seconds, 1 week = 604800 seconds

Things to be aware of

  • Minutes or seconds of 60 or more still work. 90 minutes is treated as 5400 seconds, and converting back from the total tidies it to 1 h 30 m 0 s.
  • Handy wherever a value must be given in seconds, such as video lengths or program settings. For milliseconds, multiply the total by 1000.
  • Durations over a day show as 24 or more in the hours field.

FAQ

How many seconds are in an hour?

1 hour = 3600 seconds. Enter "1:00:00" or "3600" and the other format is calculated automatically.

Can I enter negative or very large values?

This is designed for standard positive time conversions.

Is this useful for calculating video edit durations?

Yes โ€” converting a video's total seconds to h:m:s format makes it easier to cross-check against your editing software's timeline display.

Is this useful for converting seconds in code?

Yes โ€” when writing code that deals with milliseconds or seconds, like setTimeout, it's a quick way to check how many seconds a given minutes:seconds value represents.

Can it convert very large second counts (10,000+)?

Yes โ€” entering a large value in the total seconds field converts correctly to hours, minutes, and seconds.