Skip to content
Webmaster Tools
Dev utilitiesEpoch / Timestamp

Unix Timestamp Converter

Convert Unix time both ways.

Current time

Timestamp to date
Date to timestamp

About the Unix Timestamp Converter

A Unix timestamp counts the time since the Unix epoch, 1970-01-01 00:00:00 UTC, ignoring leap seconds. This converter turns a timestamp into a date in your local time zone, UTC and ISO 8601, with a relative time and the day of the year. It also goes the other way: pick a date in local time or UTC, or type any date string, and get seconds and milliseconds.

The unit is detected from the size of the number: below 10^11 is read as seconds, below 10^14 as milliseconds, below 10^17 as microseconds, and anything larger as nanoseconds. You can override the guess, and negative values (before 1970) work too. A live clock at the top shows the current time; click a value to copy it.

How to use it

  1. Paste a timestamp, or press Now.
  2. Check the "Read as" badge and change the unit if the guess is wrong.
  3. To go the other way, set a date and zone under "Date to timestamp", or type a date string such as 2024-03-01T12:00:00Z.

Examples

Common questions

Why is my date off by a factor of 1000?

You are mixing seconds and milliseconds. JavaScript's Date.now() returns milliseconds, while most Unix tools and JWT claims use seconds.

Does a Unix timestamp have a time zone?

No. It always refers to UTC. Time zones only matter when you display it, which is why the result shows both local time and UTC.

What is the year 2038 problem?

Signed 32-bit integers overflow at 2147483647, which is 2038-01-19 03:14:07 UTC. 64-bit timestamps are not affected.