Epoch & Unix timestamp converter

See the current Unix time, convert a timestamp to a date and a date to a timestamp. The unit (seconds, milliseconds, microseconds or nanoseconds) is detected from the number of digits. Everything happens in your browser.

Current epoch

Unix time in seconds
 

Timestamp to date

Date to timestamp

Nothing is stored or sent to any server.

A Unix timestamp, also called epoch time, counts the seconds elapsed since 1 January 1970 at 00:00 UTC. This tool shows the current epoch with a live clock and converts in both directions. Paste a timestamp and it detects whether it is in seconds, milliseconds, microseconds or nanoseconds from the number of digits, then shows the date as ISO 8601, in a readable format and as a relative time, in UTC and in your browser time zone. Pick a date and time to get the matching timestamp in seconds and milliseconds. Everything is computed in your browser, so nothing you type is sent or stored anywhere.

How to use it

  1. Read the current epoch in the live clock, and use Pause or Copy if you need the value.
  2. Paste a timestamp in the Timestamp to date panel, or click Now to fill it with the current epoch.
  3. Check the detected unit and read the ISO 8601, readable and relative dates, in UTC and in your time zone.
  4. To go the other way, choose a date and time, pick UTC or your browser time zone, and copy the seconds or milliseconds.

Frequently asked questions

What is a Unix timestamp?
It is the number of seconds since 1 January 1970 at 00:00 UTC, known as the Unix epoch. It is a compact, time zone independent way to store a moment in time.
How does the tool know if my timestamp is in seconds or milliseconds?
It counts the digits: up to 11 are seconds, 12 to 14 milliseconds, 15 to 17 microseconds and 18 or more nanoseconds. The detected unit is always shown next to the result so you can spot a mistake.
Can I convert dates before 1970?
Yes. Negative timestamps are allowed, so -86400 gives 31 December 1969 at 00:00 UTC.
Is my data sent to a server?
No. All conversions run in your browser with built-in date functions, and nothing is saved or added to the URL.

Related tools