Follow Us

JWT Decoder

Paste a JSON Web Token to decode its header and payload, check when it expires, and verify its signature — or create a new signed JWT. Your tokens and keys never leave your browser.

Tokens stay in your browser Instant decode HS · RS · PS · ES · EdDSA Expiry check Create JWTs
Decoded locally — nothing is sent to a server

Verify signature

Header · algorithm & token type


                    

Payload · data & claims


                    

How to Decode a JWT

See what’s inside a JSON Web Token, check whether it has expired and confirm its signature — without sending it to any server.

1

Paste your token

Paste the JWT into the box. A leading “Bearer ” is removed for you.

2

Read the header and payload

The decoded JSON appears instantly, with every claim explained and times shown in your time zone.

3

Check expiry and warnings

Badges show whether the token is valid or expired, and warnings flag risky settings like alg “none”.

4

Verify the signature

Enter the secret (HS256) or paste the public key (RS256, ES256 and more) to confirm the signature.

Decode

Instant, as you paste

Verify

13 algorithms

Expiry

Valid / expired badge

Keys

Secret, PEM or JWK

Create

Sign new JWTs

Warnings

Risky claims flagged

Privacy

Never sent to a server

Price

100% free

JWT Decoder Features

A complete JSON Web Token debugger for developers — private by design.

Instant decoding

The header and payload are decoded the moment you paste, with colour-coded token parts so you can see where each one starts.

Expiry at a glance

exp, nbf, iat and auth_time are shown as real dates in your time zone, with “expires in 2 hours” or “expired 3 days ago”.

Every claim explained

Standard claims like iss, sub, aud, jti and scope are labelled, so anyone on the team can read a token.

Verify any signature

Check HS256/384/512 with a secret, and RS, PS, ES and EdDSA tokens with a PEM public key, a JWK or a whole JWKS (matched by kid).

Security warnings

Flags alg “none”, missing expiry, times in milliseconds instead of seconds, and tokens issued in the future.

Create signed JWTs

Write a header and payload, add iat, exp or jti in one click, and sign with a secret or a test private key.

Random secrets

Generate a strong random HMAC secret with your browser’s secure random generator.

Truly private

Tokens, secrets and keys never leave your browser — important, because a JWT often grants access to an account.

Developer friendly

Copy the decoded header, payload or token in one click, and open a token you created straight in the decoder.

Standard JWT Claims Explained

The registered claims from RFC 7519 and what each one means.

ClaimNameWhat it means
issIssuerWho created and signed the token, often a URL
subSubjectWho the token is about — usually the user ID
audAudienceWhich app or API the token is meant for
expExpiration timeWhen the token stops being valid (Unix time in seconds)
nbfNot beforeThe token must not be accepted before this time
iatIssued atWhen the token was created
jtiJWT IDA unique ID, used to stop a token being replayed

JWT Signing Algorithms Compared

Which algorithm your token uses decides how it’s verified.

AlgorithmTypeVerify withTypical use
HS256 / HS384 / HS512HMAC with SHA-2The shared secretSingle apps where the same server signs and checks
RS256 / RS384 / RS512RSA (PKCS#1 v1.5)Public keyAuth providers like Auth0, Okta, Azure AD, Google
PS256 / PS384 / PS512RSA-PSSPublic keyNewer systems and open banking
ES256 / ES384 / ES512ECDSA (P-256, P-384, P-521)Public keyApple, mobile and IoT — smaller signatures
EdDSAEd25519Public keyModern, fast signatures
noneUnsigned—Never accept in production

Who Uses a JWT Decoder?

Everyday debugging for web, mobile and API developers.

Debug logins

See why a user’s session expired or was rejected.

Test APIs

Read the access token your API client is sending.

Check roles & scopes

Confirm the claims your app relies on are present.

Security reviews

Spot weak algorithms and missing expiry times.

Verify signatures

Make sure tokens were signed with the right key.

Mobile apps

Inspect tokens from Firebase, Cognito and Auth0.

Write tests

Create signed tokens for unit and integration tests.

Learn JWTs

See exactly how a token is built and signed.

Tips for Working With JWTs

  • Never trust an unverified token. Anyone can decode and edit a JWT — only the signature proves it’s genuine.
  • Don’t put secrets in the payload. The payload is only encoded, not encrypted, so anyone can read it.
  • Keep expiry short. Access tokens usually last 5–60 minutes, with refresh tokens for longer sessions.
  • Pin the algorithm. Your server should only accept the algorithm it expects, never “none”.
  • Use long HMAC secrets. At least 32 random bytes for HS256 — click the dice to make one.
  • Times are in seconds. exp, iat and nbf are Unix timestamps in seconds, not milliseconds.

Private by Design

Everything happens in your browser. What you paste and any files you open are never sent to Toolszu or anyone else, and nothing is stored.

That matters for developer tools: tokens, keys and links often contain sensitive data. Here they stay on your device.

Frequently Asked Questions

Answers about decoding, verifying and creating JSON Web Tokens.

A JSON Web Token (JWT) is a compact, signed string used to prove who a user is or what they’re allowed to do. It has three Base64URL parts separated by dots: a header (the algorithm), a payload (the claims) and a signature.

Paste the token into the box. The header and payload are decoded instantly and shown as formatted JSON, with time claims converted to readable dates. A “Bearer ” prefix is removed automatically.

Yes. Decoding and verification happen entirely in your browser — the token, secrets and keys are never sent to Toolszu or anyone else. Still, treat live production tokens like passwords and avoid pasting them into tools that upload them.

Yes. A normal JWT is signed, not encrypted, so anyone can decode the payload. Never store passwords or other secrets in it. Encrypted tokens (JWE) have five parts and can only be read with the decryption key.

For HS256, HS384 or HS512, enter the shared secret. For RS, PS, ES or EdDSA tokens, paste the issuer’s public key as PEM, a JWK or a JWKS. The tool shows “Signature verified” or “Invalid signature”.

Most identity providers publish their keys as a JWKS at a URL such as /.well-known/jwks.json. Open it, copy the JSON and paste it in — the right key is picked using the token’s kid.

Look at the badge under the token: it shows “Valid — expires in …” or “Expired … ago”, based on the exp claim and your device’s clock. The claims table shows the exact date and time.

The nbf (not before) claim is in the future, or the server and your device clocks are out of sync. Most libraries allow a few seconds of clock skew.

Yes. Open Create JWT, edit the header and payload, add iat, exp or jti with one click, and sign with a secret or a test private key. The signed token updates as you type.

It means the token isn’t signed at all. Anyone could have created or changed it, so servers should always reject “none”.

HS256 uses one shared secret to sign and verify, so every service that checks tokens must know the secret. RS256 signs with a private key and verifies with a public key, so you can share the public key safely.

Yes, it’s completely free with no sign-up and no limits.

Related Free Tools

Decode Your JWT Now

Paste a token and see what’s inside in seconds. Free, private and no sign-up.

Start Now

Ad Blocker Detected

Toolszu provides free access to over 1,000 tools. We rely on minimal ads to maintain our servers and keep improving the site for everyone.

Please pause or disable your ad blocker to continue using Toolszu.

or
Go ad-free — from $19/year

Already have a plan? Sign in