Convert Time to Seconds
Convert time in HH:MM:SS format to total seconds. 100% client-side.
Drop any HH:MM:SS timestamp into the field above and get the total seconds instantly — plus decimal minutes and hours for timesheets, API parameters, or spreadsheet formulas. And everything runs in your browser. Nothing gets uploaded.
How It Works
Type a time value — could be 01:30:45, just 5:30, or even a bare number like 90. The parser figures out whether you mean hours:minutes:seconds or minutes:seconds based on the values. Then it multiplies hours × 3,600 and minutes × 60, adds them to the seconds, and shows you the total along with decimal minutes and hours.
Examples
Timesheet Entry for Billing
A freelancer tracked 2 hours and 15 minutes on a client project and needs the decimal value for an invoice.
02:15:00
8,100 seconds
135.00 minutes
2.2500 hours
Video Duration for an API Call
The video is 45 minutes and 30 seconds long. The upload API needs the duration in seconds.
45:30
2,730 seconds
45.50 minutes
0.7583 hours
Marathon Finish Time to Seconds
A runner finished at 3:42:18 and wants to compare race times in a spreadsheet that sorts by total seconds. Decimal hours are also useful for calculating pace per mile.
3:42:18
13,338 seconds
222.30 minutes
3.7050 hours
Who Uses This
Converting timestamps to seconds for API parameters, animation durations, or timeout values in code.
Getting frame-accurate durations in seconds for FFmpeg commands or subtitle sync offsets.
Turning logged hours and minutes into decimal values for billing reports and timesheets.
Converting race splits and lap times into seconds for pace calculations and performance tracking.
Common Mistakes
Typing "5:30" could mean 5 minutes 30 seconds or 5 hours 30 minutes. The tool treats two-part inputs as minutes:seconds when both values are under 60. If you mean 5 hours and 30 minutes, type "5:30:00" with the trailing zeros.
You don't need to type 01:05:09. Just 1:5:9 works fine — the parser handles both. People waste time padding single digits when it's not necessary here.
Only colons work as time separators. Entering "1.30.00" or "1,30,00" won't parse correctly. Stick with the colon format: 1:30:00.
Technical Details
- Processing: 100% client-side — JavaScript only, no server requests
- Browser Support: Chrome, Firefox, Safari, Edge
- Input Formats: HH:MM:SS, HH:MM, MM:SS, or raw seconds
- Max Value: No upper limit — handles values well beyond 24 hours
- Offline Use: Works without internet after the page loads
Frequently Asked Questions
How do I convert hours minutes seconds to seconds?
Multiply the hours by 3,600, the minutes by 60, and add both to the remaining seconds. So 2:15:30 becomes (2 × 3600) + (15 × 60) + 30 = 8,130 seconds. Or just paste the time here and skip the math entirely.
What is 1 hour in seconds?
One hour equals 3,600 seconds. That's 60 minutes times 60 seconds per minute. It is one of those numbers that shows up constantly in programming and data work.
How many seconds in a day?
A day has 86,400 seconds (24 × 60 × 60). If you enter 24:00:00 into the converter, that's exactly what you'll get. Leap seconds technically exist but aren't used in standard time math.
Can I convert decimal hours back to HH:MM:SS?
This tool goes one direction — time to seconds. For the reverse, you'd take the decimal part, multiply by 60 for minutes, then take that decimal part and multiply by 60 again for seconds. We have a separate seconds-to-time converter if you want to skip the arithmetic.
Is my time data stored or sent to a server?
No. The conversion happens entirely in your browser with JavaScript. Nothing gets uploaded, logged, or saved. Once you close the tab, the data is gone for good.