Unix Timestamp

Convert Unix timestamps to readable dates and back, with a live epoch clock ticking in seconds and milliseconds.

Current Unix time

Seconds
-
Milliseconds
-

Timestamp to date


Date to timestamp

Seconds
-
Milliseconds
-

Why everything runs on epoch time

Under the hood, almost every computer clock counts a single number: seconds since midnight UTC on 1 January 1970. Storing time as one integer sidesteps the mess of time zones, daylight saving and calendar formats. Two servers on opposite sides of the world agree on the exact same timestamp for a given instant, and only translate it into a human date when they need to show it to a person.

Seconds versus milliseconds

The classic Unix convention is seconds, which today gives a 10-digit number. JavaScript's Date.now() and many web APIs use milliseconds, a 13-digit number. Get the two confused and your date lands in 1970 or the year 50,000. This converter looks at the magnitude of what you paste and tells you which it assumed, so you never have to divide by 1000 in your head.

Useful reference points

  • 0 - 1 January 1970, 00:00:00 UTC (the epoch)
  • 1000000000 - 9 September 2001 (the billionth second)
  • 1500000000 - 14 July 2017
  • 2147483647 - 19 January 2038, the 32-bit signed limit

Working with dates in other ways? The date calculator counts the days between two dates, the time zone converter compares cities, and the age calculator turns a birth date into an exact age.

Frequently asked questions

What is a Unix timestamp?
A Unix timestamp is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. It is a single number that represents an exact moment in time, independent of time zone, which is why databases and APIs use it.
Is the timestamp in seconds or milliseconds?
Both are common. Unix timestamps are traditionally in seconds (10 digits for current dates), while JavaScript and many APIs use milliseconds (13 digits). This converter auto-detects which you have entered from the number of digits and tells you which it assumed.
How do I convert a timestamp to a readable date?
Paste the number into the timestamp box. This tool shows the moment in your local time zone, in UTC, and as a human-friendly relative time like "3 days ago". No maths required.
What is the year 2038 problem?
Systems that store Unix time in a signed 32-bit integer run out of room at 03:14:07 UTC on 19 January 2038, when the count exceeds 2,147,483,647 seconds. Modern systems use 64-bit integers, which push the limit hundreds of billions of years into the future.
Does the timestamp include a time zone?
No. A Unix timestamp always refers to UTC - it is the same number everywhere on Earth at a given instant. Time zones only come into play when you format that instant into a human-readable date, which this tool does for both your local zone and UTC.