JWT Decoder
Decode JWT headers, payloads, claims and expiration locally.
Data is processed only in your browserHow to use
JWT Decoder lets you quickly inspect the structure and content of JSON Web Tokens in your browser. A JWT consists of Header, Payload, and Signature sections. This tool decodes and displays the JSON data in Header and Payload.
How to use: Paste the complete JWT string (usually starting with eyJ) into the input field. The tool automatically parses and displays the Header and Payload contents.
JWT Structure Breakdown
A standard JWT has three parts separated by .: xxxxx.yyyyy.zzzzz
| Part | Content | Description |
|---|---|---|
| Header | {"alg": "HS256", "typ": "JWT"} | Declares signing algorithm and token type |
| Payload | {"sub": "1234", "name": "John", "exp": 1700000000} | Contains claims (attributes) |
| Signature | HMACSHA256(header + "." + payload, secret) | Verifies token integrity |
Common Claims Reference
| Claim | Meaning | Example |
|---|---|---|
iss | Issuer | "auth.example.com" |
sub | Subject (usually user ID) | "1234567890" |
exp | Expiration Time | 1700000000 (Unix timestamp) |
iat | Issued At | 1699990000 |
aud | Audience | "my-api" |
Security Note
JWT Payload is Base64-encoded, not encrypted — anyone can decode and read it. Never place passwords, keys, or other sensitive data in the Payload. This tool only decodes and displays content — it does not verify signatures.
In code
A JWT is three base64url segments joined by dots. Decoding exposes the claims; it does not prove the token is genuine. Only signature verification does that, and this tool does not verify signatures.
JavaScript (Node)
const [header, payload] = token.split('.').slice(0, 2)
.map(p => JSON.parse(Buffer.from(p, 'base64url').toString()));Python
import base64, json
def claims(part):
return json.loads(base64.urlsafe_b64decode(part + '=' * (-len(part) % 4)))
header, payload, signature = token.split('.')Frequently asked questions
Is JWT decoding safe?
Completely safe. The tool only decodes the Base64-encoded parts of the JWT locally. It does not verify signatures or send tokens to any server.
Why does it show "unverified"?
This tool only decodes and displays JWT content — it does not verify signatures. To verify a signature, use a server-side library with your secret key.
Which JWT algorithms are supported?
The tool can decode JWTs signed with any algorithm (HS256, RS256, ES256, etc.) since decoding does not involve signature verification.