Code tool

Convert Time to Seconds

Enter a duration in hours, minutes, and seconds to calculate its total number of seconds.

In-browser processingNo account requiredPrivacy details ↗

Use whole hours and two-digit minutes and seconds, from 00:00:00 onward.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a duration using HH:MM:SS.
  2. Select Convert to seconds.
  3. Review or copy the total seconds.

HH:MM:SS format

Use a non-negative hour value followed by two-digit minutes and seconds, such as 00:05:30 or 12:00:00. Minutes and seconds must be between 00 and 59.

Exact duration conversion

The result is calculated as hours × 3,600 + minutes × 60 + seconds. Hours may be larger than 23 because this tool converts durations rather than clock times.

Private browser processing

Validation and conversion happen in your browser. The entered duration is not sent to a server.

GOOD TO KNOW

Common questions

Can hours be more than 23?

Yes. This tool accepts any non-negative whole-hour value, so it also works for multi-day durations.

Can I enter minutes or seconds above 59?

No. Use the next larger unit instead, such as 01:02:00 rather than 00:62:00.

Does this convert a time of day?

It converts a duration. It does not apply a time zone or interpret a clock time.