JWT Decoder
Decode JSON Web Token headers and payloads.
Loading tool...
Private by design
Your inputs stay in the browser session for this tool run.
Client-side utilities
JWT Decoder runs as a browser utility: Decode JSON Web Token headers and payloads.
Same-page workflow
Useful for quick checks while coding — no paste into an unknown third-party API.
Free to use
Use JWT Decoder without creating an account or installing software.
Before you rely on the result
Local helper for one task. Read the output before you commit it.
Spot an error? Tell us.
About JWT Decoder
What this tool does
The JWT Decoder splits a JSON Web Token into its parts and shows the header and payload as formatted JSON. Paste a token and read the algorithm, token type, and claims without writing any code.
JWTs are used for sign-in sessions and API access, and the header and payload are only Base64URL-encoded, not encrypted. This tool makes them readable so you can check issuer, subject, expiry fields, and custom claims while debugging.
How to use it
- Paste the token. Put the full
header.payload.signaturestring in the JWT token box. - Read the header. The Header panel shows fields like
algandtypas indented JSON. - Read the payload. The Payload panel lists the claims, such as
sub,iat, andexp. - Copy either part. Use the copy button on the panel you need.
How it works
The token is split on dots. The first two segments are converted from Base64URL (swapping - and _ back, adding padding), decoded as UTF-8, parsed as JSON, and then displayed with two-space indentation. At least two segments are required; if either segment cannot be decoded or is not JSON, an invalid-segment message is shown.
The signature is not verified, since doing that requires your secret or public key, and timestamps such as exp are shown as raw numbers rather than dates. A decoded token only shows what it claims, not that it is genuine. Treat real tokens as credentials and avoid pasting live production tokens into any tool you do not trust.
A worked example
Paste a token whose header decodes to {"alg":"HS256","typ":"JWT"} and whose payload decodes to {"sub":"1234567890","name":"John Doe","iat":1516239022}.
The two panels show those objects indented and ready to copy, and the iat value appears as the number 1516239022.
What you get
- Header and payload side by side. Two separate formatted panels.
- Base64URL aware. Handles missing padding and URL-safe characters.
- Per-panel copy. Copy only the part you need.
- Clear error messages. Tells you when a segment is invalid.
Who it helps
- API developers. Debug authentication flows.
- Security reviewers. Inspect claims and algorithms.
- QA engineers. Check token contents against expectations.
- Students. Learn how JWTs are structured.
JWT Decoder FAQs
A JSON Web Token (JWT) is an open standard (RFC 7519) that defines a compact and self-contained way for securely transmitting information between parties as a JSON object. It consists of three parts separated by dots: a header, a payload, and a signature.
No. The JWT Decoder processes and decodes all token strings locally within your web browser using client-side JavaScript. Your tokens, secret claims, and session data are never uploaded or logged on external servers.
No. Decoding simply extracts and displays the Base64URL-encoded header and payload data so you can read its content. It does not cryptographically verify the signature or validate whether the token is genuine or has been tampered with.
A JWT payload is Base64URL-encoded, not encrypted. Anyone who possesses the token string can decode and read its contents. For this reason, sensitive secrets like passwords or personal private keys should never be placed in a standard JWT payload.
Timestamps inside a JWT payload represent standard claim reserves. 'iat' (issued at) indicates the exact time the token was created, while 'exp' (expiration time) defines the precise Unix epoch time after which the token is no longer valid for authentication.



