JWT Security Analyzer

Paste a token you own, set your policy for issuer, audience and lifetime, verify it with your key and get prioritised findings with fixes based on RFC 8725.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste the token

    Paste a JWT, with or without the Bearer prefix.

  2. 2
    Set your policy

    Choose the token type, maximum lifetime, expected issuer and audience.

  3. 3
    Verify the signature

    Optionally paste your secret, public key, certificate or JWK.

  4. 4
    Read the findings

    Start with critical and high items and follow each fix.

  5. 5
    Export the report

    Download or print the scored report for your ticket.

  6. 6
    Make test tokens

    Use the second tab to sign fixtures with your own keys.

About this tool

Decoding a JWT shows what it says; it does not show whether the token, or the system that issued it, follows good practice. Most real-world JWT problems are configuration mistakes: tokens that never expire or live for a month, missing audience claims that let one API accept tokens meant for another, keys fetched from URLs inside the token, personal data that ends up in logs, and HMAC secrets copied from a tutorial. This analyzer reads a token and checks it against the advice in RFC 8725 and the claim rules of RFC 7519 and OpenID Connect. You set your expected issuer, audience, token type and maximum lifetime, optionally verify the signature with your own secret or public key, and get a score, a grade and a sorted list of findings, each with a short explanation and a concrete fix. A second tab signs test tokens with your own keys for unit tests.

Header checks

alg none (an unsigned token) is critical. A missing or unregistered alg is flagged. HMAC algorithms get a note that every verifier can also mint tokens. An embedded jwk, or a jku or x5u URL, is high risk because a careless verifier may trust a key chosen by whoever made the token. An x5c chain is only safe if validated to a pinned root. A kid containing path separators, quotes or dots hints that it is used in a file path or database query. Unusual typ values, crit headers and a zip header on a signed token are noted. An RSA signature shorter than 256 bytes means a key under 2048 bits.

Claim checks

Missing exp is high risk, and expired tokens are noted. Lifetime is compared with your policy: by default 60 minutes for access and ID tokens and 30 days for refresh tokens. Issued-at in the future, not-before in the future, exp in milliseconds and dates written as strings are caught. Missing or mismatched iss and aud, wildcard or very wide audiences, a missing nonce in an ID token, a missing sub and broad scopes such as admin follow. Claim names like password, secret, ssn, card or iban are high risk because JWS payloads are only encoded, not encrypted; email, phone and address are noted as personal data.

Signature and secrets

Paste an HMAC secret, a public key PEM, a certificate or a JWK to verify the signature with WebCrypto. A failed check becomes a critical finding. When you paste an HMAC secret, its length is compared with the minimum in RFC 7518 (32 bytes for HS256, 48 for HS384, 64 for HS512) and it is matched against a short list of placeholder secrets from tutorials. Only the secret you type is examined; the tool does not guess or try secrets.

Score and report

Each finding has a weight: critical 40, high 20, medium 10, low 4 and info 0, subtracted from 100, giving grades A to F. Download or print the report for a ticket or review.

Limits

The analyzer judges one token, not your verifier: a perfect token can still be accepted by a library configured to allow alg none or to ignore the audience, so test the verifier as well. Encrypted tokens (JWE) cannot be read without the private key. Use it only with tokens and keys you are allowed to handle, and remember that a token pasted anywhere could be replayed until it expires.

Worked example

A developer pastes an access token signed with HS256. The policy expects issuer https://id.example.com, audience orders-api and a 60-minute lifetime. The token's audience lists four APIs including admin-api, it lives for 30 days, it carries an email and a password claim, and the scope contains admin. With the secret your-256-bit-secret entered, the signature verifies, but the secret is flagged as a known placeholder (critical) and as only 19 bytes where HS256 needs 32 (high). The final score is 0 out of 100, grade F. After switching to a random 32-byte secret, a 15-minute lifetime, a single audience and no password claim, the same check gives 96, grade A, with only the HMAC note and the missing jti left.

Quick facts

Frequently asked questions

Is this a JWT decoder?

It decodes too, but its purpose is the security review. For a plain decode or signature check, the existing JWT decoder and debugger tools on the site are simpler.

Does the tool try to crack my secret?

No. It only rates the secret you type, by length and against a short list of well-known placeholders, and uses it to verify the signature.

Why is a missing audience a problem?

Without aud, any API that trusts the same issuer will accept the token, so a token stolen from a low-value app can be used against a high-value one.

What lifetime should access tokens have?

Commonly 5 to 60 minutes, with refresh tokens for longer sessions. Set your own policy in the tool.

Can I check ID tokens from OpenID Connect?

Yes. Choose ID token as the type; the tool then also checks nonce and treats a missing audience as high risk.

Is my token sent anywhere?

No. Analysis and verification run in the page. The token is kept as a draft on this device; clear it when you are done.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages