JWT decoder and verifier
Paste a JSON Web Token, with or without "Bearer" in front, to see its header and payload as formatted JSON and when it expires. Type the secret or paste the public key to check its signature.
Header, payload and expiry
A JSON Web Token (RFC 7519) has three parts: a header, a payload and a signature. The header and payload show side by side as JSON, every claim exactly as written, each with a copy button. Above them: the algorithm, and when the token expires or expired, read from its exp and nbf claims. Below them: its iat, nbf and exp times in UTC, in your own time zone and from now.
Check the signature
Type the secret for HS256, HS384 or HS512, or paste the public key, as PEM (-----BEGIN PUBLIC KEY-----) or as a JWK, for RS, PS, ES and EdDSA tokens. The check says whether the signature is valid. The key is used only while the page is open, and never saved.
Make one too
The JWT encoder, below the decoder, makes a token from a JSON payload, signed with a secret or a private key.
Private: on your device
Tokens are read, checked and signed in your browser, by Web Crypto. Nothing is sent anywhere, and neither tokens nor keys are saved: leaving the page forgets them.
Questions
Does it verify the signature?
Yes, when you give it the key: the secret for HMAC tokens (HS256…), or the public key for RSA, ECDSA and EdDSA ones. Without a key it shows what the token says, not whether it is genuine.
Is my token or key sent anywhere?
No. Both stay in your browser, and neither is saved: leaving the page forgets them.
Can it read an encrypted token (JWE)?
No: an encrypted token has five parts instead of three, and its content can only be read with the key it was encrypted for. It says so when you paste one.