Developer ToolsA little help for every day

Search by name or task, such as JSON or percentage.

Developer Tools

JWT Decoder and Signature Verifier

Decode a JSON Web Token's header and payload, see exp and iat in local time and UTC, and verify HS256, RS256, PS256, ES256 or EdDSA signatures in your browser.

View all tools
ResultUpdates as you type
AlgorithmHS256
TypeJWT
Expiry statusValid (not expired)
SignatureNot checked (enter a key to verify)
Header
{
  "alg": "HS256",
  "typ": "JWT"
}
Payload
{
  "sub": "1234567890",
  "name": "Alice Smith",
  "role": "admin",
  "iat": 1767225600,
  "exp": 1893456000
}
ClaimMeaningLocal timeUTC
expExpiry time2030-01-01 00:00:00 (UTC+00:00)2030-01-01T00:00:00Z
iatIssued at2026-01-01 00:00:00 (UTC+00:00)2026-01-01T00:00:00Z

Decoding and verification run locally in your browser; the token and key are never uploaded.

How to use JWT Decoder and Signature Verifier

Paste a token, with or without the Bearer prefix, to see its header, payload and time claims straight away. To check the signature, add the shared secret for HS algorithms, or a PEM public key or JWK for RS, PS, ES and EdDSA.

  1. Paste the tokenPaste a JWT starting with eyJ…; an Authorization: Bearer prefix and any line breaks are stripped automatically.
  2. Read the claimsCheck the decoded header and payload, the expiry status and the table of exp, nbf and iat in local time and UTC.
  3. Verify the signatureEnter the secret (text, Base64 or hex) or a public key; Signature then shows Valid, Invalid or why it could not be checked.

What the decoder does with your token

A JWT is three Base64URL segments separated by dots: header, payload and signature. The decoder strips any Bearer prefix and whitespace, decodes the first two segments as UTF-8 JSON and shows them formatted, so names with accents or non-Latin scripts display correctly. Time claims (exp, nbf, iat, auth_time and updated_at) are listed in local time and UTC, and the expiry status tells you whether the token is valid now, expired or not yet valid. A five-part token is a JWE, which is encrypted and cannot be read without the private key, and alg none is flagged because such tokens are unsigned.

Signature verification options

HS256, HS384 and HS512 use a shared secret; set HS secret format to Text, Base64/Base64URL or Hex to match how the secret was issued. RS256/384/512, PS256/384/512, ES256/384/512 and EdDSA need a public key, either a PEM block that starts BEGIN PUBLIC KEY or a JWK. If you paste a JWK Set, the key whose kid matches the token header is used. Private keys, PKCS#1 keys and certificates are rejected with a hint about what to paste instead. The sample token is signed with your-256-bit-secret: enter it and Signature changes to Valid.

Accuracy and data handling

Validate the result with your project's own tests and runtime rules before using it in production. The calculation runs in your current browser; the tool code does not send the input to a processing API.

Often Used Together

Next step

FAQ

Is it safe to paste a production JWT here?

Decoding and verification run locally in your browser, using the Web Crypto API for signatures, and the token and key are not uploaded. Even so, treat live tokens like passwords and use expired or test tokens where you can.

Why does the signature show Invalid?

Usually the secret is wrong, the secret format is wrong (a Base64 secret read as text, for instance) or the token was changed after signing. HS secrets must match exactly, including case and spaces.

Can it read an encrypted JWE?

No. A JWE has five parts and an encrypted payload, so it needs the recipient's private key. The decoder recognises five-part tokens and says so instead of showing unreadable output.

Is a token with alg none valid?

It has no signature, so anyone can forge its contents and a server should always reject it. The decoder shows a warning and will not try to verify such a token.

More Developer Tools

Related tools