Skip to main content
Date & Time

Decimal Hours ↔ HH:MM:SS Converter

A bidirectional Decimal hours ↔ HH:MM:SS converter. Enter hours, minutes and seconds to see decimal hours, total minutes and total seconds instantly; or enter a decimal value (e.g. 7.75) and the tool splits it back to 7:45:00. Built for payroll, timesheets, invoices, lab notebooks — or anywhere you need to turn "7h 30m" into "7.5" without fumbling on a phone calculator.

HH:MM:SS

Decimal hours

HH:MM:SS

07:30:00

Decimal hours

7.5 h

Total minutes

450 min

Total seconds

27,000 s

Values round to the nearest whole second. Edit either side (HH:MM:SS or decimal) and the other updates instantly.

Formula

decimal hours = h + m / 60 + s / 3600 total seconds = h × 3600 + m × 60 + s

Frequently asked

Why does payroll convert HH:MM into decimal hours?

Because hourly rate × decimal hours yields wages directly (rate × 7.5 = half-day pay), whereas "rate × 7:30" is meaningless in a spreadsheet — only after conversion can SUM, PRODUCT and other arithmetic work. Virtually every payroll system and Excel timesheet stores time as decimal hours under the hood and formats it back to HH:MM for display.

Is 20 minutes 0.20 or 0.33 hours?

0.333… hours. 20 minutes = 20 ÷ 60 = 0.333… h, while 0.20 h is actually 12 minutes (0.20 × 60 = 12). This is the single most common mistake people make with decimal hours, because we read "20 minutes" on a clock face and instinctively think "0.20." But hours divide by 60, not 100. The converter sidesteps the error: change either side and it computes the correct match.

Can I enter values longer than 24 hours, like a 38:45 weekly total?

Yes. The tool has no upper bound on hours — the hours field accepts any integer (including negatives), so 38 hours 45 minutes converts to 38.75 hours, 2,325 minutes, 139,500 seconds. Handy for weekly totals, monthly project hours, or any cumulative timesheet. Note: minutes and seconds still cap at 0–59; carry into the hours column manually if you have ≥ 60 of either.

How do I turn decimal hours back into Excel’s [h]:mm format?

Excel stores one day as 1.0, so divide by 24: cell = decimal_hours / 24, then format the cell as [h]:mm or [h]:mm:ss (the square brackets allow values ≥ 24 hours to display without wrapping back to 0). 7.5 / 24 ≈ 0.3125 displays as 7:30. Google Sheets follows the same convention.

Related tools

Age Calculator

From your date of birth, get exact age, Chinese nominal age (虛歲), days lived and days to next birthday.

Date Difference Calculator

Enter any two dates to get the calendar gap, working days, weekend days, plus year/month/day breakdown and total weeks/months.

Time Zone Converter

Pick your local and target cities to convert a given clock time across time zones.

Date Add / Subtract Calculator

Add or subtract years, months, weeks and days from a start date to get the resulting date and weekday.

Business Days Calculator

Count the working days between two dates (excluding weekends) — or add N business days to a start date to find the deadline.

Pregnancy Due Date Calculator

Estimate the due date from your last menstrual period (LMP) using Naegele's rule, plus current gestational week, trimester and key pregnancy milestones.

Time Card Calculator (clock-in / clock-out / break)

Enter clock-in/clock-out times and break minutes to get total hours worked and gross pay — overnight (graveyard) shifts handled automatically.

Day of Year & Week Number Calculator

Pick any date to see which day of the year (1–366), ISO 8601 week number, weekday, and how many days from the start and end of the year.

Day of the Week Calculator (Any Date)

Enter any Gregorian date (past or future) to instantly find the day of the week — useful for birthdays, anniversaries and historical events.

Unix Timestamp ↔ Date Converter

Convert a Unix timestamp (seconds or milliseconds since 1970-01-01 UTC) to UTC, Hong Kong time and RFC 1123 HTTP date — and back. Built for debugging log files, API responses and database fields.

Easter Date Calculator

Pick a year and the Computus algorithm returns Easter Sunday plus Ash Wednesday, Palm Sunday and Good Friday.

Moon Phase Calculator

Enter any date to compute the lunar phase (new, first quarter, full, last quarter …), moon age in days and illuminated fraction.

Chinese Zodiac & Lunar Age Calculator

Find your Chinese zodiac animal, stem-branch element, zodiac year and lunar (nominal) age from any birth date.

Western Zodiac Sign Calculator

Enter your birth date to see your Western zodiac sign (Aries, Taurus, Gemini…) along with its element, modality and opposing sign.

Birthstone Calculator

Pick a birth month to instantly see the modern and traditional birthstones, the birth flower, the spanning zodiac signs and a colour swatch — handy when choosing jewellery or birthday gifts.

Julian Day Number Calculator

Convert a Gregorian calendar date to its Julian Day Number (JDN) and Modified Julian Day (MJD) — used in astronomy, history, and cross-calendar date math.

ISO 8601 Week Number Calculator

Enter any date and compute its ISO 8601 week number, ISO year and weekday — using the Monday-first / first-week-contains-Jan-4 rule.

Time Between Two Times Calculator

Enter two clock times (HH:MM[:SS]) and instantly see the difference in hours, minutes and seconds — with overnight-shift handling and decimal-hour output.

Hong Kong Statutory Annual Leave Calculator

Enter years of service and see the statutory paid annual leave entitlement under the HK Employment Ordinance §41AA.

Half-Birthday Calculator

Enter your date of birth to see when your next half-birthday falls, how many days away it is, and your current half-age (e.g. 33.5 years).

Daylight Hours (Sunrise / Sunset) Calculator

Enter a latitude, longitude and date to get the local sunrise, sunset, solar noon and total daylight hours using the NOAA solar position formula.

Countdown to Date Calculator

Enter a target date and get an instant breakdown of days, weeks, months, hours and minutes remaining — or elapsed for past dates.

Jet Lag Recovery Time Calculator

Enter the number of time zones crossed and direction of travel (eastward or westward) to estimate how many days you typically need to fully adjust to the destination, based on sleep-medicine rules of thumb.