AI-assisted

JWT Security Analyzer

Paste a JSON web token. It is decoded in your browser and checked for weak algorithms, missing expiry and data that should not be in it.

· Decoded in your browser. The token never leaves this page.

How this differs from a decoder

A JSON web token is three pieces of text joined by dots: a header, a payload and a signature. The first two are only encoded, not encrypted, so anyone holding the token can read them. A decoder shows you what is inside. This tool also judges it: whether the signing algorithm is safe, whether the token ever expires, whether it says who it is for, and whether the payload carries data that should not travel in something readable.

Why it runs in your browser

A token is a credential. Pasting a live one into a website that sends it to a server is how tokens leak. Here the decoding happens on this page. Only a short list of facts is sent for the checks: the algorithm name, the names of the claims and the expiry times. The token, the signature and the values in the payload stay with you. The decoded view you see is built by your browser.

What it cannot check

It does not verify the signature, because that needs your key, which you should not paste anywhere. It cannot tell whether your server validates the algorithm, the audience or the expiry, and that is where most real JWT vulnerabilities live. Use the findings as a checklist for the code that accepts the token.

How this tool works

  1. Rules run first. Fixed checks produce the findings, each with the evidence that triggered it, so you can verify every one.
  2. AI explains. An AI advisor reads the findings and writes the fix plan. That section is labelled, so you always know which part is which.
  3. Nothing is kept. Your input is used for the check and then discarded.

Questions and answers

Is a JWT encrypted?

Usually not. A standard signed token is only base64url-encoded, so its contents are readable by anyone who has it. The signature stops it being changed, not read.

Is it safe to paste a token here?

The token is decoded in your browser and is not sent to our server. Even so, treat any production token as a secret and prefer a test token.

What is wrong with the none algorithm?

It means the token is unsigned. A server that accepts it lets anyone write their own token and be believed.

How long should a token last?

Access tokens should last minutes to an hour. Use a separate refresh token, which can be revoked, for longer sessions.

Should I put an email address in a token?

Only if the systems that receive it need it. Tokens end up in logs, browser storage and proxies, and everything in the payload can be read there.

Is HS256 insecure?

No, if the secret is long and random and only the issuer verifies tokens. It becomes a risk when the secret is short or when several services share it, since any of them can then mint tokens.

Keep going