How to use the Timestamp Converter tool
- Enter an epoch valueType or paste the number; its precision is worked out from the digit count.
- See the dateRead it as UTC, in your local zone, in ISO 8601 and as a relative phrase like “in 2 hours”.
- Go the other wayChoose a date and time, say whether it’s local or UTC, and get seconds and milliseconds back.
- Copy any valueEach line has its own Copy button, and the ticking clock up top shows the current epoch time.
Timestamp converter features
- Unit recognitionForget dividing by a thousand: 10, 13, 16 and 19-digit values are all interpreted correctly.
- Two-way conversionEpoch-to-date and date-to-epoch sit next to each other.
- Time zones handledOutput in UTC and your device’s zone, with proper ISO 8601 offsets.
- Running clockWatch the present Unix time advance each second, then pause or copy it.
- Made for developersValues formatted for log files, databases, APIs and token claims.
What is Unix time?
Unix time, also called epoch or POSIX time, counts the seconds elapsed since midnight UTC on 1 January 1970, the so-called Unix epoch. The value 1800000000, for example, corresponds to 15 January 2027 at 08:00:00 UTC. As a single time-zone-free number, it’s the easiest way for software to record and compare instants.
Precision: seconds, milliseconds and beyond
- Seconds currently have 10 digits, e.g.
1800000000. They’re used by Unix tools, PHP, Python’stime.time()and JWT claims. - Milliseconds have 13 digits, e.g.
1800000000000, as returned by JavaScript’sDate.now()and common in Java. - Microseconds have 16 digits and turn up in PostgreSQL and some logging systems.
- Nanoseconds have 19 digits, produced by Go’s
UnixNano()and high-precision tracing tools.
Mixing these up is the classic epoch bug: read milliseconds as seconds and you land tens of thousands of years ahead, do the reverse and you’re back in January 1970. Counting the digits avoids the mistake, which is exactly what this converter does.
How to get the current Unix timestamp in code
- JavaScript:
Math.floor(Date.now() / 1000) - Python:
int(time.time()) - PHP:
time() - Java:
Instant.now().getEpochSecond() - Bash on Linux or macOS:
date +%s - MySQL:
UNIX_TIMESTAMP()
Time zones and leap seconds
Epoch values are inherently UTC. Showing one in “local time” only changes its presentation, never the instant it refers to. Unix time also skips leap seconds, treating every day as precisely 86,400 seconds long.
The Year 2038 problem
Legacy systems that keep time in a signed 32-bit integer max out at 2147483647, which is 03:14:07 UTC on 19 January 2038. A second later the counter wraps around to 1901. Current 64-bit systems move that limit billions of years into the future.
Checking token lifetimes? The JWT Decoder turns exp and iat into dates automatically, and the Date Difference Calculator measures the gap between two dates.