Unix Timestamp Converter

Convert a Unix timestamp to a readable date in UTC and your own time zone, or turn a date and time into a timestamp. It tells seconds from milliseconds automatically and shows the current time. All in your browser.

Current Unix time

Seconds
—
Milliseconds
—

Your time zone: —

Timestamp to date

Enter a timestamp.

UTC: —

ISO 8601: —

Your time: —

Date to timestamp

Seconds: —

Milliseconds: —

How to convert a Unix timestamp

  1. To get a date, enter a timestamp such as 1700000000 and press Convert to date.
  2. To get a timestamp, pick a date and time, tick the UTC box if it is in UTC, and press Convert to timestamp.
  3. The top box shows the current Unix time in seconds and milliseconds.

What a Unix timestamp is

A Unix timestamp, or epoch time, counts the seconds since 00:00:00 UTC on 1 January 1970. For example, 0 is 1970-01-01T00:00:00Z and 1700000000 is 14 November 2023 at 22:13:20 UTC. It is the same number everywhere in the world at the same moment.

Seconds or milliseconds?

Most systems use 10-digit timestamps in seconds, while JavaScript, Java and many APIs use 13-digit timestamps in milliseconds. This tool reads values of 100,000,000,000 or more as milliseconds and smaller values as seconds, and tells you which it chose.

Time zones

A timestamp has no time zone. The same number gives a UTC time and a different local time depending on where you are. The page shows both, and names the time zone your device is using. When converting a date to a timestamp, tick the UTC box if the date you entered is in UTC. Otherwise it is read in your local time zone.

The year 2038 problem

Systems that store the timestamp in a signed 32-bit integer run out at 2147483647, which is 03:14:07 UTC on 19 January 2038. Modern systems use 64-bit values, but old software and embedded devices can still be affected.

Frequently asked questions

How do I convert a Unix timestamp to a date?

Enter the number and press Convert to date. You get the UTC date, an ISO 8601 string and your local time.

How do I get the current Unix timestamp?

It is shown at the top of this page and updates every second.

Is a 13-digit timestamp in milliseconds?

Almost always. 10 digits is seconds and 13 digits is milliseconds for dates around today.

Why is the date several hours different from what I expected?

Timestamps are UTC-based. The local time shown depends on your time zone, so compare with the UTC line.

What is epoch time?

Another name for a Unix timestamp: the time since the epoch, 1 January 1970 UTC.

More free tools