Decoding a JWT tells you what it claims; verifying it tells you whether to believe it. This free verifier checks an HS256 signature against the secret you provide, using the Web Crypto API in your browser, and reports a clear Valid or Invalid verdict along with the decoded header and payload.
Paste the token, type the secret (or paste a public key for RS256, which this tool checks as unsupported and explains), and the tool recomputes the signature and compares it byte for byte. It also checks the exp claim and warns about expired tokens. Everything runs locally — your token and secret never leave the device. To read a token first, the Base64 Decoder decodes single parts, and the SHA-256 Hash Generator shows the hash the signature is built on.
A token that fails in production but works in development is a classic signature problem, and guessing wastes hours. Either the secret differs between the two environments, the token was copied with a character missing, or the payload was edited after signing. Verifying the token here — with the exact secret from the failing environment — tells you in one second which of those three it is, before you change any code.
How to use
- Paste the JWT into the token box.
- Type the secret it was signed with (test secrets only — never a production secret).
- Click “Verify JWT” (or press Ctrl+Enter).
- Read the verdict: Valid, Invalid signature, or Expired — plus the decoded payload.
Why use Toolsvine
Verifying a token on a server-side site means sending the token and the secret to a stranger — if the secret leaks, anyone can forge tokens. Toolsvine verifies with Web Crypto in your browser, so the secret never leaves your device, and the tool is free with no account.
What does verifying a JWT actually check?
Verification recomputes the signature from the header and payload using your secret and compares it byte for byte with the token's third part. A match proves the contents were not changed since signing; a mismatch means the secret is wrong or the token was altered, and the tool reports Invalid signature either way.
The tool also checks the time claims: an exp in the past gives Expired, and an nbf in the future gives Not yet valid, even when the signature itself is correct. In production, always verify on your server as well — browser verification is for debugging, because a browser check alone never controls access to anything.
What verification actually checks
Verification recomputes the signature: it takes the header and payload exactly as they appear in the token, runs HMAC-SHA256 over header.payload with your secret, and compares the result with the token's third part. If a single character of the header or payload was changed, the recomputed signature will not match — that is the whole point of signing.
Verification recomputes the signature: it takes the header and payload exactly as they appear in the token, runs HMAC-SHA256 over header.payload with your secret, and compares the result with the token's third part. If a single character of the header or payload was changed, the recomputed signature will not match — that is the whole point of signing.
Verdicts and what they mean
| Verdict | Meaning | What to do |
|---|---|---|
| Valid | Signature matches and token is in date | Trust the claims (server-side too) |
| Invalid signature | Wrong secret, or the token was changed | Reject the token; check the secret |
| Expired | exp is in the past | Ask the user to sign in again |
| Not yet valid | nbf is in the future | Wait, or check the clock |
This tool verifies HS256 tokens, the shared-secret algorithm. RS256 tokens need the issuer's public key and a different algorithm; this page tells you so instead of giving a misleading answer. In production, always verify on your server — browser verification is for debugging, not for access control.
What does a worked example look like?
Verify the sample token with the secret your-test-secret and the tool recomputes the HMAC-SHA256 signature and compares it with the token's third part. If they match, the verdict is Valid; change one character of the payload and the same secret gives Invalid signature. The diagram below shows the verdict, the HS256 algorithm, and the expiry check.
Frequently asked questions
Why does verification fail with the right secret?
The usual cause is a copy-paste error — a trailing space or a missing character in the token or the secret. Also check that the token really uses HS256: the header's alg field must say HS256, and the secret must be the exact one used to sign it. The usual cause is a copy-paste error — a trailing space or a missing character in the token or the secret.
Does a valid signature mean the token is safe to trust?
It means the payload was not changed since signing and the signer knew the secret. It does not mean the claims are true, the user still has access, or the token was not stolen. Always check expiry, and revoke tokens server-side when a user signs out or changes a password. It means the payload was not changed since signing and the signer knew the secret.
Can this tool verify RS256 tokens?
Not yet — RS256 needs the issuer's public key (in JWK or PEM form) and this page only handles HS256 shared secrets. If you paste an RS256 token, the tool says so plainly instead of giving a wrong verdict. Not yet — RS256 needs the issuer's public key in JWK or PEM form, and this page only handles HS256 shared secrets. If you paste an RS256 token, the tool says so plainly instead of giving a wrong verdict.
What is the difference between decoding and verifying?
Decoding reads the header and payload — anyone can do that, because they are only base64-encoded. Verifying checks the signature against a secret, which proves the contents were not tampered with. Never act on a decoded token without verifying it first. Decoding reads the header and payload, which anyone can do because they are only base64-encoded.
Is it safe to paste a real token and secret here?
The page runs entirely in your browser and nothing is uploaded, so a test token and test secret are safe. Even so, never paste a production secret anywhere except your server and secret manager — if one leaks, rotate it immediately. The page runs entirely in your browser and nothing is uploaded, so a test token and test secret are safe.