Skip to content

Unix Timestamp Converter

Paste an epoch value or a date and get every common representation at once: seconds, milliseconds, ISO 8601, RFC 2822, local time and relative time.

Processed locally in your browser

Options

Any IANA name, for example Asia/Kathmandu or America/Argentina/Cordoba.

Seconds, milliseconds, microseconds or nanoseconds are detected from the number of digits. A date string also works.0 chars · 0 lines
The result will appear here.

What is Unix Timestamp Converter?

A Unix timestamp counts the time elapsed since 1 January 1970 00:00:00 UTC, the "epoch". It is used in databases, logs, JWT claims, APIs and file systems because a single number is easy to store, sort and compare, whatever the time zone.

This converter detects the unit from the number of digits: below 1e11 it reads seconds, below 1e14 milliseconds, below 1e17 microseconds, otherwise nanoseconds. You can force a unit, use negative values (dates before 1970) and fractional seconds. It also accepts a date string such as an ISO 8601 or RFC 2822 date and turns it into a timestamp.

How does it work?

  1. Paste a timestamp such as 1700000000, or a date such as 2023-11-14T22:13:20Z.
  2. Leave the input unit on Auto-detect, or force seconds, milliseconds, microseconds or nanoseconds if the guess is wrong.
  3. Pick the display time zone from the list or type any IANA name (for example Asia/Kathmandu).
  4. Read the seconds, milliseconds, UTC and local dates, relative time, weekday, ISO week and day of the year, and copy what you need.

Common use cases

  • Reading the created_at or exp value found in a database row, a log line or an API response.
  • Checking whether an event logged in milliseconds by a JavaScript service matches one logged in seconds by a backend.
  • Converting a release or maintenance date to an epoch value for a cron job, a cache header or a test fixture.
  • Finding the weekday, ISO week number or day of the year that a timestamp falls on.

Examples

Try this input in the tool above:

Input
1700000000
Output
2023-11-14T22:13:20Z

Privacy

Unix Timestamp Converter runs entirely in your browser. The text or files you provide are processed on your device and are not uploaded, logged or stored on our servers.

Limitations

Auto-detection is a heuristic: a millisecond value before March 1973 (fewer than 12 digits) looks like seconds, so force the unit in that case. Unix time ignores leap seconds.

Frequently asked questions

How does the tool know if my number is in seconds or milliseconds?

It looks at the magnitude: under 1e11 is seconds, under 1e14 is milliseconds, under 1e17 is microseconds and anything larger is nanoseconds. For 10 to 11 digit values you get seconds, for 13 digits milliseconds. Use the unit option to override.

What about the year 2038 problem?

It only affects systems that store seconds in a signed 32-bit integer. This tool parses values with BigInt and 64-bit dates, so 2147483648 and far larger values convert correctly.

Why is the local time different from what I expect?

The local row uses the display zone you selected, which defaults to your browser zone. Timestamps themselves are always UTC-based; only the wall-clock rendering changes with the zone and its daylight saving rules.

More tools in Date & Time →