09 / DevOps / timestamp

Timestamp Tools

Unix timestamp to human date and back.

ReadyLocal processing
09 · Workspace

How to use

  1. 01To convert a Unix timestamp, paste it into the Unix → Date field. Values are read as seconds unless they are larger than 100,000,000,000, in which case they are read as milliseconds.
  2. 02Read the UTC time, the ISO 8601 string, your local time and a relative description such as 3 days ago. Press Copy ISO to copy the ISO string.
  3. 03To go the other way, type a date such as 2026-01-01T00:00:00Z into Date → Unix to get the epoch value in seconds and milliseconds, plus a UTC date string. Press Copy seconds to copy the result.
  4. 04Watch the live Current unix time clock, or press Use now to load the current time in seconds into the converter.

What is this tool?

Converts between Unix epoch timestamps and human-readable dates. A timestamp in seconds or milliseconds is shown in UTC, as an ISO 8601 string, in your browser's local time zone and as a relative time. A date string is converted back to epoch seconds and milliseconds. A live clock shows the current Unix time in seconds. Conversion runs in your browser, and nothing is stored or sent.

Unix timestamp in seconds vs milliseconds

A Unix timestamp counts time since 1970-01-01T00:00:00Z. Unix tools, JWT exp and iat claims, and most databases use seconds. JavaScript's Date.now(), Java's System.currentTimeMillis() and many JSON APIs use milliseconds. A value with 10 digits, such as 1735689600, is seconds and means 2025-01-01T00:00:00.000Z. The same moment in milliseconds has 13 digits: 1735689600000.

The converter treats any value above 100,000,000,000 as milliseconds and anything smaller as seconds. This detects modern values correctly, because a seconds value would not reach that size until the year 5138. Millisecond values from before March 1973 fall below the cutoff and are read as seconds. Microsecond and nanosecond timestamps, with 16 or 19 digits, are not detected, so divide them down to milliseconds first.

How date strings are parsed (and the time zone trap)

The Date → Unix field uses the browser's own date parser. ISO 8601 with an explicit zone is the safest input. Both 2026-01-01T00:00:00Z and 2026-01-01T00:00:00+00:00 convert to 1767225600 everywhere.

Be careful with strings that have no zone. A date-only value such as 2026-01-01 is read as midnight UTC, but a date and time without a zone, such as 2026-01-01T00:00, is read as local time. In New York that gives a result five hours later than the UTC version. Add Z or an offset whenever you build test data that must match across machines.

The Year 2038 problem

Systems that store Unix time as a signed 32-bit integer can only count up to 2,147,483,647 seconds, which is 2038-01-19T03:14:07Z. One second later the value overflows and can wrap to a date in 1901. Paste 2147483647 and 2147483648 into the converter to see the boundary. If your code, database columns or file formats still use 32-bit time, test dates past January 2038 before they reach production.

Common use cases

  • Reading epoch timestamps in log files and database columns
  • Checking JWT exp, iat and nbf claims to see when a token expires
  • Writing time-based test assertions and fixtures with exact epoch values
  • Checking whether an API returns seconds or milliseconds
  • Testing boundary dates such as the 2038 overflow

FAQ

How do I convert a Unix timestamp to a date?

Paste it into the Unix → Date field. The UTC time, ISO 8601 string, local time and relative time appear immediately.

How can I tell if a timestamp is in seconds or milliseconds?

Current timestamps in seconds have 10 digits, and in milliseconds they have 13. The converter treats values above 100,000,000,000 as milliseconds automatically.

Which time zone is used?

Results are shown in UTC and in your browser's local time zone. The Date → Unix side reads zone-less date-times as local time, so add Z for UTC.

How do I get the current Unix timestamp?

Read the live Current unix time clock at the top, which shows seconds, or press Use now to load it into the converter.

Can I paste an ISO 8601 date?

Yes. Any date string your browser can parse works, and ISO 8601 with a Z or an offset gives the most reliable result.

What is the maximum 32-bit Unix timestamp?

2147483647, which is 2038-01-19T03:14:07Z. Systems that store time as a signed 32-bit integer overflow one second later.

Is anything stored or uploaded?

No. Conversion is local and stateless.