JWT decoder: reading a token's contents without trusting it.
Read the contents of a JSON Web Token without trusting it.
Open JWT decoderWhat this tool tells you
A JSON Web Token carries three base64url parts joined by dots: a header naming the algorithm, a payload holding the claims, and a signature. This tool decodes the first two and shows them as formatted JSON. It runs entirely in your browser and it does not check the signature at all.
Try it in SiteTrace
- Paste the whole token, including all three dot-separated parts, since dropping the signature makes it a different string.
- Read the algorithm from the header first, because the algorithm inside a token is the one an attacker would like you to trust.
- Read the payload claims and check the issued at and expires times against the current date.
- Confirm that the audience and issuer values match what your own application expects from a valid token.
- Hand the token to the server that issued it, or to a library, when you need the signature actually checked.
This utility works locally in your browser. The screenshot shows one example result.
How to read the information
- Algorithm
- The signing algorithm named in the header, such as HS256. It describes the token, it does not confirm the token.
- Type
- The typ header value, usually JWT. A value of none is a red flag that deserves investigation.
- Issued at
- The iat claim converted to a date and time, telling you when the token was created.
- Expires
- The exp claim converted to a date and time. Past that moment a server should refuse the token.
- payload.aud
- The audience the token was minted for. A token meant for another service should not be accepted here.
- Signature preview
- The first part of the signature segment as text. It is shown for reference and is never verified.
What the example means
Decoding tells you what a token says and nothing about whether it is genuine. Anyone can craft a token with any claims they like, and this tool will happily print them. Verification means checking the signature with the issuer's key, which only the server or a proper library can do.
On your Mac or Windows PC
Mac instructions
This splits the first two segments, swaps the base64url characters and decodes them in turn, giving the header and then the payload. Some builds want padding added, so append equals signs if it refuses.
echo "$TOKEN" | cut -d. -f1-2 | tr '.' '\n' | tr '_-' '/+' | base64 -dA check from your computer reflects your own connection. It may differ from a remote test or the mockup shown here.
Keep this in mind
Decoding is not verification. The tool reads the two base64url segments and prints them, and it never contacts a key server or recomputes the signature. Treat every claim it shows as unverified input, and never accept a token on the strength of a decoded payload alone.