Epoch Converter

UNIX timestamp ⇄ date, both directions, in seconds and milliseconds.

Loading tool…

About this tool

Paste a UNIX timestamp to get the local time, UTC, the ISO 8601 string, both the second and millisecond forms, and how long ago or from now it is. Or pick a date and time and read the timestamp back. The current epoch runs live at the top of the page in both units, ready to copy.

The seconds-versus-milliseconds ambiguity is handled openly rather than guessed at in silence. A ten-digit number is read as seconds and a thirteen-digit one as milliseconds, the page says which reading it used, and you can override it — because the same value interpreted the wrong way lands either in 1970 or in the year 57000, and a converter that quietly picks one is how that bug reaches production.

A UNIX timestamp counts seconds since 1 January 1970 00:00:00 UTC, always in UTC and never in a local zone, which is exactly why it is the right thing to store: the same number is the same instant everywhere on earth. The conversion to a readable date is where the zone comes in, and that is what this page shows you.

Everything is computed in the page; no timestamp is sent anywhere.