answer
How to Convert Timestamp to Date
Learn how Unix timestamps convert to readable dates, with seconds and milliseconds examples.
Updated 2026-05-09
Direct Answer
A Unix timestamp is converted by treating it as time elapsed since 1970-01-01 00:00:00 UTC. Seconds timestamps are usually 10 digits; millisecond timestamps are usually 13 digits.
Steps
Check whether the timestamp is in seconds or milliseconds, convert it to a date object, then display it as UTC or local time.
- 10 digits usually means seconds
- 13 digits usually means milliseconds
- UTC and local time can differ by timezone
Example
Timestamp 0 is the start of Unix time.
0 seconds = 1970-01-01T00:00:00.000Z FAQ
How do I know if a timestamp is seconds or milliseconds?
Millisecond timestamps are usually 13 digits; second timestamps are usually 10 digits for current dates.
Why is my converted date off by hours?
You may be comparing UTC with your local timezone.
Related Pages
tool Timestamp Converter Convert seconds or milliseconds timestamps into local time and UTC ISO output. tool JSON Formatter Paste JSON to format it with indentation, minify it, or find syntax errors. answer What Is Base64 Encoding? Base64 represents binary or text data using a limited set of safe text characters. Category Browse more answers Find more pages in this section. Home Back to 10240119 Tools Browse the main tool collection.