JWT Decoder

Paste a JWT token to read its header, payload and claims, see when it expires and verify its signature, all inside this tab.

JSON Web Token

Paste a token to decode it, or try an example.

The header and payload show here as you paste, with every claim explained.

Secret

Paste a token above, then its key here to check the signature.

Decode JWT online to see every claim in plain words, with exp, iat and nbf turned into dates in your own time zone.

Free with no sign-up, for access tokens, ID tokens and Bearer headers from OAuth, OpenID Connect, Auth0, Okta, Cognito and Entra ID.

  • Verifies HS, RS, PS, ES and EdDSA
  • Reads Bearer headers and JWKS
  • Tokens never leave this tab

How to decode a JWT token

Decode a JWT online, read what each claim means and check the signature, in three steps.

  1. Paste your JWT

    Paste a JWT, a Bearer header or a whole JSON response into the box. The header and payload decode as you type.

  2. Read the claims

    Claims lists every field with its meaning. exp, iat and nbf show as dates, with how long until the token expires.

  3. Verify the signature

    Paste the secret, a PEM public key or a JWKS under the token, and the signature is checked against it right away.

What is a JWT token?

A JWT, or JSON Web Token, is a short string that carries facts about a user or a request, such as who they are and when their access ends. It has three parts joined by dots: a header, a payload and a signature, each written in URL safe Base64, as RFC 7519 sets out.

The header names the signing algorithm, such as HS256 or RS256, and often a key ID called kid. The payload holds the claims. The signature is made from the first two parts with a key, so changing a single character of the header or payload makes the check fail.

Anyone can read a JWT, because Base64 is a way of writing data, not a lock. A key is only needed to check the signature or to sign a new token. In the box above, each part takes its own colour, so you can see where the header ends and the payload begins.

JWT claims and expiration

Registered claims have short names. iss is who issued the token, sub is the user it is about, aud is who it is meant for and jti is its unique ID. exp, nbf and iat are times: when it expires, when it starts to count and when it was issued.

Those times are NumericDate values, the seconds since 1 January 1970 in UTC, such as 1767225600. Each one shows here as a date in your time zone and in UTC, and the line under the token says whether the JWT is expired, not valid yet or still good, counting down live.

Writing a time in milliseconds is a common bug that makes a token last for thousands of years, so values that look like milliseconds get a warning. Claims from OpenID Connect and from providers, such as email, scope, roles, azp and tid, are explained in plain words too.

JWT signature verification

To verify a JWT, the signature is worked out again with your key and compared. HS256, HS384 and HS512 use a shared secret, typed as text or as Base64. RS, PS and ES algorithms and EdDSA use a public key, pasted as PEM, an X.509 certificate, a JWK or a whole JWKS.

With a JWKS, the key whose kid matches the token's header is picked for you, so the key set from a provider's jwks.json endpoint works as it is. A private key works too: only its public part is used, and like every key here it is never stored or sent anywhere.

A token with alg set to none has no signature at all and is flagged. A JWE, with five parts instead of three, is encrypted rather than signed: its header is shown, and the page says why its payload cannot be read without the key it was encrypted for.

JWT debugger features

  • Bearer token decode

    Paste an Authorization header, a cookie or a JSON response, and the JWT inside it is found and read.

  • JWT expiration

    exp, iat and nbf become dates in your time zone and UTC, with a live countdown to the JWT expiry.

  • JWT validator

    Checks HS256 to HS512, RS256, PS256, ES256 and EdDSA signatures with Web Crypto, in this tab.

  • JWKS and PEM keys

    Paste a jwks.json, a JWK, a PEM public key or a certificate. The key matching kid is picked.

  • JWT encoder

    Write the header and payload as JSON, pick an algorithm and create a JWT token with your own key.

  • JWT secret key generator

    Make a random 256, 384 or 512-bit secret for HS256 and up, or a new RSA, EC or Ed25519 key pair.

Is this JWT decoder safe?

A live JWT works like a password, so every token is decoded and checked on your device and never sent.

  • Processing

    Decoding, signature checks and signing all run on your browser's Web Crypto. No token goes online.

  • Storage

    The token is kept only until this tab closes, so a refresh does not lose it. Keys are never saved.

  • Account

    A free JWT decoder and encoder with no sign-up, no email and no limit on how many tokens you check.

JWT questions

Is a JWT token encrypted?

No. A normal JWT is only signed, so anyone can read its payload. An encrypted token is a JWE, with five parts instead of three.

Can a JWT be decoded without the secret?

Yes. The header and payload are plain base64url that anyone can read. The secret is only needed to prove the token is genuine.

What does a JWT token look like?

Three runs of letters and digits joined by dots, like eyJhbGci.eyJzdWIi.SflKxwRJ. The header and payload both start with eyJ.

What is jti in a JWT?

The JWT ID: a unique value for this one token, so a server can spot a token used twice or put a single token on a block list.

HS256 vs RS256: what is the difference?

HS256 signs and checks with one shared secret. RS256 signs with a private key and checks with a public key that anyone can hold.

Is JWT the same as OAuth?

No. OAuth 2.0 is a way to grant access, and a JWT is a token format. Many OAuth servers issue their access tokens as JWTs.

How do I decode a JWT in JavaScript?

Install jwt-decode from npm and call jwtDecode(token). It reads the payload only and never checks the signature.

How do I decode a JWT in Python?

With PyJWT, call jwt.decode(token, options={"verify_signature": False}). Pass the key and algorithms instead to verify it.

Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.