DevToolMage

Time

Unix Timestamp Converter

Move between Unix epoch values and readable UTC or local dates. Seconds versus milliseconds are detected when possible.

Input is processed in your browser. DevToolMage does not upload it, store it, or send it to analytics.

Unit

From timestamp

1970-01-01T00:00:00.000Z

1/1/1970, 12:00:00 AM UTC

From date

0 seconds

Unit used: seconds.

How it works

Uses JavaScript Date with an explicit unit. Invalid numbers and unparseable dates return errors.

Input and output

Input is an epoch number or an ISO / parseable date string. Output is UTC ISO, local display, and epoch seconds or milliseconds.

Examples

0

Epoch 0 is 1970-01-01T00:00:00.000Z.

JWT exp

A typical 10-digit exp claim is seconds, not milliseconds.

How to use this tool

  1. Paste an epoch number or an ISO date.
  2. Confirm seconds versus milliseconds.
  3. Copy UTC, local, or epoch output.

Limitations

  • Browser timezone rules apply to the local display.
  • Leap seconds are not modeled.
  • Not a general calendar or holiday converter.

Questions

Seconds or milliseconds?

Values with 13 or more digits are treated as milliseconds. 10-digit values are treated as seconds. You can override the unit.

Is this a timezone converter for travel dates?

No. It converts Unix epoch values used in APIs and logs. General date conversion belongs elsewhere.

Related tools