Unix Timestamp
Convert epoch seconds or milliseconds to a readable local and UTC date, and turn a date back into a timestamp — with auto-detection of the unit.
Current time
Timestamp → date
Date → timestamp
About this Unix timestamp converter
The Unix epoch is 1970-01-01T00:00:00Z. A Unix timestamp counts the seconds elapsed since that instant, ignoring leap seconds, so it is a timezone-independent way to name a moment. The confusion in practice comes from the unit: Unix command-line tools and most server APIs emit seconds (a 10-digit number today), while JavaScript's Date and many JSON APIs use milliseconds (13 digits). This converter accepts either and auto-detects the unit from magnitude, because any value above 1011 would be the year 5138 if read as seconds and is therefore almost certainly milliseconds.
Rendering is where timezones come back in. The timestamp itself is an absolute instant, but the calendar date it corresponds to depends on the offset of whoever is reading it. That is why this page shows the local time, the UTC time and the ISO 8601 string side by side — when two services disagree about "yesterday", it is almost always a timezone rendering difference and not a different instant.
One limit is worth flagging. Systems that store the timestamp in a signed 32-bit integer run out of room at 03:14:07 UTC on 19 January 2038, after which the value overflows and wraps to 1901. That is the Year 2038 problem. Anything on this page uses 64-bit or double-precision arithmetic and is unaffected, but a service you are debugging may not be.
Related tools
Found a bug, or need a tool that is not here? Email 2273917172@qq.com — a human reads every message.