Time Converter

Convert between milliseconds, seconds, minutes, hours, days, weeks, months and years.

All conversions

How to use the Time Converter

  1. Enter a duration and choose its unit.
  2. Choose the target unit or read the full table.
  3. Use the swap button to convert the other way.

About this tool

Use this time converter to convert durations between any time units, from nanoseconds and milliseconds to minutes, hours, days, weeks, months, years, decades and centuries. Handy for programming timeouts, project planning and science.

Months and years use average Gregorian calendar lengths (a year is 365.2425 days and a month one twelfth of that), which is the standard for converting long durations. For calendar-accurate date math, use the Date Calculator.

Frequently asked questions

86,400 seconds (24 × 60 × 60).

An average Gregorian month of 30.436875 days (365.2425 ÷ 12). Real calendar months range from 28 to 31 days.

60,000 milliseconds.

Divide seconds by 60 to get minutes, and divide hours by 24 to get days. For example, 7,200 seconds is 120 minutes, or 2 hours. The time converter shows every combination of time units at once – type a value in any unit and read the rest.

Yes. Many programming languages and configuration files express timeouts in milliseconds: 30 seconds is 30,000 ms and 5 minutes is 300,000 ms. Enter the duration in whatever unit you think in and copy the millisecond value straight into your code.