Unix Timestamp and Epoch Converter
Paste an epoch timestamp to see the date, or pick a date to get the Unix timestamp. Seconds and milliseconds are detected automatically, and you can show the result in eight time zones.
Timestamp to Date
Date to Timestamp
What Is Epoch Time (Unix Timestamp)?
Epoch time, also called a Unix timestamp or POSIX time, is the number of seconds that have passed since 00:00:00 UTC on January 1, 1970, the Unix epoch. Because it's a single number with no time zone attached, it's the standard way to store time in databases, APIs, log files and JWT tokens. Converting epoch to a date by hand means accounting for leap years and time zones; the converter above does that for you.
The Current Epoch Time in Other Formats
The live Unix timestamp above shown in the most common date and time formats, updated every second.
| — | UTC |
| — | ISO 8601 |
| — | RFC 822 / 1036 / 1123 / 2822 |
| — | RFC 3339 |
Unix Time Conversion Reference
Common human-readable durations expressed as a number of seconds — handy when calculating expirations, TTLs, or intervals.
| Human-Readable Time | Seconds |
|---|---|
| 1 Hour | 3600 |
| 1 Day | 86400 |
| 1 Week | 604800 |
| 1 Month (30.44 days) | 2629743 |
| 1 Year (365.24 days) | 31556926 |
Unix Timestamp: Seconds vs Milliseconds
The most common source of confusion is whether a timestamp is in seconds (10 digits) or milliseconds (13 digits). The rule: if the value exceeds 10¹² it is almost certainly milliseconds.
Used by PHP time(), Python time.time(), Unix shell date +%s, and most SQL databases. Example: 1710508200
1710508200
Used by JavaScript Date.now(), Java System.currentTimeMillis(), Node.js, and most browser APIs. Example: 1710508200000
1710508200000
Common Timestamp Use Cases
Why developers prefer Unix timestamps over human-readable date strings:
JSON Web Tokens use Unix timestamps in seconds for the "issued at" (iat) and "expiration" (exp) claims. Timezone-independent and trivially comparable.
An integer timestamp column sorts faster than a datetime string and is timezone-neutral, eliminating ambiguity when records come from multiple geographic locations.
Server logs, distributed tracing (OpenTelemetry), and analytics pipelines use millisecond timestamps to correlate events across services with sub-second precision.
Cache systems (Redis, Varnish, CDNs) and API responses use Unix timestamps for Cache-Control max-age, created_at, and updated_at fields.
What Happens on 19 January 2038?
At 03:14:07 UTC on 19 January 2038 the Unix timestamp will exceed the maximum value a signed 32-bit integer can hold (2,147,483,647). Systems that still store time in 32 bits will overflow and wrap around to a negative number, interpreting the date as December 1901. Before then, applications must migrate to 64-bit timestamps — which push the limit roughly 292 billion years into the future.