Unix Timestamp Converter

Convert Unix epoch time to a readable date in UTC and your local time zone, or turn a date into a timestamp. Works with seconds and milliseconds.

Runs in your browser; nothing you type is sent anywhere. · Updated

How to use the timestamp converter

  • Timestamp to date: type or paste a Unix timestamp. Values of 100 billion or more are read as milliseconds (JavaScript and many APIs), smaller values as seconds.
  • Date to timestamp: pick a date and time in your local time zone; the timestamp updates.
  • Now fills in the current timestamp.

What is Unix time?

Unix time (epoch time) is the number of seconds since 00:00:00 UTC on January 1, 1970, not counting leap seconds. It's how most computers, databases and APIs store moments in time, because it's a single number with no time zone.

Timestamp (seconds) Date (UTC)
0 January 1, 1970 00:00:00
1,000,000,000 September 9, 2001 01:46:40
1,798,761,600 January 1, 2027 00:00:00
2,147,483,647 January 19, 2038 03:14:07

Seconds or milliseconds?

A 10-digit timestamp is usually seconds; a 13-digit one is milliseconds. JavaScript's Date.now() returns milliseconds; Unix tools, PHP's time() and Python's time.time() (before the decimal point) use seconds.

The year 2038 problem

Systems that store Unix time as a signed 32-bit integer can only count to 2,147,483,647, which is reached on January 19, 2038. After that the number overflows. Most modern systems use 64-bit time, which won't run out for billions of years.

Frequently asked questions

How do I convert a Unix timestamp to a date?

Paste it into the converter. Mathematically, divide by 86,400 to get days since January 1, 1970, but the converter also handles the time of day and your time zone.

Is Unix time in UTC?

Yes. A Unix timestamp refers to one moment worldwide; it's displayed in different time zones only when converted to a date.

Why does my timestamp show a date in 1970?

It's probably in seconds but being read as milliseconds, or vice versa. Check the number of digits.