Developer Utilities
Unix Timestamp Converter
Convert Unix epoch timestamps to human-readable dates and back again. Seconds and milliseconds are detected automatically, and results are shown in UTC, your local time and ISO 8601 format.
Convert a Timestamp
Paste a timestamp to see the date, or pick a date to get its timestamp. The current Unix time updates every second.
Timestamp → Date
Date → Timestamp
What Is a Unix Timestamp?
A Unix timestamp, also called epoch time or POSIX time, is the number of seconds that have passed since 00:00:00 UTC on 1 January 1970, known as the Unix epoch. For example, the timestamp 1758979200 represents 27 September 2025 at 13:20:00 UTC.
Timestamps are used everywhere in software because a single number is easy to store, compare and sort, and it means the same moment everywhere in the world regardless of time zones. Databases, APIs, log files, JWT tokens and spreadsheets exported from apps often contain timestamps.
How to Use the Converter
- Timestamp to date: paste a timestamp into the first box. The converter detects whether it is in seconds (10 digits), milliseconds (13 digits) or microseconds (16 digits) and shows the date in UTC, your local time and ISO 8601 format, along with how long ago or how far in the future it is.
- Date to timestamp: choose a date and time and whether it is in your local time or UTC. The timestamp in seconds and milliseconds appears below.
- Current time: the box at the top shows the live Unix timestamp. Click Use to convert it.
Seconds vs Milliseconds
| Format | Digits today | Used by |
|---|---|---|
| Seconds | 10 | Unix/Linux, PHP time(), Python time.time(), MySQL UNIX_TIMESTAMP(), JWT exp and iat |
| Milliseconds | 13 | JavaScript Date.now(), Java System.currentTimeMillis(), many REST APIs |
| Microseconds | 16 | PostgreSQL internals, some analytics and logging systems |
If a converted date lands in 1970 or tens of thousands of years in the future, the timestamp was probably interpreted with the wrong unit.
Getting the Current Timestamp in Code
| JavaScript | Math.floor(Date.now() / 1000) |
|---|---|
| Python | import time; int(time.time()) |
| PHP | time() |
| Java | Instant.now().getEpochSecond() |
| MySQL | SELECT UNIX_TIMESTAMP(); |
| Linux / macOS shell | date +%s |
| Excel (to date) | =A1/86400 + DATE(1970,1,1) |
The Year 2038 Problem
Older systems store timestamps as a signed 32-bit integer, which can only count up to 2,147,483,647. That limit is reached at 03:14:07 UTC on 19 January 2038, after which the number overflows and can be read as a date in 1901. Modern operating systems, databases and programming languages use 64-bit timestamps, which will not run out for billions of years, but embedded devices and legacy software may still need updating.
Leap Seconds and Time Zones
Unix time ignores leap seconds, so every day is treated as exactly 86,400 seconds. Unix timestamps are always in UTC. Time zones only matter when you display a timestamp as a local date, which is why this converter shows both UTC and your local time.
Privacy
All conversions run in your browser. Timestamps and dates you enter are not sent anywhere.
Frequently Asked Questions
What is a Unix timestamp?
It is the number of seconds since 1 January 1970 at 00:00:00 UTC. It is a time-zone-independent way of storing a moment in time.
How do I convert a Unix timestamp to a date?
Paste the timestamp into the converter above. It automatically detects seconds or milliseconds and shows the date in UTC, your local time and ISO 8601 format.
Why does my timestamp convert to a date in 1970?
A millisecond value was probably treated as seconds, or a seconds value was divided by 1,000 again. Check the number of digits: 10 digits is seconds and 13 digits is milliseconds.
Is a Unix timestamp in UTC or local time?
Unix timestamps are always based on UTC. The same timestamp is shown as different local times depending on the viewer's time zone.
How do I convert a timestamp in Excel?
For a timestamp in seconds in cell A1, use =A1/86400+DATE(1970,1,1) and format the cell as a date and time. For milliseconds, divide by 86,400,000 instead.
What is the maximum Unix timestamp?
For 32-bit systems the maximum is 2,147,483,647, reached on 19 January 2038. 64-bit systems can store dates billions of years in the future.