Read and check a JWT without handing it to anybody JOT
Reads a JSON Web Token in this tab, says what is wrong with it, and checks the signature against your key or secret. Neither the token nor the key leaves the browser.
The token
What is wrong with it, if anything
What it claims
Check the signature
The three parts, as they are
Header
Payload
Signature
How it works
The first two parts are not encrypted, and never were
A JSON Web Token is three pieces of base64 with dots between them. The header and the payload are base64, not ciphertext: anybody holding the token can read every claim in it without a key, without a tool, and without your permission. That is by design. The signature exists to prove the claims were not altered, not to keep them private.
Which is exactly why pasting a live token into a decoding website is such a bad idea. The token is the credential. Whoever holds it is the account it was issued to, until it expires. Most of those sites are run by honest people, and every one of them is a single breach away from holding a pile of other people's live sessions, with the timestamps and source addresses to go with them. This does the same reading here, in the tab, with nowhere to send anything.
What actually goes wrong with tokens
algset tonone. The token is asking the other end to skip verification entirely. A verifier that honours it accepts anything anyone writes.- A symmetric algorithm where an asymmetric one belongs.
The classic confusion attack: a token signed
HS256arrives at a server expectingRS256, and the server helpfully uses its public key as the HMAC secret. The public key is public, so the attacker can sign with it. - An expiry already past, or a token not valid yet. Timestamps are turned into dates here, because a ten-digit number is not something anybody reads correctly by eye.
- No expiry at all. The token is good until somebody changes the key, which in practice means for ever.
- A
kidorjkupointing outward. Both tell the verifier where to fetch the key. A verifier that follows them without restriction can be pointed at a key the attacker controls. - Claims carrying more about a person than a session needs. Email addresses, names, roles, internal identifiers, all of it readable by anyone who intercepts the token or finds it in a log.
Checking the signature, and doing it safely
Reading a token tells you what it says. Verifying it tells you whether to believe it, and that needs the key: the shared secret for an HMAC algorithm, or the public key for RSA or ECDSA. Both can be pasted here and the verification runs in the browser with the browser's own cryptography.
That distinction matters more than it sounds. Pasting a token into a remote decoder is bad; pasting the signing secret into one is handing over the ability to mint tokens for every account on the system, for as long as the key lives. There is no version of that which is acceptable, and it is a thing people do daily because the box was there.
A token that fails verification here is a token the server would also reject, which is useful when you are debugging why something is being turned away. A token that passes is signed by whoever holds that key, which is a narrower statement than “this token is fine”: an expired token with a perfect signature is still expired.
For the layer underneath, DECODE unwraps whatever the token turns out to be wrapped in, and EPOCH works out what a bare timestamp means. For the transport it arrived over, CERTLENS reads the certificate.
The guide: JWT kid not found in the JWKS
Questions people ask about JOT
Is it safe to paste a live token here?
Safer than anywhere else, because nothing leaves the tab: the decoding, the audit and the signature check all run in your browser. Turn the network off and the page works exactly the same. That said, a token in a browser tab is still a token on a screen, so treat the room you are in accordingly.
What does an algorithm of “none” mean?
That the token asks to be accepted without a signature. It exists in the specification for tokens that are already protected some other way, and it has caused a long line of vulnerabilities in libraries that honoured it by default. If you did not issue a token like that, treat it as an attack rather than a mistake.
What is the algorithm confusion attack?
An issuer signs with a key pair, so verifiers hold its public key. An attacker changes the header to HS256 and signs a token using that public key as if it were a shared secret. A verifier that picks its algorithm from the token rather than from its own configuration will accept it. That is why an HS token from an issuer that normally uses RS or ES is flagged here.
Why is my email flagged?
Because the payload of a token is plain text to everyone who handles it: every proxy log, every browser it is stored in, and anything it is ever pasted into. Names, addresses and phone numbers in a token travel further than people expect.
Can it check the signature on any token?
It checks HS256, HS384 and HS512 with a shared secret, and RS, PS and ES with a public key, using your browser’s own cryptography. EdDSA is not supported by every browser’s crypto yet, and the page says so rather than guessing.
Is a JSON Web Token encrypted?
No. A token is three pieces of base64 with dots between them, and the first two, the header and the payload, are not encrypted. Anyone holding the token can read every claim in it.
That is also why pasting a live token into a decoding website is a bad idea: the token is the credential. JOT reads it here, and the signature check against your key or secret happens in this tab too.
Doing this often? OBSCURA Umbra edits the service that issues or checks the tokens, and runs JavaScript, TypeScript and Python in a sandbox. Everything is US$5 a month or US$48 a year.