Unix Timestamp Converter

Paste a Unix value and read it as local time, UTC, ISO 8601 with offset, RFC 2822 and a relative description. Or pick a clock time plus a time zone and get the seconds and milliseconds back.

Runs in your browser Developer tools

Unix timestamp to date

Up to 11 digits are read as seconds, 12 to 13 digits as milliseconds.

Representations of this instant
Representation Value

Date to Unix timestamp

Representations of this instant
Representation Value

How to use

  1. Type or paste a Unix value into the Unix timestamp field and press Convert. Values up to 11 digits are read as seconds and 12 to 13 digits as milliseconds, and the badge above the table says which one was used.
  2. Press Now to stamp the current instant, then read the results table: local time with your zone name, UTC, ISO 8601 with offset, RFC 2822, a relative description and four preset zones.
  3. Press Copy on any row to put just that representation on the clipboard, and watch the ticking distance-from-now line under the table.
  4. For the other direction, set the date and time field, choose the time zone from the dropdown (it starts on your own zone) and press Get timestamp to read Unix seconds and milliseconds.

Frequently asked questions

Which time zone applies to a Unix timestamp?

None. A Unix timestamp is a single instant counted from 1970-01-01T00:00:00Z, so it is identical everywhere; only its rendering changes. This tool renders it through the Intl API with an explicit timeZone for each row, so daylight-saving rules come from the browser database instead of a hand-written offset that would be wrong twice a year.

What happens during a daylight-saving change?

When you convert a clock time back to a timestamp, the selected zone decides the answer. A spring-forward gap such as 02:30 on the switch day never existed in that zone, so the tool warns you and shows the closest real instant instead of silently inventing one.

Is it 1700000000 seconds or milliseconds?

Ten digits, so seconds. Anything up to 11 digits is treated as seconds and 12 or 13 digits as milliseconds, and the assumed unit is displayed next to the value so you can catch a wrong guess. Longer input, such as a 19-digit nanosecond value, is rejected with the accepted range explained.

Guides

Related tools