Last updated: December 3, 2026 · By Visal Vadayar
Quick answer: A Unix timestamp counts seconds since January 1, 1970 at 00:00 UTC. Paste a timestamp to see the date in UTC and your local time, or pick a date to get its timestamp. 10 digits = seconds, 13 digits = milliseconds; the converter detects both.
Unix Timestamp Converter (Epoch Time)
Convert Unix epoch timestamps to human-readable dates and back, in UTC and your local time zone. Supports seconds, milliseconds and microseconds.
Unix time counts seconds since 00:00:00 UTC on January 1, 1970, not counting leap seconds. 32-bit signed timestamps overflow on January 19, 2038.
Get the current timestamp in code
| Language | Seconds | Milliseconds |
|---|---|---|
| JavaScript | Math.floor(Date.now()/1000) | Date.now() |
| Python | int(time.time()) | int(time.time()*1000) |
| PHP | time() | round(microtime(true)*1000) |
| Java | Instant.now().getEpochSecond() | System.currentTimeMillis() |
| Linux/macOS shell | date +%s | date +%s%3N (GNU) |
| SQL (MySQL) | UNIX_TIMESTAMP() | — |
Convert a timestamp to a date in code
- JavaScript: new Date(1700000000 * 1000).toISOString()
- Python: datetime.fromtimestamp(1700000000, tz=timezone.utc)
- Excel/Google Sheets: =A1/86400 + DATE(1970,1,1) (format as date/time, in UTC)
Useful epoch reference points
| Event | Unix timestamp |
|---|---|
| Jan 1, 1970 00:00 UTC | 0 |
| Jan 1, 2000 00:00 UTC | 946684800 |
| 1 billion seconds | Sep 9, 2001 |
| Jan 19, 2038 03:14:07 UTC | 2147483647 (32-bit limit) |
Time zone tips
Timestamps have no time zone; they’re always UTC. Convert to local time only when displaying it. Store dates as UTC in databases and APIs to avoid daylight-saving bugs.
More developer tools: subnet calculator, color picker from image, aspect ratio calculator.
FAQ
What is a Unix timestamp?
It’s the number of seconds since 00:00:00 UTC on January 1, 1970 (the Unix epoch), ignoring leap seconds. It’s used by servers, databases and APIs because it’s the same everywhere.
How do I know if a timestamp is in seconds or milliseconds?
Current timestamps in seconds have 10 digits (e.g. 1700000000); in milliseconds they have 13 digits. The converter detects this automatically.
How do I get the current timestamp in code?
JavaScript: Math.floor(Date.now()/1000). Python: int(time.time()). PHP: time(). Linux shell: date +%s.
What is the Year 2038 problem?
Systems that store Unix time as a signed 32-bit integer overflow at 03:14:07 UTC on January 19, 2038. Modern systems use 64-bit time to avoid it.




