Unix Timestamp Converter: epoch time to date and date to epoch time

Current Unix time

Seconds–
Milliseconds–

Timestamp to date

Unit

UTC–
Local–
ISO 8601–
RFC 2822–
Relative–

Date to timestamp

Time zone

Seconds–
Milliseconds–
ISO 8601–
Zone used–

About Unix Timestamp Converter

This tool converts between Unix timestamps and human-readable dates. It shows the current Unix time as it ticks, in seconds and milliseconds, and each value can be copied.

Paste a timestamp to see it as a UTC date, as a date in your own time zone, as ISO 8601, as RFC 2822 and as relative time such as 3 hours ago. Seconds, milliseconds, microseconds and nanoseconds are detected automatically.

To go the other way, enter a date and a time, pick local time, UTC or any IANA time zone, and read off the timestamp in seconds and milliseconds.

Everything is calculated in your browser, so nothing is uploaded.

How to use it

  1. Copy the live Unix time at the top, pausing it first if you need a fixed value.
  2. Paste a timestamp into the middle section. Leave Unit on Auto, or choose one if the guess is wrong.
  3. Copy the UTC, local, ISO 8601, RFC 2822 or relative result you need.
  4. In the last section, enter a date and time, choose a time zone and copy the timestamp.

Frequently asked questions

What is a Unix timestamp?

It is the number of seconds since 1 January 1970 at 00:00:00 UTC, known as the Unix epoch. Because it ignores time zones and daylight saving, it names one exact moment the same way everywhere, which is why logs, databases and APIs use it.

How does the tool tell seconds from milliseconds?

It counts the digits. Up to 11 digits is read as seconds, 12 to 14 as milliseconds, 15 to 17 as microseconds and 18 to 20 as nanoseconds. A current timestamp is 10 digits in seconds and 13 in milliseconds. If a very old date is guessed wrong, pick the unit yourself with the Unit control.

Can it handle negative timestamps and dates far in the future?

Yes. A negative value is a moment before 1970, so -86400 is 31 December 1969. Dates run up to about the year 275760 in either direction, which is the limit of a browser Date. Anything beyond that is reported as out of range instead of showing a wrong date.

How do I convert a date in a specific time zone?

Type the date and time, then choose Local time, UTC or any IANA zone such as America/New_York or Asia/Tokyo. The result is the timestamp for that wall-clock time in that zone, including its daylight saving rules. If the time falls in the hour skipped or repeated when clocks change, the tool says so.

What is the difference between seconds and milliseconds timestamps?

Unix and most databases count seconds, while JavaScript, Java and many web APIs count milliseconds, which is 1000 times bigger. Mixing them up is a common bug that puts dates in 1970 or in the year 50000, so the converter shows the detected unit every time.

Is anything uploaded?

No. The conversion runs in your browser with the built-in Date and Intl features, and nothing you type is sent or stored.