Decimal Time Converter

Switch between 1.5 and 01:30.

Use this tool

Result

The result appears in this panel after you run the tool.

About this tool

To clock writes hours and minutes. To decimal reads a clock string.

Seconds are included when the clock string has them.

How to use it

  1. Open this page and provide the input it asks for.
  2. Set the options that are visible, then use Convert time.
  3. Read the result in the panel. Copy it or download it when a file is offered. The input stays in this browser.

Limitations

Nearest second one way, four decimals the other

Hours toward a clock

The direction labeled as hours to a clock multiplies the finite number by 3600 and rounds to the nearest whole second, then prints H:MM:SS. 1.5 becomes 1:30:00. A negative number keeps a leading minus. A value that is not finite is rejected. The rounding step is the edge to watch. One second is about 0.0002778 hours. A decimal that is not an exact multiple of that quantum moves to the nearest second, so two decimals that look different at the fourth place can become the same clock, and a decimal you expected to be exact can land one second away because of binary fractions. The printed clock has no fractional second. The extra fraction was rounded, not preserved.

There is no date attached, so 26.0 hours becomes 26:00:00 rather than 1 day and 2 hours. Daylight-saving does not apply. 1.0 hour is always 3600 seconds here, never 0 or 7200 on a transition night. If your source decimal already baked in a 23-hour local day, this page will not know. It treats the number as a pure multiple of an hour.

A clock toward hours

The other direction reads H:MM or H:MM:SS with the same pattern as the time calculator: one to four hour digits, minutes from 00 to 59, optional seconds from 00 to 59. Those seconds are divided by 3600. The quotient is printed with four digits after the decimal point, then trailing zeros are stripped, and a trailing dot is stripped. 1:30:00 becomes 1.5. 1:00:00 becomes 1. 1:20:00 becomes 1.3333. 0:00:01 becomes 0.0003, because one second over 3600 is 0.0002777…, which rounds to four places as 0.0003. You cannot recover that single second by multiplying 0.0003 by 3600 and expecting 1. The fourth decimal is the resolution of this direction.

Use the clock direction when a timesheet stores 7.5 and you need 7:30:00. Use the decimal direction when a clock must be written as hours for a multiplier. Do not send the four-decimal text back through the clock direction and expect every original second to return, except when the seconds were a multiple that four places can hold exactly.

Privacy

Your input is processed in your browser and is not uploaded to UtilChain. File names, text, and results are not sent to analytics.