How to Convert a Unix Timestamp to a Date

By Daniel · Updated July 2026

A Unix timestamp is the number of seconds since 1 January 1970 UTC. Computers love it because it is one unambiguous number; humans hate reading it. Converting between the number and a normal date is a daily task in log files, databases and APIs.

Seconds or milliseconds?

This trips up nearly everyone. Unix time is classically in seconds (10 digits today, like 1752192000), but JavaScript and many APIs use milliseconds (13 digits). If your converted date lands in 1970 or thousands of years in the future, you have the units wrong by a factor of 1000.

How to convert

  1. Open the timestamp converter.
  2. Paste the number to get a date, or pick a date to get the number.
  3. Note whether the value is in seconds or milliseconds before you use it elsewhere.

The timezone gotcha

A Unix timestamp itself has no timezone — it is always UTC. The confusion comes when it is displayed: your computer may show it in local time, so the same number reads as 3pm for you and 11pm for a colleague. When comparing times across people, state UTC explicitly.

A 10-digit number is seconds; a 13-digit number is milliseconds. That quick digit count settles most conversion mistakes before they happen.

Unix Timestamp Converter
Convert between Unix time and human dates, in your browser.
Open the tool →

Common questions

Why is my date showing 1970?

You likely fed milliseconds into a tool expecting seconds, or a value of 0. Check the digit count — 10 is seconds, 13 is milliseconds.

Does a Unix timestamp have a timezone?

No, it is always UTC. Any timezone you see is added when the number is displayed as a date.

What is the year 2038 problem?

Older 32-bit systems store Unix time in a value that overflows in 2038. Modern 64-bit systems are unaffected.

Is the conversion done privately?

Yes, entirely in your browser.

Keep reading

How to Convert Time Zones · How to Decode a JWT · How to Calculate Days Between Dates