How to convert a Unix timestamp
Logs and APIs store time as a number. Here's how to turn a Unix timestamp into a readable date and back.
Steps
- Open the timestamp converter and paste the number.
- It detects seconds, milliseconds or microseconds automatically.
- Read the date in your local time and in UTC.
- Convert a date back to a timestamp by entering it instead.
Seconds vs milliseconds
A 10-digit number is seconds; 13 digits is milliseconds; 16 is microseconds. The converter detects the scale so you don't accidentally land in 1970 or the year 50000.
Tools used in this guide
Related guides
How to convert a Unix timestamp — FAQ
Paste the number into the timestamp converter — it detects the scale and shows the date in local time and UTC.