Unix Timestamp to Date
Convert Unix (epoch) timestamps into readable dates in any time zone — one or a whole list at once.
| Timestamp | Date in the selected zone | UTC (ISO 8601) | Relative |
|---|
● Everything is calculated in your browser. Nothing is sent anywhere.
How to convert a timestamp to a date
- Paste one or more timestamps, one per line — or click Insert current timestamp.
- Leave the unit on Detect automatically, or choose seconds, milliseconds, microseconds or nanoseconds.
- Choose the time zone to display, and read the dates (with the UTC equivalent).
What is a Unix timestamp?
A Unix timestamp (or epoch time) is the number of seconds since 1 January 1970, 00:00:00 UTC. It's the same number everywhere in the world, which is why servers, databases and APIs use it; only its display changes with the time zone.
| Timestamp | Date (UTC) |
|---|---|
| 0 | 1 January 1970, 00:00:00 |
| 946684800 | 1 January 2000, 00:00:00 |
| 1000000000 | 9 September 2001, 01:46:40 |
| 1700000000 | 14 November 2023, 22:13:20 |
| 1767225600 | 1 January 2026, 00:00:00 |
| 2147483647 | 19 January 2038, 03:14:07 (32-bit limit) |
Seconds, milliseconds or microseconds?
Count the digits: 10 digits = seconds (1767225600), 13 digits = milliseconds (1767225600000, used by JavaScript and many APIs), 16 digits = microseconds, 19 digits = nanoseconds. Automatic detection uses this rule.
Convert a timestamp in code
| Where | Seconds → date |
|---|---|
| Excel / Google Sheets | =A2/86400+DATE(1970,1,1), formatted as date and time (UTC) |
| JavaScript | new Date(ts * 1000).toISOString() |
| Python | datetime.fromtimestamp(ts, tz=timezone.utc) |
| PHP | date('Y-m-d H:i:s', $ts) |
| MySQL | FROM_UNIXTIME(ts) |
| Linux / macOS | date -d @1767225600 (Linux) · date -r 1767225600 (macOS) |
For milliseconds, divide by 1000 first (except in JavaScript, which uses milliseconds natively: new Date(ms)).
FAQ
How do I convert a date to a timestamp?
Use the opposite tool, Date to Unix Timestamp, or get the current one with the Unix Timestamp Generator.
Why is the date different from what I expected?
Usually the time zone: the timestamp is in UTC, and the display is converted to the zone you chose. Or the unit: a millisecond timestamp read as seconds gives a date thousands of years in the future.
What is the year 2038 problem?
Systems that store timestamps as signed 32-bit integers overflow after 2147483647 (19 January 2038, 03:14:07 UTC). Modern systems use 64-bit values and aren't affected.
Can a timestamp be negative?
Yes: negative values are dates before 1970. −86400 is 31 December 1969.
Do timestamps include leap seconds?
No. Unix time ignores leap seconds: every day is exactly 86,400 seconds.