To decode a JWT, paste the token into the decoder and read the header, payload and signature. To verify an HMAC-signed token, enter the secret. Decoding only reads the token, while verifying checks that the signature is valid. Everything runs in your browser.
A JWT decoder shows what is inside a JSON Web Token. A JWT has three dot-separated parts: a header that describes the token, a payload that carries claims such as user ID and expiry, and a signature. The first two parts are Base64URL-encoded JSON, so anyone holding the token can read them.
ToolsViewer's online JWT decoder highlights each segment, shows the claims, reports timing status such as issued and expiry, and can verify and build HMAC-signed tokens. Your token and secret stay in your browser.
Paste the full JWT into the input. You can load the sample token and secret to try the tool first.
The header, payload and signature are shown with highlighting so you can see which part is which.
Review claims such as iss, sub, aud, iat and exp, and see whether the token is issued, valid or expired.
Enter the secret to verify an HMAC signature.
Create a signed token by choosing an algorithm and entering your payload and secret.
Decoding reads the contents of a token and works without any secret. Verifying checks the signature with the secret, which proves the token was not changed and was issued by someone who knows the secret. A token can be decoded and still be forged, so always verify on your server before trusting a token.
A standard JWT is encoded, not encrypted. Anyone who has the token can read its payload, so never put passwords or private data in it.
Do not paste production secrets into tools you do not trust. This decoder runs in your browser, but for live credentials it is still best practice to use test tokens or rotate secrets afterwards.
Explore related tools like JSON Formatter, JSON Validator, JSON Path Tester, and JSON Diff Checker to format, validate and inspect JSON online.