JWT Decoder
Guide: How to Decode a JWT and Read Its Claims
Nothing you enter or choose here leaves your device. This tool runs in your browser.
A token taken apart
A JSON Web Token is three pieces joined by dots: a header, a payload and a signature. Each of the first two is JSON written in Base64URL, which is why a token looks like noise but can be read by anyone. Here's a well-known example token, split at the dots:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9 .eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ .SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Paste it in and the first part turns into {"alg":"HS256","typ":"JWT"}, which says the token is signed with HMAC-SHA256. The second becomes {"sub":"1234567890","name":"John Doe","iat":1516239022}, and the tool shows the iat time in plain words: 18 January 2018. The third piece is the signature, which only means something to a program that knows the secret.
The claims you'll see most
| Claim | Meaning | What to check |
|---|---|---|
iss | Who issued the token | It matches the service you expect |
sub | Who the token is about, usually a user id | It's the account you think it is |
aud | Who the token is meant for | It names your app or API |
exp | When it expires (Unix seconds) | It's in the future |
nbf | Not valid before this time | It's in the past |
iat | When it was issued | Looks plausible, not far in the future |
jti | A unique id for this token | Used to block a single token |
The tool turns exp, nbf and iat into dates and tells you whether the token has expired, which is the first thing to check when an API suddenly answers 401.
Checking the signature
Enter the shared secret and the tool recomputes the signature for HS256, HS384 or HS512 tokens. If your secret is right and the token is untouched, it reports a match. Try the example above with the secret your-256-bit-secret. Tokens signed with a private key (RS256, ES256) can be decoded here, but they need the matching public key to verify, which belongs on your server.
Why a token fails
- Expired. Compare exp with the current time. A token that expired a few seconds ago can also mean the clocks on two servers disagree.
- Wrong audience or issuer. The token was made for a different app or environment, such as staging.
- Bad signature. The secret differs, the token was changed, or it was signed with another algorithm than the server expects.
- Extra characters. A pasted token with a trailing space, a line break, or a leading
Bearercan fail to parse. The tool removes the Bearer prefix for you. - Not a JWT at all. Some tokens, like opaque session ids, have no dots and nothing to decode.
Things worth knowing
Anyone holding a token can read it, so don't put secrets or personal details in the payload. Decoding isn't verifying: a decoded token tells you what it claims, not whether it's real. Your server has to check the signature, the expiry, the issuer and the audience on every request. And treat live tokens like passwords. The page works in your browser and sends nothing, but expired or test tokens are the safe thing to paste.
Related reading: the Base64 guide explains the encoding behind each piece, the timestamp converter turns any Unix time into a date, and the guide on decoding a JWT walks through the same steps.
Written by Akinrinmade Michael · Updated October 24, 2026
How to use
- 1Paste your JWT into the box. A leading "Bearer " is removed for you.
- 2Read the decoded header and payload, and whether the token is expired.
- 3Check the issued, expiry and not-before times in plain dates.
- 4Enter the secret to check an HS256, HS384 or HS512 signature.
Frequently asked questions
Is it safe to paste my token here?
The token is decoded in your browser and is never sent to a server. Even so, treat live tokens like passwords and prefer expired or test tokens when you can.
Does decoding verify the token?
No. Anyone can read a JWT, because the header and payload are only Base64URL encoded. Only a signature check with the right key proves it is genuine, and your server should always do that.
Which signatures can it check?
HS256, HS384 and HS512, which use a shared secret. Tokens signed with a private key (RS256, ES256 and similar) can be decoded, but not verified here.
What do iat, exp and nbf mean?
iat is when the token was issued, exp is when it expires and nbf is the time before which it must not be accepted. All three are Unix times in seconds.
Read the guides
Learn how this works and how to get the most from it.
Security
How to Decode a JWT and Read Its Claims
A JSON Web Token has three parts. Learn what each part holds, what exp and iat mean, and why decoding a token isn't the same as trusting it.
3 min read
Developer
HTTP Status Codes Explained: The Ones You Actually Need
What 200, 301, 404, 500 and other HTTP status codes mean, how 401 differs from 403, and which code to return from your API.
4 min read
Developer
Base64 Explained: What It Is and When to Use It
How Base64 and Base32 encoding work, a worked example by hand, why Base64 makes data 33% larger, and when to use each. Neither one is encryption.
3 min read
Developer
Unix Timestamps Explained
What a Unix timestamp is, the difference between seconds and milliseconds, how time zones fit in, and the Year 2038 problem.
3 min read
Related tools
Base64 & URL Encoder / Decoder
Encode and decode Base64 and URL-encoded text instantly.
Hash Generator
Generate MD5, SHA-1, SHA-256 and SHA-512 hashes and HMACs.
JSON Formatter & Validator
Prettify, minify and validate JSON, with error line numbers.
Unix Timestamp Converter
Convert Unix epoch timestamps to dates and back, in any time zone.