CalculatorsConvertersDeveloperTextAll toolsDirectory
Submit your tool Sign in
Theme
Home/Answers/Developer
How-to

How do I convert a Unix timestamp to a date?

Short answer

Paste the timestamp into a browser-based converter and it shows the human-readable date and time instantly, in UTC and your local timezone. A Unix timestamp counts seconds since January 1, 1970 UTC, and the conversion runs entirely on your device.

Seconds or milliseconds, count the digits

The most common trip-up is units: classic Unix time is in seconds, currently a 10-digit number, while JavaScript and many APIs use milliseconds, currently 13 digits. Feed a millisecond value into a seconds converter and you land tens of thousands of years in the future. A good converter detects the length and handles both, and can also convert a date back into a timestamp.

Timezones are where readings go wrong

A timestamp is an absolute moment with no timezone attached; the timezone only appears when you format it. That is why the same value can print as different wall-clock times on different machines. When you are correlating logs or debugging an expiry, compare in UTC first, then translate to local time.

Step by step

  1. Paste the timestamp. Paste the Unix timestamp into the converter.
  2. Check the unit. Confirm whether it is seconds (10 digits) or milliseconds (13 digits).
  3. Read the date. Read the result in UTC and your local timezone, all computed locally.

Frequently asked questions

What is Unix time?

The number of seconds elapsed since January 1, 1970 at 00:00 UTC, the Unix epoch. It is the standard machine representation of a moment in time.

Why is my converted date wrong by hours?

Almost always a timezone display difference. The timestamp itself has no timezone; check the UTC reading first.

Why is my date in the year 57000?

You converted a millisecond timestamp as seconds. A 13-digit value is milliseconds; divide by 1000 or let the tool detect it.

Related answers