Mr. Encoder

Unix Timestamp Converter

Convert Unix epoch timestamps to readable dates in any time zone, and dates back to timestamps.

How to use

  1. Read or copy the live current Unix time in seconds or milliseconds at the top.
  2. Paste a timestamp into the Timestamp → Date box; the unit is detected automatically and the date is shown in UTC, your local time and the selected time zone.
  3. To go the other way, pick a date, time and time zone in Date → Timestamp and copy the epoch value.

Frequently asked questions

What is a Unix timestamp?

A Unix timestamp (epoch time) is the number of seconds that have elapsed since 1 January 1970 00:00:00 UTC, not counting leap seconds. It is time-zone independent, which makes it a common way to store and exchange points in time.

How does the tool know whether my value is in seconds or milliseconds?

It looks at the magnitude: values below 10^11 are treated as seconds, below 10^14 as milliseconds, below 10^17 as microseconds and anything larger as nanoseconds. You can override the guess with the Unit selector.

Why does JavaScript use milliseconds?

Date.now() and new Date().getTime() return milliseconds since the epoch, while most Unix tools, databases and languages such as PHP and Python's time.time() use seconds. Multiply or divide by 1000 to convert between them.

What is the year 2038 problem?

Systems that store Unix time as a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC (timestamp 2147483647). Using 64-bit integers, as modern systems do, avoids the problem.

Other tools