Skip to content

JWT Decoder

Paste a JWT to decode it in your browser; the token is never sent to a server. Read its claims in plain words and verify the signature.

Reading what a token holds

Before

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkphbmUgRG9lIiwiaXNzIjoiaHR0cHM6Ly90b29sc3ktaHViLmNvbSIsImF1ZCI6InRvb2xzeS1kZW1vIiwiaWF0IjoxNzM1Njg5NjAwLCJleHAiOjQxMDI0NDQ4MDB9.5UFXpLQKl87jOwGRAZTL002i8cj2BQD1GoTcNVMgltk

A sample token

After

{ "sub": "1234567890", "name": "Jane Doe", "iss": "https://toolsy-hub.com", "aud": "toolsy-demo", "iat": 1735689600, "exp": 4102444800 }

Its payload, read in your browser

Decoding happens in your browser. The token is never uploaded, logged or stored.

Paste a token above, or load the sample token. The sample is signed with the secret your-256-bit-secret so you can try verification.

How to use the JWT decoder

  1. Paste a token into the box. You can include the "Bearer " prefix from an Authorization header; it is removed for you. The header and payload appear as formatted JSON right away.
  2. The Claims card turns exp, iat and nbf into local dates and tells you how long ago or how soon each one is. Expired tokens are marked in red. To convert any other Unix time, use Unix Timestamp Converter.
  3. To check the signature, enter the shared secret for HS256, HS384 or HS512 tokens. For RS, PS and ES tokens, paste the public key in PEM format (the block that starts with BEGIN PUBLIC KEY). Click Sample token to try it with a known secret.

Frequently asked questions

Is my token sent to a server?

No. Decoding and signature checks run in your browser with JavaScript and the Web Crypto API. The token and the key never leave this tab, which matters when you paste production tokens.

How is this different from jwt.io?

It does the same core job: decode, read claims and verify signatures. It also spells out expiry in plain words and works the same on a phone. Nothing is logged or stored.

What is the difference between decoding and verifying a JWT?

Decoding only reads the header and payload, which are base64url text anyone can open, so a decoded token is not proof of anything. Verifying recomputes the signature with the secret or public key and checks that it matches. Trust a token only after it verifies and its exp date has not passed.

Which algorithms can it verify?

HS256, HS384, HS512, RS256, RS384, RS512, PS256, PS384, PS512, ES256, ES384 and ES512 (ES512 needs a browser with P-521 support). Tokens with alg set to none are flagged as unsigned.

Can I verify a JWT signature offline?

Yes. The check runs in your browser with the Web Crypto API and sends nothing, so once this page has loaded it works with the network off. Enter the shared secret for an HS token, or the public key in PEM (BEGIN PUBLIC KEY) for RS, PS and ES. It does not fetch keys from a JWKS URL, so paste the key yourself.

What does each claim in the JWT payload mean?

iss is the issuer that created the token. sub is the subject, usually a user ID. aud is the audience, the API or app the token is meant for. exp is the time after which it must be rejected. nbf is the time before which it is not valid yet. iat is the time it was issued. The three times are Unix seconds. These are the registered claims from RFC 7519; any other field in the payload is defined by the app that issued the token.

Sources: IETF, RFC 7519, section 4.1: registered claim names

Why does it say my token has 5 parts?

A token with 5 parts is an encrypted JWE. Its payload cannot be read without the decryption key, so this tool only handles signed tokens with 3 parts.

More guides