Unix Timestamp to Date Converter
Convert Unix timestamps to human-readable dates — or any date back to a Unix timestamp. Share a link with any timestamp pre-loaded.
Unix Timestamp → Date
{{ tsError }}
| {{ row.label }} | {{ row.value }} |
Date → Unix Timestamp
{{ dateError }}
Unix timestamp (seconds):
{{ convertedTimestamp }}
Milliseconds: {{ convertedTimestamp * 1000 }}
What is a Unix Timestamp?
A Unix timestamp (also called Unix time, POSIX time, or epoch time) is the number of seconds that have elapsed since 00:00:00 UTC on 1 January 1970 — the "Unix epoch". It is the most widely used system for representing time in computing: databases, APIs, log files, and programming languages all use it internally.
Unix Timestamp Reference Points
| Event | Unix timestamp |
|---|---|
| Unix Epoch (start) | 0 |
| Y2K — 1 Jan 2000 UTC | 946684800 |
| 1 Jan 2024 UTC | 1704067200 |
| 1 Jan 2025 UTC | 1735689600 |
| Year 2038 problem | 2147483647 |
Seconds vs Milliseconds
Unix timestamps are traditionally in seconds (10 digits for dates after 2001).
JavaScript's Date.now() returns milliseconds (13 digits) — divide by 1000 to get seconds.
This converter works with seconds.
How to Get the Current Unix Timestamp
| Language / tool | Code |
|---|---|
| PHP | time() |
| JavaScript | Math.floor(Date.now() / 1000) |
| Python | import time; int(time.time()) |
| MySQL | UNIX_TIMESTAMP() |
| Linux shell | date +%s |