Unix Timestamp Converter

Enter one epoch timestamp or ISO date per line. Get UTC, browser-local and chosen time-zone displays, plus epoch values in all units.

Everything runs locally in your browser. Enable JavaScript to use the tool.

How it works

The epoch is 1970-01-01 at midnight UTC. Multiply seconds by 1,000,000,000 to obtain nanoseconds; milliseconds by 1,000,000; microseconds by 1,000. BigInt preserves integer precision. Coarser epoch units floor toward negative infinity. UTC retains nine fractional digits; local and IANA displays use the browser date facilities and do not show submillisecond precision. Leap seconds are excluded.

Auto mode guesses seconds for up to 10 magnitude digits, milliseconds up to 13, microseconds up to 16 and nanoseconds thereafter. This is a heuristic for recent dates, not a standard; choose an explicit unit for small or distant timestamps. Signed six-digit expanded years are accepted except -000000. Hour 24 is accepted only with zero minutes, seconds and fraction, meaning midnight at the end of that day. Reverse conversion requires an explicit Z or UTC offset, avoiding ambiguous daylight-saving wall times. IANA zones affect display only. Batches allow 10,000 lines and 1 MiB; errors clear the whole batch.

Worked examples

Unix epoch

0 seconds gives 1970-01-01T00:00:00.000000000Z and 0 nanoseconds.

One nanosecond before the epoch

-1 nanosecond gives 1969-12-31T23:59:59.999999999Z. Floored epoch seconds are -1.

Frequently asked questions

What is the 2038 problem?
A signed 32-bit seconds counter ends at 2147483647, or 2038-01-19T03:14:07Z. This converter uses BigInt and is not restricted to that counter.
Why did auto detection choose the wrong unit?
Digit length cannot uniquely identify a unit. Use the unit selector when you know the source format.
Can I enter a local date without an offset?
No. Supply Z or an explicit offset such as +08:00. This avoids ambiguity during daylight-saving changes.
Does this preserve nanoseconds?
Yes for integer epoch inputs and ISO fractions through nine digits. Browser-local and zoned text have lower display precision.

Sources

Last reviewed 2026-11-14. The method is written out above so you can check our math.