Duration Converter

Convert durations between seconds, minutes, hours, days and hh:mm:ss, including decimal hours, and add up timesheets. A free time duration converter.

About Duration Converter

This time duration converter changes a length of time between every common unit at once, from milliseconds to weeks, plus hh:mm:ss and decimal hours. Type 90 minutes, 7:45 or 1.5 days into any field and all the others update, which makes it a quick hours to minutes converter as well as a timesheet helper.

The arithmetic is exact, with no floating-point rounding, and it all happens in your browser with nothing uploaded. Your last value is remembered on this device, so a half-finished timesheet is still there when you come back.

How to use

  1. Type a value into any unit field, the hh:mm:ss field, or the quick input (for example "1h 30m" or "2.5 days").
  2. Read the same duration in every other unit, plus the readable, hh:mm:ss, decimal hours and ISO 8601 formats.
  3. Choose a rounding step such as 6 minutes (0.1 h) or 15 minutes if your timesheet needs it.
  4. To total several durations, enter one per line in Add up durations, or join them with + and −, then use the total or copy it.

Features

Every unit at once
Nanoseconds, microseconds, milliseconds, seconds, minutes, hours, days and weeks update together, with months and years shown as clearly marked averages.
Flexible quick input
Write durations the way you say them: 90m, 2d4h, 1.5 days, "1 hour and 30 minutes" or ISO 8601 such as PT1H30M.
Decimal hours and hh:mm:ss
Convert between 7.75 hours and 7:45:00 in either direction; hours can run past 24 for multi-day totals.
Timesheet rounding
Round the result to the nearest 1, 5, 6 or 15 minutes, matching common billing increments.
Add and subtract durations
Total a column of times, subtract breaks with a minus sign, and load the total back into the converter with Use total.
Exact arithmetic
Values are calculated in whole nanoseconds, so converting back and forth never introduces rounding errors.

Frequently asked questions

How do I convert decimal hours to hours and minutes?

Type the decimal value, such as 7.75, into the hours field and read the hh:mm:ss field: 7.75 hours is 7:45:00. Multiply the decimal part by 60 to do it by hand (0.75 × 60 = 45 minutes).

How long is a month or a year here?

Months and years vary in length, so they use averages: a month is 30.436875 days and a year 365.2425 days, the average Gregorian year. Those two fields are marked as approximate.

Can I add up hours for a timesheet?

Yes. In Add up durations, enter one time per line, for example 7:45, 8h 15m and − 30m for a break. The total appears instantly and can be copied as hh:mm:ss or sent to the converter.

What is an ISO 8601 duration?

It's a standard text format for lengths of time used by APIs and calendars, such as PT1H30M for 1 hour 30 minutes or P2DT4H for 2 days 4 hours. The converter reads it in the quick input and writes it in the formats list.

Is anything I type stored or sent?

Nothing is sent: the calculations run in your browser. The last value and your settings are kept in this browser's local storage so they survive a reload, and Reset clears them.