JWT Inspector Online

Decode and inspect JWT tokens. View all claims with expiry detection and timestamp formatting.

JWT TOKEN

When a JWT inspector is the right tool

Use this page to decode a compact JWT and read every header and payload claim in a table, with a color-coded token and time status based on its claims. Paste a token or click Load Sample. The view updates as you type, and the signature stays unverified.

Use cases

Reading all claims, including custom ones

The table shows every claim. Load Sample includes name as well as sub, iat, and exp. Copy on each card gives you the full JSON.

Checking the token time window

The payload card shows whether the token has expired, is not yet active, or has no numeric exp claim. The sample uses exp 9999999999 (20 November 2286 UTC). The card shows its expiration time and the remaining days.

Looking at the raw signature

The third segment is shown in full, with the note that verification requires the secret (or a public key) and is not performed here. The famous jwt.io-style signature on the sample is displayed as-is and is not checked against a key.

How inspection works

The token is trimmed and split into three parts. Header and payload are base64url-decoded (with a UTF-8 percent-encoding path and an atob fallback) and parsed as JSON. Time claims are converted with new Date(value * 1000).toISOString(). The color-coded line under the textarea is a simple split on dots and is shown whenever the box is not empty.

Example — the Load Sample token, decoded
Load Sample decodes to:

Header:  {"alg":"HS256","typ":"JWT"}
Payload: {"sub":"1234567890","name":"John Doe","iat":1516239022,"exp":9999999999}

iat is shown as 2018-01-18T01:30:22.000Z (1516239022)
exp is shown as 2286-11-20T17:46:39.000Z (9999999999)
Expiry badge: “Expires in …” with hours (no days unit)
The signature segment is displayed only; it is not verified.

The ISO timestamps are always UTC. They will not match a local-time reading of the same Unix value.

What this tool does not do

Signature verification and issuer or audience checks belong in the application accepting the token. Inspection runs in your browser. To mint a new HS256 token, use JWT Generator.

How to use JWT Inspector

  1. Paste a compact JWT, or click Load Sample.
  2. Read the color-coded token, then the header and payload tables and the signature block.
  3. Copy the header JSON, payload JSON, or raw signature segment. Use Clear to empty the input.

Frequently asked questions

Does this page verify the JWT signature?

No. The page states that “Signature verification requires the secret key and is not performed in the browser.” It only base64url-decodes the header and payload and displays the third segment as text. A time status only reflects the claims in the token. Verify the signature and the expected claims in the application that accepts it.

How is expiry status decided?

The tool reports expired when the current time reaches exp, or not yet valid when nbf is in the future. A numeric exp is shown as a UTC timestamp. Missing or non-numeric exp is flagged. These are claim checks only, and the signature is unverified.

How are claims displayed?

Every key in the header and payload is listed. exp, iat, and nbf that are numbers are shown as a UTC ISO-8601 string plus the raw numeric value, for example 2018-01-18T01:30:22.000Z (1516239022). Other values are JSON.stringify’d, so strings appear with quotes. Copy writes pretty-printed JSON for the header or the payload.

What counts as an invalid token?

The input is trimmed and split on “.”. It must have exactly three parts, and the first two must base64url-decode to JSON. Otherwise you see “Invalid JWT — token must have 3 parts separated by dots.” (The same message is used when the part count is right but the JSON is not.) A color-coded split of whatever segments are present is shown as you type, even when the token is invalid. Load Sample pastes a fixed demo token; Clear empties the box.

Is my token sent to a server?

No. Decoding runs in your browser. A JWT can still be a credential: do not paste a production access token if you would not be comfortable with it sitting in memory on this device. Closing the tab discards it.

Related tools and guides

References

  • RFC 7519 defines exp, nbf, and iat as NumericDate values (seconds since the Unix epoch). This page formats those three keys as UTC ISO timestamps when they are JSON numbers.
  • Inspecting a token is not the same as accepting it. A server must still verify the signature and any audience or issuer constraints.