To convert a timestamp right now, paste it into the Unix timestamp converter. It reads seconds, milliseconds and microseconds, and shows the date in UTC and in your own time zone. The sections below explain what the number means and how to convert it yourself.

What is a Unix timestamp (epoch time)?

A Unix timestamp, also called epoch time or POSIX time, is a single number that identifies a moment. It counts the seconds that have passed since the epoch: 00:00:00 UTC on Thursday 1 January 1970. That moment is timestamp 0.

Because it is just a number, it has no time zone and no format. It means the same instant everywhere in the world, and it is easy to store, compare and sort. This is why databases, logs, APIs and file systems use it.

Some examples:

Timestamp Date and time (UTC)
0 1 January 1970, 00:00:00
1000000000 9 September 2001, 01:46:40
1700000000 14 November 2023, 22:13:20
1793577600 2 November 2026, 00:00:00
1800000000 15 January 2027, 08:00:00
2147483647 19 January 2038, 03:14:07

Each day adds exactly 86,400 seconds. 2 November 2026 is day 20,759 after the epoch, and 20,759 × 86,400 = 1,793,577,600.

Seconds, milliseconds or microseconds: how many digits?

The number of digits tells you the unit. Today’s timestamps in seconds have 10 digits.

Digits Unit Example Where you see it
10 seconds 1793577600 Unix, databases, most APIs
13 milliseconds 1793577600000 JavaScript, Java
16 microseconds 1793577600000000 Some databases and tracing tools

If a conversion gives a date in 1970, you probably gave seconds to something that expected milliseconds, or the other way round. A date tens of thousands of years in the future means the reverse.

How to convert a Unix timestamp to a date

By hand, divide by 86,400 to get days since 1 January 1970, then count the days forward. This is slow, so use a tool or a formula:

Where Timestamp to date Date to timestamp
Excel or Google Sheets =A1/86400+DATE(1970,1,1) (format as date and time) =(A1-DATE(1970,1,1))*86400
JavaScript new Date(ts * 1000).toISOString() Math.floor(Date.now() / 1000)
Python datetime.fromtimestamp(ts, tz=timezone.utc) int(time.time())
Linux or macOS terminal date -u -d @1700000000 (GNU) or date -u -r 1700000000 (macOS) date +%s

Spreadsheet results are in UTC. To show another time zone, add or subtract the hours.

Time zones and leap seconds

A timestamp is always UTC. The time zone only appears when you turn it into text. The same 1700000000 is 22:13 in London, 17:13 in New York and 07:13 the next day in Tokyo.

Unix time treats every day as exactly 86,400 seconds. It does not count leap seconds, so it can be off from atomic time by a few seconds, which does not matter for almost anything you do.

The year 2038 problem

Older systems store the timestamp as a signed 32 bit whole number. The largest value it can hold is 2,147,483,647, which is 03:14:07 UTC on 19 January 2038. One second later the number wraps around to a negative one and the date jumps back to 1901. Modern systems use 64 bit numbers, which last for billions of years, but old embedded devices and old file formats may still be affected.

Negative timestamps

Dates before 1970 are negative. Timestamp -86400 is 31 December 1969. Not every tool accepts negative values, so test one before you rely on it.

To work with dates rather than seconds, for example the days between two events, use the days between dates calculator.