1001Ferramentas
⏱️ Converters

Seconds to HH:MM:SS

Convert a number of seconds (integer or decimal) to HH:MM:SS.mmm format. Useful for video, audio and time tracking.

HH:MM:SS:
HH:MM:SS.mmm:
Horas decimais:

Three readings of the same pile of seconds

An API, a player or a stopwatch hands you 3725.5 seconds and you need it in another shape: 01:02:05 for a caption, 01:02:05.500 for a cut in the editor, or 1.034861 h for a timesheet. Type the total in the field and all three readings appear at once, updating on every keystroke, with no dividing by 3600 by hand and no rounding slip on the way.

The classic mix-up is treating decimal hours and HH:MM as the same notation. An hour and a half is 1.5 h, not 1.30 h, and someone who writes 1.30 on a timesheet has just claimed 1 h 18 min. Second thing: the hours field does not wrap at 24. A hundred thousand seconds reads 27:46:40, which is correct for a duration and would be wrong if you expected a clock time.

The field takes decimals and negatives, with the sign placed in front of the result. Seconds are truncated in the HH:MM:SS reading and the fraction moves into the milliseconds. One quirk worth knowing: when the fraction sits very close to a full second, the milliseconds field can show 1000 instead of rolling the second over, and in that case the decimal-hours reading is the one to trust. Nothing leaves your browser.

Frequently asked questions

Is 1.5 h one hour and fifty minutes?
No, it is one hour and thirty. The decimal part is a fraction of an hour, so multiply by 60 to get minutes: 0.5 is 30 min, 0.25 is 15 min.
Can it go the other way, from HH:MM:SS back to seconds?
Not on this page. The input is always a total in seconds, and the three outputs are derived from it.
Is it usable for video timecode?
The HH:MM:SS.mmm output is the same base ffmpeg accepts. For SRT subtitles, swap the dot before the milliseconds for a comma.

Related Tools