Unix timestamp converter
Unix timestamp converter for epoch seconds or milliseconds to ISO 8601, UTC and local dates, and back. Includes a live clock and relative time.
How to convert a Unix timestamp to a date
A Unix timestamp counts the seconds since 1 January 1970 UTC. Paste one into the box to see it as an ISO 8601 string, in UTC and in your local time, plus a relative time like '3 days ago'. It works the other way too. Enter a date and read back the epoch value in seconds and milliseconds.
Seconds or milliseconds
APIs don't agree on units. Many send seconds, while JavaScript uses milliseconds. Set the unit so a value like 1719792000 is read correctly, then copy the format your system expects.
Live clock included
A ticking clock shows the current time in Unix seconds, Unix milliseconds and ISO 8601. Grab the current timestamp for logs, debugging or test data.
Common timestamp pitfalls
A 10-digit number such as 1719792000 is in seconds and a 13-digit number such as 1719792000000 is in milliseconds. Reading one as the other gives a date in 1970 or thousands of years ahead, which is the usual sign the unit is wrong. Databases may also store local time without a zone, so check whether a value was meant as UTC before you compare it.
Before you start
Timestamp Converter works on the text or values you enter. Output: Converted times. The settings appear before anything runs, so you can check them first. Your original file is never changed.
The value you enter is processed in your browser. Still test the output where it will be used. Clean formatting does not prove the data is safe or correct.
Keep the original until you have opened and checked the result. The work happens in this browser tab, so the size you can handle depends on your device's memory, your browser and the file itself.
How to use the Unix timestamp converter
- Enter a Unix timestamp or a date.
- Choose whether numbers are seconds or milliseconds.
- Read the ISO, UTC, local and relative versions.
- Copy the format you need, or click 'Use now'.
Last updated · How we build and check tools · Report an error