JWT Decoder
Decode JWT header and payload.
Decode the readable header and payload portions of a JSON Web Token locally so you can inspect its claims during development.
Loading the interactive tool… This page needs JavaScript to run the JWT Decoder.
How to use JWT Decoder
- Paste the data, code, token, or value you need to inspect.
- Set any format, encoding, or validation options.
- Run the tool and inspect the result or diagnostic output.
- Copy the output into your terminal, editor, API client, or project.
How JWT Decoder works
Paste a JSON Web Token and the tool splits it on the dots, expects exactly three segments, and decodes the middle one, the payload, from Base64URL into pretty-printed JSON. Only the payload is shown; the header and signature are not displayed, and the signature is never verified, so decoding does not prove a token is genuine. Decoding happens in your browser, but treat live tokens as secrets anyway.
Worked example
Input: a token whose payload segment is eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSJ9 → Output: a JSON object showing sub 1234567890 and name Ada, one claim per line.
Common uses
- Check the exp or sub claim when debugging a login that keeps failing.
- Confirm which scopes or roles an access token carries during API testing.
- Inspect a token from a staging environment without writing decode code.
Best for
- debugging authentication flows
- checking JWT claims and timestamps
- development and test environments
Tips for better results
- Decoding a JWT does not verify its signature.
- Never paste a live production token into an unnecessary third-party service.
- Validate the output before using it in production code.
- Treat tokens, credentials, and secrets as sensitive even when processing happens locally.
Frequently asked questions
Does decoding a JWT verify it?
No. Decoding only reads the contents. Verifying the signature requires the secret or public key.
Is it safe to paste a JWT?
Decoding happens in your browser, but treat real production tokens as secrets and avoid sharing them.
What do exp and iat mean?
exp is the expiry time and iat is the time the token was issued, both as Unix timestamps.
Related tools
- JWT Generator — Create signed HS256, HS384 or HS512 JSON Web Tokens.
- Base32 Encoder/Decoder — Encode or decode text as Base32.
- Base64 Encoder/Decoder — Encode or decode UTF-8 text as Base64.
- AI Token Cost Calculator — Estimate LLM API cost from tokens, requests and per-token prices.
- Chmod Calculator — Convert Linux file permissions between octal and symbolic.
- CIDR Subnet Calculator — Calculate IPv4 network, broadcast and host range from CIDR.