Code tool

Unix Epoch Timestamp Converter

Convert Unix time locally with explicit or automatic units, reverse date input, UTC and local editors, ISO week output, and a 2038 warning.

In-browser processingNo account requiredPrivacy details ↗
Edit local time
Edit UTC time

A QUICK WALKTHROUGH

How to use this tool

  1. Enter an epoch value and choose a unit, or leave unit detection on.
  2. Review UTC, local, ISO 8601, RFC 2822, RFC 3339, and ISO week output.
  3. Edit local or UTC fields, then copy or reset the timestamp.

Range and units

Seconds, milliseconds, microseconds, and nanoseconds are supported, including negative values. BigInt-based conversion avoids unsafe-number rounding; dates outside JavaScript Date’s ±8.64e15 ms range are rejected.

Date and timezone controls

UTC and local date-time fields convert back to epoch values. ISO output is stable; local output uses the device timezone database. Unix time ignores leap seconds.

2038 warning

A warning is shown for instants near or beyond the signed 32-bit seconds boundary (2038-01-19), where older systems may overflow.

GOOD TO KNOW

Common questions

How are units detected?

Automatic mode uses magnitude heuristics: values up to 10^11 are seconds, up to 10^14 are milliseconds, up to 10^17 are microseconds, and larger values are nanoseconds. Select a unit to override this.

Does the timestamp include a timezone?

No. It identifies an instant; timezone is applied only when rendered.