Unix Timestamp Converter

Current Unix timestamp

How to use

  1. To read a timestamp, paste it into the box. Leave the unit on Auto, or force seconds or milliseconds if the guess is wrong.
  2. To get a timestamp from a date, switch to Date to timestamp, pick the date and time, and choose whether it is UTC or your local time.
  3. Press Use current time to fill both modes with the live value shown at the top.

How it works

A Unix timestamp counts the seconds that have passed since 1 January 1970 at 00:00:00 UTC, ignoring leap seconds. JavaScript, Java and many APIs count in milliseconds instead, which is the same number times 1000.

Auto detects the unit from the size of the number: up to 11 digits is read as seconds, 12 to 14 digits as milliseconds, then microseconds and nanoseconds. A timestamp for today is 10 digits in seconds and 13 digits in milliseconds.

The local result uses the time zone set on your device, shown as an offset from GMT. ISO 8601 is always written in UTC, ending in Z, with milliseconds.

FAQ

How do I tell if a timestamp is in seconds or milliseconds?

Count the digits. Current dates have 10 digits in seconds (for example 1700000000) and 13 digits in milliseconds (1700000000000). The Auto setting uses this rule.

What happens in 2038?

Systems that store the timestamp in a signed 32-bit integer overflow on 19 January 2038 at 03:14:07 UTC. This tool uses 64-bit floating point numbers, so dates far beyond that work fine.

Why does my local time look different from the UTC time?

UTC is the same everywhere, while local time adds your time zone offset and any daylight saving shift. The two times show the same instant.

Does a Unix timestamp include a time zone?

No. It is always counted from the UTC epoch, so a timestamp means the same instant everywhere. Time zones matter only when you display it as a date.