Time Unit Converter
Convert between milliseconds, seconds, minutes, hours, days, weeks, months and years.
Reviewed by Aygul Dovletova · Last reviewed
Using the Time Unit Converter
- Pick the source unit - millisecond, second, minute, hour, day, week, month (30-day approximation) or year (365-day approximation) - from the "From" dropdown.
- Type the amount. The result recomputes on every keystroke through a Preact
onInputhandler. - Pick the target unit from the "To" dropdown.
- Swap with the arrow button for the inverse.
- Copy the answer to the clipboard through the browser Clipboard API.
What Is Actually Being Computed
Every unit is stored internally as a ratio to the second, the SI base unit of time (SI Brochure, BIPM 9th ed.). Since 1967 the second has been defined as exactly 9,192,631,770 periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of caesium-133 - a definition pinned at CGPM 1967, reaffirmed in 2019 and in active use in every atomic clock on Earth and orbit. Minute = 60 s, hour = 3600 s, day = 86,400 s - all exact. Week = 7 days exact. Month and year in this tool use the flat approximations 30 days and 365 days respectively; the real Gregorian calendar month has a variable length between 28 and 31 days, and the mean tropical year is 365.24219 days. For calendar-aware arithmetic (birthdays, contract terms, lease expirations), this tool is the wrong instrument - use a date-difference calculator. For duration reasoning (how many seconds in a 5-hour video, how many milliseconds in a two-minute interval), the approximations are irrelevant.
When to Reach For It
- Turning a "video encoded in milliseconds" framerate into seconds for an editorial note.
- Converting server uptime in seconds (
os.uptime()) into days and hours for an operations summary. - Turning an HTTP
max-ageCache-Control value in seconds into a human-readable week or month. - Estimating an engineer-weeks number from hours of effort logged in a time-tracker.
- Reading a scientific instrument that times events in microseconds or nanoseconds and translating into the microsecond-to-millisecond scale.
- Converting between units in a physics homework when the textbook uses days but the formula expects seconds.
Pitfalls
Calendar reality breaks every long-range time conversion. A Gregorian year averages 365.2425 days because of the leap-year rule (365 * 400 + 100 - 4 + 1 = 146,097 days per 400-year cycle). A "year" in radiation dosimetry is exactly 365.25 days (the Julian year, about 31,557,600 s). A tropical year is 365.24219 days. A sidereal year is 365.25636 days. This converter picks 365 days for simplicity; if you need astronomical precision, use 365.25 days (Julian year) or ask a dedicated ephemeris. A month at 30 days is a common contract convention (30/360 in finance) but differs from any real Gregorian month. Finally, leap seconds: the SI second is steady, but UTC occasionally gets a leap second to track Earth rotation; the IERS Bulletin C announces these. The converter ignores leap seconds - it is arithmetic, not civil time.
Short History of the Second
For centuries the second was defined as 1/86,400 of a mean solar day - the rotation of the Earth. Improving pendulum clocks in the 17th century, then Shortt clocks in the 1920s, revealed that Earth rotation was irregular. In 1956 CGPM redefined the second as a fraction of the tropical year 1900 (ephemeris time). In 1967 the 13th CGPM adopted the caesium-133 definition, turning the second into the first SI unit tied to an atomic constant rather than an astronomical phenomenon. NIST-F2, the US primary frequency standard, uses a fountain of laser-cooled caesium atoms and reaches an uncertainty of about 1 part in 10^16. Future optical-lattice clocks based on strontium or ytterbium may push the definition to 10^-18; CGPM is expected to revisit the definition in the mid-2030s.
Alternatives
For human-readable durations, libraries like moment.js (legacy), date-fns or the Temporal API (now shipping in Firefox and Chromium) handle calendar-aware arithmetic. For scientific timing, Python\'s time.time_ns() returns nanosecond wall-clock time, and UNIX time/perf utilities measure program runtimes down to microseconds. GPS time, TAI (International Atomic Time) and UTC differ by integer seconds (37 s between TAI and UTC as of early 2024); a dedicated clock-comparison tool is better than this converter when you need to translate between timescales. This page is the right choice for unit-only scalar arithmetic.
Frequently Asked Questions
Why does this tool use 30 days per month and 365 days per year?
Because the tool converts durations, not calendar dates. A real Gregorian month is 28, 29, 30 or 31 days depending on which one; a Gregorian year averages 365.2425 days. Picking a single flat value for each gives predictable arithmetic. If you need true calendar math - for example "what date is 6 months after 2024-02-29?" - use a date-difference tool that understands leap years and month lengths.
How exact is the second?
Exact by definition. The 13th CGPM in 1967 fixed the second as 9,192,631,770 periods of the caesium-133 hyperfine transition, and the 2019 SI redefinition reaffirmed it. All modern atomic clocks - GPS, DCF77, WWVB, network time servers - track that definition. National labs maintain primary frequency standards reaching uncertainties around 1 part in 10^16, which is roughly one second in 300 million years.
Does the tool account for leap years or leap seconds?
No. A year is flat 365 days, and leap seconds do not enter because this is unit arithmetic, not civil time. If you are computing time stamps, use a calendar-aware library; if you are computing durations where the difference between 365 and 365.25 matters, scale the result by the appropriate factor yourself or use the scientific Julian year of 365.25 days.
Is my input sent anywhere?
No. The conversion happens inside a Preact component in your browser. No fetch call, no websocket, no analytics event containing the numbers. PostHog registers the page view but not the input value. Dropping the network after page load confirms the claim - the page keeps functioning.
How many seconds are in a sidereal day versus a solar day?
A mean solar day is exactly 86,400 SI seconds by unit definition. A sidereal day - Earth's rotation relative to the distant stars - is about 86,164.0905 SI seconds, roughly 3 minutes 56 seconds shorter. The difference accumulates over a year to exactly one day: the Earth makes 366.25 sidereal rotations per 365.25 solar days. Astronomers care; this converter does not distinguish.
How big is a Planck time?
About 5.39 x 10^-44 seconds - the time it takes light to traverse one Planck length. It is the shortest physically meaningful duration under current theory, below which quantum gravity becomes dominant. IEEE 754 double precision can represent numbers as small as about 5 x 10^-324, so the tool handles Planck time arithmetically without underflow, though going back to a week or year pushes the output into uncomfortable exponent ranges.
How long is a year in seconds?
A flat 365-day year (this tool) is 31,536,000 seconds. A 365.25-day Julian year is 31,557,600 seconds - about 20 minutes longer. The mean Gregorian year (365.2425 days) is 31,556,952 seconds. The tropical year (equinox to equinox) is 31,556,926 seconds. Differences matter when you are scheduling a satellite, dating a geological sample or calibrating a leap-year rule.
Can I convert milliseconds into human units?
Yes, but readability degrades fast. 5,000,000 ms equals 83.33 minutes equals 1.389 hours. The tool shows the decimal; it does not pretty-print as "1 h 23 m 20 s". For that, a dedicated duration-formatter is the right tool. <code>Intl.DurationFormat</code>, newly shipping in Chromium, does exactly that at runtime in the browser.
What about femtoseconds and attoseconds?
They are standard SI prefixes: 1 fs = 10^-15 s, 1 as = 10^-18 s. Ultra-short laser pulse physics routinely uses them. The tool does not expose prefixes smaller than milliseconds in the dropdown, but you can enter scientific notation into the millisecond input (<code>1e-12</code> ms = 1 fs, for example) and the arithmetic is still valid. Numbers this small survive IEEE 754 double precision cleanly.
Where do I find authoritative conversion factors?
SI Brochure (BIPM 9th edition) defines the second. NIST Special Publication 811 tabulates the relationships for minute, hour, day, week and year. ISO 8601 defines calendar date and time formats. IERS Bulletin A/B/C publishes leap seconds and UT1-UTC offsets. For astronomical time systems (TAI, TT, TDB) the Astronomical Almanac is the primary reference. This converter aligns with NIST SP 811 unit definitions.
More Converters
Angle Converter
Convert between degrees, radians, gradians, turns, arcminutes and arcseconds.
Open toolCooking Measurement Converter
Convert between cups, tablespoons, teaspoons, milliliters, fluid ounces and liters.
Open toolData Storage Converter
Convert between bits, bytes, KB, MB, GB, TB and PB with binary (1024) and decimal (1000) modes.
Open toolElectricity Cost Calculator
Calculate daily, monthly and yearly electricity cost from watts, hours per day and electricity rate.
Open toolEnergy Converter
Convert between joules, calories, kilocalories, BTU, kilowatt-hours and electronvolts.
Open toolFuel Economy Converter
Convert between MPG (US), MPG (UK), L/100km and km/L with inverse relationship handling.
Open tool