Free online Unix timestamp converter
A Unix timestamp — also called epoch time — counts the seconds since midnight UTC on 1 January 1970. It's the universal language that databases, log files, and APIs use to store a precise moment without worrying about time zones. This converter turns any epoch value into a readable date in both your local time and UTC, and turns a calendar date back into a timestamp in seconds or milliseconds. Everything happens live in your browser as you type.
How to convert a Unix timestamp to a date
- Paste your Unix timestamp into the Timestamp to date box.
- Leave the unit on Auto — 13-digit values are read as milliseconds and shorter ones as seconds — or force Seconds / Milliseconds.
- Read the result in local time, UTC, ISO 8601, and see the day of the week.
- To go the other way, set a date in the Date to timestamp panel and copy the seconds or milliseconds value.
Seconds vs milliseconds
Classic Unix time is measured in whole seconds, so a current value has ten
digits. Many modern platforms — including JavaScript's
Date.now() — use milliseconds instead, giving a thirteen-digit
number. Mixing the two is a common bug that places a date in 1970 or far in
the future, so double-check the unit whenever a converted date looks wrong.
Related date and number tools
Working out how long ago a timestamp was? Try the age calculator to measure the gap between two dates in years, months, and days. If you need to inspect the raw hexadecimal form of an epoch value, the number base converter switches between decimal, binary, and hex. Like every tool here, both run entirely client-side with nothing sent to a server.