Free Online JWT Decoder, Signature Verifier and Token Builder
Read what is inside a JSON Web Token, check that its signature is genuine, and sign a token of your own for testing. The header and payload are shown as formatted JSON with the times turned into real dates, the signature is checked against a shared secret or an RSA public key, and the issuer and audience can be checked too.
| Time claim | When (UTC) |
|---|
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
How to Use JWT Encoder and Decoder
Step by step, start to finish.
The whole thing, header.payload.signature. It is decoded the moment you paste, and reading it needs no key at all.
Both parts as formatted JSON, the algorithm named, and the issued, not-before and expiry claims turned into real dates.
Switch to Verify and give it the shared secret or the RSA public key. The expected issuer and audience can be checked at the same time, because a valid signature on its own is only half the answer.
Switch to Make, write the payload as JSON and sign it with HS256, HS384 or HS512. What comes out is a real token, so use a test secret.
Key Features
What this tool does, and what it does not do.
Both shown as formatted JSON, with the algorithm named.
Issued, not-before and expiry turned from seconds into readable UTC dates.
Each token is labelled current, expired or not yet valid, measured against your own clock.
Against a shared secret (HS256, HS384, HS512) or an RSA public key (RS256, RS384, RS512), by the browser's own Web Crypto.
HS256, HS384 or HS512 with your own payload, an optional iat and an expiry in seconds.
A real session token can be inspected here without it leaving the tab.
About JWT Encoder and Decoder
A JWT turns up whenever you are working with authentication: a session token, an API key in bearer form, a link that logs someone in. It looks like a wall of Base64, and the quickest way to understand a bug is to see what is actually inside it. That is what this does, in your browser, the moment you paste one in.
It shows the header and the payload as readable JSON, names the signing algorithm, and turns the iat, nbf and exp timestamps into UTC dates, then tells you whether the token is current, expired or not valid yet.
What can it verify?
Switch to Verify the signature and the check runs on the browser's own Web Crypto. For RS256, RS384 and RS512 you paste the RSA public key in PEM form, which is published on purpose and is no secret. For HS256, HS384 and HS512 you type the shared secret the token was signed with. You can also give an expected issuer and audience, because real services usually reject a token for an exp, iss or aud mismatch rather than for a bad signature. A token with an empty signature part, the shape of an alg: none attack, is flagged instead of passed.
Making a token for a test
Make a token signs a JSON payload of your own with HS256, HS384 or HS512, adds an issued-at time if you tick it, and sets an expiry a chosen number of seconds ahead. The result is a genuine token, so sign it with a test secret and use it to exercise an endpoint. Signature work uses Web Crypto, so it runs when the page is opened on https or localhost.
Two things worth remembering
The payload is readable by anyone, so nothing secret belongs in it, and the token is signed rather than encrypted, so being able to read it is the format working correctly. Decoding a token you hold shows you exactly what any recipient can see. If you need the HMAC itself outside a JWT, for a webhook for example, the HMAC Generator works on any message.
Frequently Asked Questions
Common questions about this tool.
More Security Tools
Other tools from the same hub, free and in your browser.
Feedback
No feedback on this tool yet. Yours would be the first.