Decode a JWT
Read the header, claims and expiry of a JSON Web Token without handing the token to anyone.
or drop it here · files stay on your device
We count formats and sizes. Filenames stay private unless you opt in.
- Runs on your device
- No sign-up or watermark
- No fixed file size cap
The short answer
To decode a JWT safely, save the token in a .txt file and choose it here. The tool splits the three parts, decodes the header and payload from Base64URL in your browser, and shows the algorithm, type and expiry. The token is never uploaded, and the signature is not verified.
How to decode a JWT without sending it anywhere
- STEP 1
Save the token as text
Put the JWT on its own in a .txt file. Leave out any "Bearer " prefix from the Authorization header.
- STEP 2
Choose the file
Select or drop the .txt file. It is read inside your browser tab and nothing is transmitted.
- STEP 3
Read the summary
The report shows the alg and typ from the header and, if there is an exp claim, when it expires.
- STEP 4
Inspect every claim
Open jwt-payload.json in the preview to see the full header and payload, or copy it from there.
What is inside a JWT, and why pasting one online is risky
A JSON Web Token is three Base64URL-encoded parts joined by dots: a header naming the signing algorithm, a payload of claims such as sub, iat and exp, and a signature. The header and payload are only encoded, not encrypted, so anyone holding the token can read them without a key.
A token from a log or an Authorization header is often still valid, and whoever has it can act as that user until it expires. Decoding one on a site that sends it to a server shares that credential. Decoding in the page, as here, keeps it on your machine.
What survives, and what does not
The file’s text is trimmed and split on dots; anything other than three parts is rejected. The header and payload are converted from Base64URL and parsed as JSON. If the payload has an exp claim, it is shown as a UTC date and time and marked expired or still valid against your device clock. The full header and payload are saved as jwt-payload.json.
What you keep
Every header field and payload claim, in jwt-payload.json
The expiry as a readable UTC time, flagged expired or still valid
The token itself, which never leaves your device
What you lose
The signature is not verified, so a decoded token proves nothing about who issued it
Encrypted tokens (JWE, five parts) cannot be read
Non-ASCII characters in claims, such as accented names, can come out garbled
There is no paste box yet; the token must be in a text file
Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.
Decode a JWT at a glance
| Input | TXT containing one JWT (JWS, three parts) |
|---|---|
| Output | Report, plus jwt-payload.json |
| Shows | alg, typ, exp with expired or valid |
| Signature check | No; the secret is never asked for |
| Runs on | Your device, in the browser |
| Works offline | After the first use |
If something goes wrong
It says a JWT has three parts but this has one or two
Only part of the token was saved, or it is a different kind of string. A signed JWT is header.payload.signature, with exactly two dots.
It says the segments are not valid Base64URL JSON
Remove any Bearer prefix from the Authorization header, and check the token was not cut short when copied from a log. Keep only the token itself.
Decode a JWT questions
Is it safe to decode a JWT online?
Only if the decoder runs entirely in your browser. A token from a live system is a working credential until it expires. This tool decodes it in the page and sends nothing, which you can check in the DevTools Network tab.
Can I decode a JWT without the secret?
Yes. The header and payload are just Base64URL-encoded JSON, so they can be read without any key. The secret is only needed to verify the signature.
How do I check if a JWT has expired?
Decode it here. If the payload has an exp claim, the report shows the expiry in UTC and marks it expired or still valid against your device clock.
Does this verify the JWT signature?
No. Verifying needs the signing secret or public key, which this tool never asks for. Treat decoded claims as unconfirmed until your server verifies them.
Can I paste the token instead of using a file?
Not yet. Save the token in a plain .txt file on its own line, then choose that file. It takes a few seconds in any text editor.