Convert between Unix timestamps and human dates both ways. Auto-detects seconds / milliseconds, shows the live current timestamp, and outputs UTC and ISO 8601.
A Unix timestamp is the number of seconds elapsed since 00:00:00 UTC on 1 January 1970, ignoring leap seconds. Two properties make it useful:
| Unit | Digits now | Where you meet it |
|---|---|---|
| Seconds | 10 | Unix, PHP, Python, most APIs |
| Milliseconds | 13 | JavaScript's Date.now(), Java, some APIs |
| Microseconds | 16 | Databases, tracing systems |
| Nanoseconds | 19 | Go's time package, high-resolution profiling |
The count of digits is the fastest way to tell them apart. Mixing them up produces a date in 1970 or in the far future — the classic symptom of a thousandfold mistake.
If a timestamp is stored as a signed 32-bit integer, the largest representable value is 2,147,483,647 seconds, which corresponds to 03:14:07 UTC on 19 January 2038. A second later it overflows and wraps to a negative value, producing dates in 1901. Most modern systems use 64-bit integers and are unaffected, but embedded devices, older file formats and legacy databases can still carry 32-bit fields. Millisecond timestamps overflow 32 bits far sooner — in the current era — which is another reason to know which unit you are handling.