Free · No sign-up

Unix Timestamp Converter

Epoch in, readable date out — and back again, in seconds or milliseconds.

Unix timestamp converter

Convert epoch seconds or milliseconds to a date, and a date back to epoch.

Local — UTC — ISO 8601 — Weekday —
Epoch seconds — Epoch milliseconds —

A Unix timestamp is the number of seconds since 1 January 1970, 00:00:00 UTC — the epoch. It is how computers store time: one integer, no time zone, no daylight saving, no ambiguity.

Seconds or milliseconds?

Unix time is traditionally seconds. JavaScript and many APIs use milliseconds, which is why a timestamp that looks three digits too long is usually a millisecond value. This converter lets you switch between the two, and shows both when converting from a date.

Reading a timestamp

Enter 1700000000 and you get 14 November 2023, 22:13:20 UTC — plus the same moment in your local time zone and as an ISO 8601 string. The weekday is shown too, which is a quick sanity check when a timestamp looks wrong.

Time zones are presentation, not storage

A timestamp does not contain a time zone. The same integer displays differently in Seoul, London and Los Angeles, and all three are correct. This is why storing local times as strings causes bugs: two servers in different zones can disagree about what "2026-03-01 09:00" means, while the epoch value is unambiguous.

The 2038 problem

Systems that store Unix time in a signed 32-bit integer overflow on 19 January 2038. Most modern platforms use 64-bit values and are fine, but embedded devices, old databases and some file formats still carry the limitation.

Common uses

Leap seconds

Unix time ignores leap seconds: the count is a simple number of seconds, and the occasional leap second is absorbed rather than represented. For everyday engineering this does not matter, but it is why Unix time and astronomical time drift apart by a second or so over decades.

Storing timestamps correctly

Store UTC epoch values, display them in the user's zone. Storing local time strings is the classic bug: two servers in different regions disagree about what "2026-03-01 09:00" means, and daylight saving makes it worse twice a year.

Watch the precision. JavaScript's Date.now() returns milliseconds, PHP's time() returns seconds, and some APIs return microseconds. A value that is three digits too long is almost always milliseconds; one that is three digits too short may be seconds from a 32-bit source.

Frequently asked questions

Is the timestamp in seconds or milliseconds?

Both are supported. Ten-digit values are usually seconds; thirteen-digit values are milliseconds.

Why does my timestamp show a different date locally?

Because epoch values are UTC. Your local time zone offset is applied when displaying them.

What is the 2038 problem?

32-bit signed integers overflow on 19 January 2038. Modern 64-bit systems are unaffected.

Does it handle time zones?

It shows UTC and your local zone. For other zones, convert to ISO and apply the offset.

What about dates before 1970?

Negative timestamps represent times before the epoch and are supported.