Epoch / Unix Timestamp Converter
Convert between Unix timestamps and human-readable dates in any timezone.
Last updated August 26, 2026
About this tool
Unix time (also called epoch time or POSIX time) counts the number of seconds that have elapsed since January 1, 1970, 00:00:00 UTC, ignoring leap seconds. It's the standard way computers store and compare timestamps internally, regardless of timezone or calendar. This tool converts between epoch timestamps (in seconds, milliseconds, microseconds, or nanoseconds) and human-readable dates in any timezone.
Common time units in seconds
| Unit | Seconds |
|---|---|
| 1 minute | 60 |
| 1 hour | 3,600 |
| 1 day | 86,400 |
| 1 week | 604,800 |
| 30 days | 2,592,000 |
| 365 days | 31,536,000 |
Code examples
The second line (where shown) is the inverse operation.
| Language | Code |
|---|---|
| JavaScript | Math.floor(Date.now() / 1000)new Date(1700000000 * 1000) |
| Python | import time; int(time.time())datetime.fromtimestamp(1700000000) |
| PHP | time()date('r', 1700000000) |
| Java | System.currentTimeMillis() / 1000new Date(1700000000L * 1000) |
| Go | time.Now().Unix()time.Unix(1700000000, 0) |
| Ruby | Time.now.to_iTime.at(1700000000) |
| SQL (Postgres) | SELECT EXTRACT(EPOCH FROM now());SELECT TO_TIMESTAMP(1700000000); |
| Shell | date +%sdate -d @1700000000 |
Frequently asked questions
Why does Unix time start in 1970?
1970 was chosen somewhat arbitrarily by early Unix developers as a convenient recent “zero point” for the systems they were building at the time. It stuck as the universal standard.
What is the Year 2038 problem?
Systems that store Unix time as a signed 32-bit integer will overflow on January 19, 2038, wrapping around to a negative number. Most modern 64-bit systems have already moved past this limit.
Does this tool send my timestamps anywhere?
No — all conversion happens locally in your browser using JavaScript. Nothing is sent to a server.
How do I know if my timestamp is in seconds or milliseconds?
Seconds-based timestamps for recent dates are 10 digits long; milliseconds are 13 digits, microseconds 16, and nanoseconds 19. This tool auto-detects the unit based on digit count.
More in Time & Date
Find the exact time between two dates in years, months, and days, or add and subtract days, weeks, months, and years from any date. Use business-day and inclusive-counting options when needed.
Calculate your exact age from date of birth in years, months, and days, or find your age on any past or future date.
Convert a date and time across multiple timezones at once.