Skip to main content
ToolsBay

Unix Timestamp Converter

Convert between Unix epoch timestamps and human-readable dates.

Runs entirely in your browser — nothing is uploaded

Frequently asked questions

How does it know whether my number is seconds or milliseconds?

By magnitude. Anything at or above 100,000,000,000 is treated as milliseconds, because a seconds value that large would be the year 5138. The detected unit is always shown so you can check.

Does it handle dates before 1970?

Yes. Those are negative timestamps — -86400 is 31 December 1969. Tools that guess the unit from the string length usually get these wrong because the minus sign adds a character.

Which timezone are the results in?

Both are shown. The ISO and UTC lines are absolute; the local line uses your device timezone. A Unix timestamp itself has no timezone — it is a count of seconds since a fixed instant.

What date formats can I paste?

Anything your browser understands, which reliably includes ISO 8601 (2024-03-15T14:30:00Z) and common forms like "2024-03-15 14:30". ISO with an explicit offset is the unambiguous choice.

The Unix epoch

A Unix timestamp counts the seconds elapsed since midnight UTC on 1 January 1970. It is a single number with no timezone, no daylight-saving rules and no locale — which is exactly why it is the format systems use to exchange a moment in time.

The confusion is almost always about units. Unix tooling, database EXTRACT(EPOCH …) and JWT exp claims use seconds. JavaScript's Date.now(), Java and most logging systems use milliseconds. Mixing them produces a date in 1970 or one fifty thousand years from now — both obvious once seen, both easy to ship.

The 2038 problem

Systems that store a timestamp in a signed 32-bit integer overflow on 19 January 2038, wrapping to 1901. Anything storing time in 64 bits — which is now the norm — is unaffected for a span far longer than the age of the universe.

Timestamps show up constantly in JWT claims, where exp and iat are seconds since the epoch. For scheduling rather than converting, see the cron expression generator.

All developer tools