Unix timestamp converter
This Unix timestamp converter turns epoch time into a readable date and a date back into a timestamp. It shows the current Unix time live, spots seconds or milliseconds for you, and gives the result in UTC, your local time and ISO 8601.
- Live current timestamp in seconds and milliseconds
- Timestamp to date: UTC, local, ISO 8601 and how long ago
- Date and time to timestamp, read as local time or UTC
Last updated
How to use the unix timestamp converter
- The top box shows the current Unix time and counts up every second.
- To read a timestamp, paste it in. 10 digits are read as seconds and 13 digits as milliseconds, or pick the unit yourself.
- To make a timestamp, choose “Date to timestamp”, pick the date and time, and say whether it is UTC or your local time.
- Read the answer in UTC, your local time and ISO 8601, with how long ago or how far ahead it is. “Use the current time” fills in now.
How Unix time is counted
A Unix timestamp is the number of seconds since the epoch, which POSIX defines as 00:00:00 UTC on January 1, 1970. Every day counts as exactly 86,400 seconds, so turning a timestamp into a date is plain division:
days since 1970 = floor(timestamp ÷ 86,400)
seconds into the day = timestamp − days × 86,400
Count the days forward from January 1, 1970 to get the date, then split the leftover seconds into hours (÷ 3,600), minutes (÷ 60) and seconds. Going the other way, timestamp = days since 1970 × 86,400 + hours × 3,600 + minutes × 60 + seconds. JavaScript and many APIs use milliseconds instead, which is the same number times 1,000, so a 13-digit value is milliseconds and a 10-digit value is seconds.
A Unix timestamp has no time zone. The same number is the same instant everywhere; only the clock reading changes. Before 1970 the count is negative.
Worked example
Convert the timestamp 1800000000 (the default) to a date.
- Days since 1970: 1,800,000,000 ÷ 86,400 = 20,833 whole days, with 1,800,000,000 − 20,833 × 86,400 = 28,800 seconds left over.
- Date: January 1, 2027 is 1,798,761,600 ÷ 86,400 = 20,819 days after the epoch. 20,833 − 20,819 = 14 days later is January 15, 2027.
- Time: 28,800 ÷ 3,600 = 8 hours, with nothing left, so 8:00:00 AM UTC.
The calculator shows Friday, January 15, 2027 at 8:00:00 AM UTC, ISO 8601 2027-01-15T08:00:00Z, and 1800000000000 in milliseconds. In New York (UTC−5 in January) that is 3:00:00 AM.
The other way round, the default “Date to timestamp” input of January 1, 2027 at 00:00:00 UTC gives 20,819 × 86,400 = 1798761600.
What are some notable Unix timestamps?
Unix time passed 1,000,000,000 seconds on September 9, 2001 at 01:46:40 UTC and will reach 2,000,000,000 on May 18, 2033 at 03:33:20 UTC. The year 2026 began at 1767225600 and 2027 begins at 1798761600. The table lists these and the 2038 limit, all worked out from the same math the converter uses.
| Moment | Unix timestamp | Date and time (UTC) | ISO 8601 |
|---|---|---|---|
| The Unix epoch | 0 | Thu, Jan 1, 1970, 12:00:00 AM | 1970-01-01T00:00:00Z |
| One second before the epoch | -1 | Wed, Dec 31, 1969, 11:59:59 PM | 1969-12-31T23:59:59Z |
| One billion seconds | 1000000000 | Sun, Sep 9, 2001, 1:46:40 AM | 2001-09-09T01:46:40Z |
| 1.5 billion seconds | 1500000000 | Fri, Jul 14, 2017, 2:40:00 AM | 2017-07-14T02:40:00Z |
| Start of 2026 | 1767225600 | Thu, Jan 1, 2026, 12:00:00 AM | 2026-01-01T00:00:00Z |
| Start of 2027 | 1798761600 | Fri, Jan 1, 2027, 12:00:00 AM | 2027-01-01T00:00:00Z |
| 1.8 billion seconds | 1800000000 | Fri, Jan 15, 2027, 8:00:00 AM | 2027-01-15T08:00:00Z |
| Two billion seconds | 2000000000 | Wed, May 18, 2033, 3:33:20 AM | 2033-05-18T03:33:20Z |
| Year 2038 limit (largest signed 32-bit number) | 2147483647 | Tue, Jan 19, 2038, 3:14:07 AM | 2038-01-19T03:14:07Z |
What happens to Unix time in 2038?
Systems that store Unix time in a signed 32-bit number run out at 2147483647, which is Tuesday, January 19, 2038 at 03:14:07 UTC. One second later the number wraps to −2147483648 and reads as Friday, December 13, 1901 at 20:45:52 UTC. Software that uses 64-bit time, including JavaScript’s millisecond dates, is not affected.
A 32-bit signed number holds values up to 231 − 1 = 2,147,483,647. JavaScript dates can reach ±8,640,000,000,000,000 milliseconds from the epoch (100 million days either way, out to the year 275760), which is the range this converter accepts.
Does Unix time count leap seconds?
No. POSIX says every day is counted as exactly 86,400 seconds, so a leap second added to UTC is not a separate second in Unix time. That is why 1767225600 lands exactly on midnight, January 1, 2026: it is 20,454 days × 86,400 seconds. JavaScript’s Date.now() also ignores leap seconds, per MDN.
The upside is that dates are easy: every timestamp that is a multiple of 86,400 is midnight UTC. The cost is that the gap between two timestamps can be one second short of the true elapsed time for each leap second that fell between them.
Common questions
What is the current Unix timestamp?
The box at the top of the converter shows it live and counts up each second. As a check, midnight UTC on November 11, 2026 was 1794355200, and Unix time grows by 86,400 every day.
How do I tell if a timestamp is in seconds or milliseconds?
Count the digits. A current timestamp in seconds has 10 digits, such as 1800000000, and in milliseconds it has 13, such as 1800000000000. Divide milliseconds by 1,000 to get seconds. The converter detects this for you.
How do I convert a Unix timestamp to a date?
Divide by 86,400 to get days since January 1, 1970, then turn the leftover seconds into hours, minutes and seconds. 1800000000 is 20,833 days and 28,800 seconds, which is January 15, 2027 at 8:00:00 AM UTC.
What is the Unix epoch?
The epoch is 00:00:00 UTC on Thursday, January 1, 1970, the moment Unix time counts from. Its timestamp is 0, and one second before it is −1.
Is a Unix timestamp in UTC or local time?
Neither: it counts seconds from a fixed instant, so it is the same everywhere. 1800000000 is 8:00 AM in UTC and 3:00 AM in New York at the same moment. The converter shows both UTC and your device’s local time.
How do I get the Unix timestamp in JavaScript?
Date.now() returns milliseconds since the epoch, such as 1800000000000. For seconds, use Math.floor(Date.now() / 1000), which gives 1800000000 for the same moment.
Related calculators
- Time calculatorAdd or subtract hours, minutes and seconds, find the duration between two times, or add time to a clock time
- Date calculatorCount the days between two dates, days until a date, or add days to a date
- Week number calculatorWhat week is it? ISO and US week numbers for any date or week
- Days until calculatorCount the days, weekdays and weeks from today to any date
- Military time converterConvert 24-hour military time to 12-hour AM/PM time and back
- Hours to minutes calculatorConvert hours to minutes and seconds, or minutes back to hours
Sources
- The Open Group Base Specifications (POSIX), Definitions, 3.125 Epoch. The epoch as 00:00:00 on January 1, 1970 UTC, last checked 11 November 2026
- The Open Group Base Specifications (POSIX), General Concepts, 4.19 Seconds Since the Epoch. The seconds-since-the-epoch formula and the rule that every day is accounted for by exactly 86,400 seconds, last checked 11 November 2026
- MDN Web Docs, Date. Milliseconds since the epoch, leap seconds ignored by Date.now(), and the range of ±8,640,000,000,000,000 milliseconds, last checked 11 November 2026
See the methodology page for how Clockfigure builds and checks its calculators.