EpochLab

9 tools

Unix time & epochs

Seconds, milliseconds, microseconds and nanoseconds, in both directions. Each tool has its own page. It runs in your browser, and it keeps its inputs in the address bar so you can share the answer.

The tools

Convert Unix timestamps in seconds, milliseconds, microseconds or nanoseconds to dates and back, and generate, check or compare epoch times.

Unix Timestamp ConverterPaste a timestamp and get the date; paste a date and get the timestamp. The precision is detected from the digit count and shown so you can override it, and a number that is not Unix time is checked against the other eleven epochs too.
Timestamp to DateOne field, one answer — the timestamp as a date and time in your zone, in UTC, and in about thirty other encodings you might need to paste somewhere.
Date to TimestampType a date any way you like — ISO, a slash date, `next friday`, `now` — and get the timestamp in seconds, milliseconds, microseconds and nanoseconds.
Milliseconds ConverterThe 13-digit form. It is what `Date.now()` and `System.currentTimeMillis()` return, and what most Java and JavaScript code uses. Convert it either way, with the seconds value shown beside it.
Microseconds ConverterThe 16-digit form. PostgreSQL uses it inside, and so does ClickHouse. In Python you get it from `time_ns() / 1000`. Chrome's own clock uses it too, but counts from 1601.
Nanoseconds ConverterThe 19-digit form, used by Go's `UnixNano`, Prometheus, InfluxDB and OpenTelemetry. You also get a warning about the digits JavaScript can drop on the way.
Epoch Difference CalculatorTake one timestamp from another and get the gap in seconds and in plain units. You also get the same gap in each of the four common precisions.
Unix Time GeneratorThe current timestamp in every precision, ticking, plus generators for a relative time — an hour from now, a token expiry, a cache header — in one click.
Unix Time ValidatorCheck a value before you trust it: which precision it plausibly is, what date it lands on, and whether it trips any of the usual overflow and sentinel traps.