HOW-TO

How to convert a Unix timestamp to a date

Convert epoch seconds (or milliseconds) to a readable UTC or local date. Step-by-step, plus a free two-way timestamp converter.

A Unix timestamp is just a number of seconds since 1970. Converting it to a human date is a matter of applying that offset and choosing a timezone — here is how, including the common seconds-vs-milliseconds gotcha.

Seconds or milliseconds?

A 10-digit timestamp is seconds; a 13-digit one is milliseconds (used by JavaScript and many APIs). If your converted date lands in 1970, you passed milliseconds as seconds — or vice versa. Divide or multiply by 1000 to fix it.

UTC vs local

The timestamp itself is always UTC. Displaying it in a local timezone just shifts the presentation. When comparing timestamps across systems, keep them in UTC and only localize at the very end for humans.

Step by step

1

Copy the timestamp (10 digits = seconds, 13 = milliseconds).

2

Paste it into the timestamp converter.

3

Read both the UTC and your local date/time.

4

To go the other way, enter a date and get its Unix timestamp back.

Try it now — free, no signup

Use the timestamp converter in your browser. Then, when you need it at scale with an API key and higher limits, grab the full Eveses API.

FAQ

Why did my timestamp convert to 1970?›
You likely mixed up seconds and milliseconds. A value near 1970 means the number was 1000× too small.
Is the timestamp in my timezone?›
No — it is UTC. The converter shows both UTC and your local time.

Related