How to Convert Unix Timestamps
Timestamp Conversion
Unix Timestamps Explained
A Unix timestamp counts seconds (or milliseconds) since January 1, 1970 00:00:00 UTC (the Unix epoch). APIs, databases, and logs commonly use timestamps for unambiguous time storage.
Seconds vs Milliseconds
JavaScript uses milliseconds (Date.now()), while many backends use seconds. Values above 1e12 are treated as milliseconds; values around 1e9–1e10 are treated as seconds.
Common Use Cases
- Converting log timestamps to readable dates
- Debugging JWT
expandiatclaims - Checking MongoDB ObjectId embedded timestamps
- Verifying API response date fields
Frequently asked questions
What timestamp format should I paste?
Paste Unix seconds (e.g. 1720000000), milliseconds (e.g. 1720000000000), or any parseable date string. Leave empty to use the current time.
What timezone is used?
ISO 8601 output is always UTC. The local time line uses your browser timezone.