JWT decoder and verifier

Paste a token: its header and payload are displayed, its timestamps translated, and its signature verified with the secret or the public key.

Paste the token (with or without “Bearer”). It is decoded in your browser and sent nowhere.

Send with onlyU — Your recipient gets a link they can open only once, then the link is gone. onlyU opens in a new tab with the secret already filled in: all you have to do is create the link. Free, no sign-up. How does it work?

Verify the signature

HS256, HS384, HS512: enter the shared secret. RS, PS, ES and EdDSA: paste the public key, as PEM (“BEGIN PUBLIC KEY”) or JWK.

Computed in your browser. Nothing is sent unless you choose onlyU.

Decode a JWT and read what it says

A signed JWT is made of three dot-separated parts: a header, a payload and a signature. Paste the token as you have it, with or without the Bearer prefix of an Authorization header: the JWT decoder shows the header and the payload as indented JSON, displays the announced algorithm (alg) and converts the timestamps to your local time. Decoding and verification run in your browser, with Web Crypto.

A five-part token is a JWE, an encrypted token: the tool tells you so, since only whoever holds the decryption key can read its content.

What the timestamps mean

JWT timestamps count the seconds elapsed since 1 January 1970 UTC. The tool converts them and keeps the raw value in brackets:

ClaimMeaning
expExpiration time: from this moment on, the token must be rejected.
nbf“Not before”: the token is accepted only from this moment on.
iatWhen the token was issued.
auth_timeWhen the user actually authenticated (OpenID Connect), sometimes long before the token was issued.

The status compares these times with your computer's clock: valid, expired, not yet valid, or no expiry when the token carries no exp. Servers often allow a small leeway for clock skew, so a token that expired a few seconds ago may still be accepted there.

Verify the JWT signature: which key to paste

The verification field adapts to the algorithm in the header:

  • HS256, HS384, HS512: the shared secret used to sign. Choose whether it is written as text or as Base64url, depending on how your application stores it.
  • RS256 to RS512 and PS256 to PS512: the issuer's RSA public key.
  • ES256, ES384, ES512: the elliptic-curve public key (P-256, P-384, P-521).
  • EdDSA: the Ed25519 public key.

Paste a public key as PEM, the block starting with -----BEGIN PUBLIC KEY-----, or as a JWK. If the issuer publishes a JWKS file, copy the object from the keys array whose kid matches the one in the header. An X.509 certificate reduces to its public key with openssl x509 -in cert.pem -pubkey -noout, and an RSA key in BEGIN RSA PUBLIC KEY format converts with openssl rsa -RSAPublicKey_in -in key.pem -pubout.

A valid signature proves that the token comes from the key holder and has not been altered. A token with alg: none is unsigned: the tool never reports it as valid. To accept a token, a server also checks the issuer, the audience and the timestamps; our guide Understanding and verifying a JWT walks through every check. To sign your own HS256 tokens, the secret key generator provides a random secret of the right length.

Sharing a token with a colleague

A JWT is a bearer token: whoever holds it can use it, until it expires, with no further proof. Pasted into a chat or a ticket, it stays readable in the history, notifications and backups long after the conversation. “Send with onlyU” sends the token itself: the kit hands it to onlyU from one tab to another in your browser, never in an address and never through the kit's server. onlyU encrypts it in your browser and creates a link that opens only once, valid for 24 hours, then disappears.

Frequently asked questions

Is my token sent anywhere?

No. It is decoded and verified by your browser, with Web Crypto; the page is not allowed to make network requests. It only goes to onlyU if you click “Send with onlyU”.

Is the content of a JWT encrypted?

No: the header and the payload are simply Base64url-encoded, readable by anyone who holds the token. The signature prevents changes, not reading. Never put confidential data in it.

Which key do I use to verify the signature?

For HS256, HS384 and HS512, the shared secret used to sign. For RS, PS, ES and EdDSA, the issuer's public key, often published in a JWKS file (/.well-known/jwks.json): paste the key as JWK or PEM.

What does alg “none” mean?

That the token is unsigned: anyone can create one. A server must reject these tokens and accept only the algorithms it expects. The verifier never reports them as valid.

How do I share a token with a colleague?

A token grants access until it expires, like a password. “Send with onlyU” delivers it through a link that opens only once, rather than in a chat where it would stay readable.