Unix Timestamp Converter

Turn a Unix timestamp into a readable date, or a date into a timestamp. Seconds, milliseconds and microseconds are detected automatically.

Current Unix time

Timestamp → date

Date → timestamp

How to use the converter

  1. The top of the page shows the Current Unix time. Press Copy to grab it.
  2. Under Timestamp → date, paste a timestamp. The tool says whether it read it as seconds, milliseconds, microseconds or nanoseconds, and shows the date in UTC, in your own time zone and in ISO 8601 format, plus how long ago or how far ahead it is.
  3. Under Date → timestamp, pick a date and time and the Time zone it belongs to, and you get the matching timestamp.

What is a Unix timestamp?

A Unix timestamp (also called epoch time or POSIX time) counts the seconds since 1 January 1970 at 00:00:00 UTC, not counting leap seconds. It's the standard way computers store moments in time, because it's a single number that's the same everywhere in the world, regardless of time zones.

Seconds, milliseconds or microseconds?

Getting the current timestamp in code

FAQ

What is the year 2038 problem?

Old systems store timestamps as signed 32-bit numbers, which run out on 19 January 2038 at 03:14:07 UTC (timestamp 2147483647). Modern systems use 64-bit numbers, which last for billions of years.

Does a timestamp depend on the time zone?

No. A timestamp is the same moment everywhere. Timestamp 0 is midnight UTC on 1 January 1970, which was still the evening of 31 December 1969 in New York. Only the way the date is displayed changes with the time zone.

Why is my converted time off by an hour or two?

Usually because a date was read in the wrong time zone, or daylight saving time was ignored somewhere. Check the time zone chosen under Date → timestamp.