Unix TimestampConverter
Turn epoch time into a human date in UTC and your local time zone, or convert any date to a Unix timestamp. Seconds and milliseconds are detected automatically.
- Epoch start
- Jan 1, 1970 UTC
- 1,767,225,600
- Jan 1, 2026
- 1,800,000,000
- Jan 15, 2027
- 32-bit limit
- Jan 19, 2038
Convert Epoch Time
The top card shows the current Unix time. Paste a timestamp to decode it, or pick a date to encode it.
Current Unix time
––Timestamp to date
Date to timestamp
What is a Unix timestamp?
A Unix timestamp is the number of seconds since 00:00:00 UTC on January 1, 1970, known as the Unix epoch. Leap seconds are not counted. For example, 1767225600 is midnight UTC on January 1, 2026. JavaScript and many APIs use milliseconds instead, which adds three digits.
- Epoch start
- Jan 1, 1970 UTC
- 1,767,225,600
- Jan 1, 2026
- 1,800,000,000
- Jan 15, 2027
- 32-bit limit
- Jan 19, 2038
How to Use the Unix Timestamp Converter
- 01
Paste a timestamp
Enter epoch seconds (10 digits today) or milliseconds (13 digits).
- 02
Read the date
See it in UTC, your local time zone, ISO 8601 and relative time.
- 03
Encode a date
Pick a date and time, choose UTC or local, and copy the Unix timestamp.
- 04
Grab the current time
Press Convert this to decode the live epoch value.
Seconds, Milliseconds, Microseconds: Which Timestamp Is It?
| Unit | Digits today | Example (Jan 1, 2026 UTC) | Used by |
|---|---|---|---|
| Seconds | 10 | 1767225600 | Unix, PHP, Python time.time(), most databases |
| Milliseconds | 13 | 1767225600000 | JavaScript Date.now(), Java, many JSON APIs |
| Microseconds | 16 | 1767225600000000 | PostgreSQL internals, some logs |
| Nanoseconds | 19 | 1767225600000000000 | Go time.UnixNano(), high-precision tracing |
This converter treats any value of 100 billion or more as milliseconds. Pick the unit by hand if you work with dates far in the past or future.
Get and Convert Unix Time in Code
| Language | Current timestamp | Timestamp to date |
|---|---|---|
| JavaScript | Math.floor(Date.now() / 1000) | new Date(ts * 1000).toISOString() |
| Python | int(time.time()) | datetime.fromtimestamp(ts, tz=timezone.utc) |
| PHP | time() | date("c", $ts) |
| SQL (MySQL) | UNIX_TIMESTAMP() | FROM_UNIXTIME(ts) |
| Bash | date +%s | date -u -d @ts |
| Excel | – | =A2/86400 + DATE(1970,1,1) |
What Is the Year 2038 Problem?
Systems that store Unix time in a signed 32-bit integer will overflow at 03:14:07 UTC on January 19, 2038. The largest value that fits is 2,147,483,647. One second later the number wraps to a negative value, which old software reads as December 13, 1901.
Modern operating systems, databases and languages now use 64-bit time, which pushes the limit billions of years out. The risk sits mainly in older embedded devices, file formats and databases that still use 32-bit fields.
Epoch milestones
| Timestamp | Date (UTC) |
|---|---|
| 0 | Jan 1, 1970 00:00:00 |
| 946684800 | Jan 1, 2000 00:00:00 |
| 1000000000 | Sep 9, 2001 01:46:40 |
| 1767225600 | Jan 1, 2026 00:00:00 |
| 1800000000 | Jan 15, 2027 08:00:00 |
| 2000000000 | May 18, 2033 03:33:20 |
| 2147483647 | Jan 19, 2038 03:14:07 |
Unix Time, Leap Seconds and Day Counts
Unix time assumes every day has exactly 86,400 seconds. When a leap second is added, the count simply repeats or smears a second, so Unix time is not a perfect count of elapsed SI seconds. For everyday dates this makes no difference.
Because days are a fixed 86,400 seconds, you can get whole days between two timestamps by dividing the difference by 86,400. For calendar-aware results, use the Time Duration Calculator or the Days Between Dates Calculator. To turn seconds into hours or weeks, use the Time Units Converter, and for the astronomer’s day count see the Julian Day in the Day of the Year Calculator.
Who Uses an Epoch Converter?
Developers
Decode API fields and database columns.
Log analysis
Read server and app logs in human time.
Security teams
Line up events across systems in UTC.
Data analysts
Convert epoch columns before charting.
Token debugging
Check exp and iat claims in JWTs.
Students
Learn how computers store time.
Unix Timestamp FAQ
The top card shows it live in seconds and milliseconds. It increases by one every second.
Paste it into the Timestamp to date card. Mathematically, multiply seconds by 1,000 and pass the value to a date function, or divide by 86,400 and add it to January 1, 1970.
Yes. A Unix timestamp is the same everywhere in the world. Time zones only matter when you display it as a local date and time.
It is in milliseconds. Divide by 1,000 to get seconds. JavaScript and Java use milliseconds by default.
Yes. Negative values are dates before January 1, 1970. For example, −86400 is December 31, 1969.
No. Unix time treats every day as exactly 86,400 seconds and ignores leap seconds.