JWT Decoder
Decode a JWT header and payload, and optionally verify it.
Overview
Decodes a JSON Web Token (JWT) so you can read its header and payload in plain JSON. Built for developers debugging auth flows, inspecting claims, or checking expiry. Decoding happens in your browser, so you can paste real tokens without sending them to a server.
How it works
A JWT is three parts separated by dots: a header, a payload, and a signature, each Base64URL-encoded. The tool splits the token on the dots and Base64URL-decodes the header and payload back into readable JSON, then displays the claims. Important: a JWT is encoded, not encrypted. Anyone holding the token can read its payload, so it should never contain secrets. Decoding shows you what is inside the token; verifying is a separate step that checks the signature against a key. This tool decodes any token, and can also verify HS256 signatures if you supply the secret.
How to use it
- Paste your JWT into the input box.
- Read the decoded header and payload side by side.
- Check standard claims such as iss, sub, iat, and exp.
- Copy any field you need for debugging.
Examples
Checking why a session expired
Paste a token and read the exp (expiry) claim as a timestamp to confirm whether it has lapsed.
Inspecting custom claims
Decode a token from your API to verify it carries the roles or user id your backend expects.
FAQ
Is my token sent to a server?
Does it verify the signature?
Can it decode an expired token?
What do iat and exp mean?
Is it safe to paste sensitive tokens?
Related tools
JSON Formatter
Format, validate, beautify, and minify JSON.
Open toolBase64 Encoder and Decoder
Encode text to Base64 or decode it back.
Open toolPassword Generator
Generate strong random passwords with length and character options.
Open toolUUID Generator
Generate v4 UUIDs in bulk.
Open toolURL Encoder and Decoder
URL-encode or decode percent-encoded strings.
Open toolEmbed this tool
Paste this snippet to put the tool on your own site. It runs entirely in the visitor's browser, the same as it does here.