Integration Lab JSON Tools

JWT Decoder

Paste a JSON Web Token to read its header and claims, see when it expires, and check its signature with your secret or public key.

Token

Empty

Check the signature

Not checked

Header


          

Payload


          

Times and claims

How to use the JWT Decoder

  1. Paste the token — with or without the Bearer in front of it.
  2. Read the header, the payload and the times it was issued and expires.
  3. To check the signature, paste the shared secret (HS256) or the public key (RS256, ES256) under Check the signature.

Questions

Why can it read a token without the secret?
A JWT's header and payload are only Base64URL-encoded, not encrypted, so anyone holding the token can read them. The signature is what proves the token wasn't changed, and checking it needs the secret or the public key.
Which signatures can it check?
HS256, HS384 and HS512 with the shared secret; RS256, RS384, RS512, PS256, PS384 and PS512 with an RSA public key; and ES256, ES384 and ES512 with an EC public key — as PEM (-----BEGIN PUBLIC KEY-----) or as a JWK.
Is it safe to paste a real token?
The token is decoded in your browser and never sent or saved. Still, treat a live token like a password: anyone who has it can use it until it expires.