DexTools

Unix Timestamp Converter

Convert a Unix timestamp to a date and back, in seconds or milliseconds, with the value in UTC and your local time.

Nothing leaves your browser Dex Dev

Timestamp

Ten digits or fewer is read as seconds, longer as milliseconds. An ISO date is read as written.

Converted

Paste a timestamp, or press one of the buttons to start from now.

Save to DriveInsert into Office

Saving needs a Dex account. The tool never does.

How it works

  • Paste a timestamp, an ISO date, or press a button to start from now. Every representation is shown at once: seconds, milliseconds, ISO 8601, UTC, your local time and a relative phrase.
  • Ten digits or fewer is read as seconds and anything longer as milliseconds. That rule covers every date from 1973 to 2286 without asking, and avoids the classic mistake of reading a millisecond value as seconds and landing in 1970.
  • Times are shown in UTC as well as local time, because a timestamp means nothing without knowing which zone the reader is in.
  • The conversion happens in the page using the browser clock and the Intl API. There is no request and no timezone table to download.

Examples

Reading an expiry from an API response

Paste the number and read the ISO line. If the relative line says "2 hours ago", the token expired before the request that failed.

Checking a date before storing it

Paste an ISO date from a form and copy the seconds value into the database. Comparing the UTC and local lines catches an off-by-one-hour mistake before it ships.

Frequently asked questions

What is a Unix timestamp?

The number of seconds since 1 January 1970 at 00:00 UTC, ignoring leap seconds. It is timezone-free, which is why APIs use it.

Seconds or milliseconds?

Both are common: JavaScript uses milliseconds, most APIs use seconds. This tool reads ten digits or fewer as seconds, so 1763683200 and 1763683200000 both resolve to the same moment.

Why does the local time differ from UTC?

UTC is absolute; local time applies your device timezone and any daylight saving offset in effect on that date.

Does it handle dates before 1970?

Yes. Negative timestamps are read as seconds before the epoch, and the arithmetic is identical.