Code tool

Convert Time to Decimal

Enter a duration in HH:MM:SS format and get decimal hours, minutes, and seconds in your browser.

In-browser processingNo account requiredPrivacy details ↗

Use any non-negative whole number of hours. Minutes and seconds must be 00–59.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter a duration as HH:MM:SS, such as 01:30:00.
  2. Choose how many decimal places to keep.
  3. Review and copy the decimal values.

Strict HH:MM:SS input

Hours may be any non-negative whole number. Minutes and seconds must each be from 00 through 59, so the format is unambiguous at boundaries such as 00:59:59 and 01:00:00.

Choose predictable rounding

The result rounds each decimal value to the selected number of places. The underlying conversion remains exact in seconds before formatting.

Private browser calculation

The conversion runs locally in your browser. No time values are uploaded or stored by this page.

GOOD TO KNOW

Common questions

Can hours be greater than 23?

Yes. This is a duration converter, so values such as 27:15:00 are valid.

Can I enter 90 seconds?

No. Use 00:01:30 because the minutes and seconds fields must stay within 00–59.

What does decimal hours mean?

It expresses the full duration as hours with a fractional part. For example, 01:30:00 is 1.5 decimal hours.

Does rounding change the source duration?

No. Rounding changes only the displayed decimal values; conversion starts from the exact whole-second total.