DT Dev Tools

Timestamp Converter

Convert Unix timestamps in seconds, ms, µs or ns to dates in any time zone, and dates back to epoch. Live clock, ISO 8601, RFC 2822 and relative time.

🔒 Runs entirely in your browser — nothing is uploaded

Current Unix time
–
–

FormatValue (click to copy)

Date → timestamp

Was this tool useful? Rate it:

What Timestamp Converter does

Timestamp Converter translates Unix epoch values into human-readable dates and turns dates back into epoch values. Timestamps appear in logs, API payloads, database rows, cache records, scheduled jobs, and JWT claims such as exp, iat, and nbf. A live clock at the top shows the current Unix time in seconds and milliseconds, ready to copy into a test or a query.

Paste a number and the unit is detected automatically — 10 digits for seconds, 13 for milliseconds, 16 for microseconds (common in Python and PostgreSQL) and 19 for nanoseconds (Go, Prometheus, OpenTelemetry). Big values are handled with BigInt so nanosecond precision is not lost. You can also paste an ISO 8601 or RFC 2822 date string. The result table lists the date in the chosen time zone, ISO 8601 in UTC and with the zone's offset, RFC 2822 for email headers, the RFC 7231 format used in HTTP Date and Expires headers, a relative time such as "3 days ago", all four epoch units, the ISO week date, the day of the year and the UTC offset. Click any row to copy it.

Private browser-based workflow

All processing happens with in-browser JavaScript. The tool does not upload your text, tokens, URLs, snippets, or generated values to a server, and it does not require an account. That privacy model is important because small utilities often receive real API responses, configuration samples, logs, authentication data, or customer-shaped examples during troubleshooting. Keeping the work local reduces risk and also makes the tool feel instant because there is no network round trip.

Practical tips

Epoch values are always UTC; only their human-readable form depends on a time zone. When a log from a server in another region looks an hour off, select that region's IANA zone instead of guessing offsets — daylight-saving rules are applied for the exact date. Use the date picker in the same zone to build a timestamp for a test, such as midnight in Europe/Berlin. If a value converts to a date in 1970 or far in the future, it probably has the wrong unit; force the unit to check.

How to use

  1. Enter a timestamp or datePaste epoch seconds, ms, µs or ns, or an ISO 8601 / RFC 2822 date.
  2. Pick a time zoneChoose your local zone, UTC or any IANA time zone.
  3. Copy any formatClick a row to copy ISO 8601, RFC 2822, relative time or any epoch unit.

Frequently asked questions

How does it detect seconds, milliseconds, microseconds and nanoseconds?
By the number of digits: up to 11 digits are seconds, 12–14 milliseconds, 15–17 microseconds and 18–19 nanoseconds. You can also force a unit, and nanosecond values keep full precision.
Can I convert to a specific time zone?
Yes. Pick any IANA time zone such as America/New_York or Asia/Tokyo; the readable date, ISO 8601 offset, RFC 2822 date and the date picker all follow it, including daylight-saving time.
Can I paste a date instead of a number?
Yes. ISO 8601 strings such as 2024-07-02T00:00:00Z and RFC 2822 dates such as Tue, 02 Jul 2024 00:00:00 +0000 are converted to every epoch unit.
Is conversion uploaded?
No. It uses the browser Date and Intl APIs.