A duration for an API
A time of 00:02:30 becomes 150 seconds for a field that wants a number.
Converts hh:mm:ss to seconds in this tab, with nothing sent anywhere.
Find related browser-local tools for nearby tasks without starting another search.
Browse all general convertersSystems and calculations frequently want a duration as a single number of seconds, but you have it as hours, minutes and seconds. Converting HH:MM:SS to seconds collapses a clock-style duration into that count. So 01:01:01 becomes 3661 seconds and 90:00 - ninety minutes - becomes 5400, the figure a script, a rate calculation or an API field expects. Rate and pace sums need a single number, so collapsing a clock time to seconds is the step before dividing a distance by a duration or comparing two lengths. Video-editing timecodes and lap times entered as clock values convert to seconds for any spreadsheet formula that has to add or average them. Treat HH:MM:SS as elapsed duration, not a local time with a date or timezone. For example, 02:15:30 is 2 times 3600 plus 15 times 60 plus 30, giving 8130 seconds. Keeping the hours term prevents a long duration from wrapping at one hour.
A time of 00:02:30 becomes 150 seconds for a field that wants a number.
Need the opposite? The seconds-to-HH:MM:SS converter is linked below and uses the exact inverse factor.
For a duration of 02:15:30, calculate 2 x 3600 + 15 x 60 + 30 = 8130 seconds. This does not identify a date or a time zone. A clock interval that crosses midnight needs the start and end dates before it can be treated as a duration. When importing media timestamps, check whether the final field is seconds or a frame count; HH:MM:SS is not a timecode frame format.
HH:MM:SS or MM:SS. So 01:30:00 and 90:00 both work, giving 5400 seconds.
No. HH:MM:SS to Seconds does the arithmetic in this browser tab; the value is calculated on your device and is not sent to a server.
Convert seconds to hh:mm:ss instantly in your browser. Exact factor, both directions, nothing uploaded.