JWT Decoder & Inspector
Decode JSON Web Token headers, claims payloads, and expiration timestamps locally.
{
"alg": "HS256",
"typ": "JWT"
}{
"sub": "usr_948102",
"name": "Ada Lovelace",
"role": "admin",
"iss": "devtoolbox.io",
"iat": 1700000000,
"exp": 1893456000
}Parsed JWT Claims Breakdown (6)
| Claim Key | Description | Decoded Value |
|---|---|---|
| sub | Subject (sub) | usr_948102 |
| name | Custom Claim (name) | Ada Lovelace |
| role | Custom Claim (role) | admin |
| iss | Issuer (iss) | devtoolbox.io |
| iat | Issued At (iat) | 1700000000 (2023-11-14T22:13:20.000Z) |
| exp | Expiration Time (exp) | 1893456000 (2030-01-01T00:00:00.000Z) |
What Does the JWT Decoder & Inspector Do?
The JWT Decoder & Inspector splits a three-part JSON Web Token (header.payload.signature) conforming to RFC 7519 and Base64url-decodes the JOSE Header and Claims Payload locally inside your browser.
Standard numeric timestamp claims such as exp (Expiration Time), iat (Issued At), and nbf (Not Before) are automatically converted into human-readable ISO 8601 UTC dates, and an instant active/expired status badge is displayed.
Privacy guarantee: Production authentication tokens often contain sensitive user identifiers and permissions. Because this decoder executes 100% client-side, your Bearer tokens are never transmitted to any server.
How to Use This Tool
- Paste your raw JWT string (or full 'Bearer eyJ...' header value) into the input box.
- Review the status bar for structural validity, signing algorithm, and real-time expiration status.
- Inspect the formatted JSON Header, JSON Payload, and the parsed claims table below.
Common Engineering Use Cases
- Debugging 401 Unauthorized responses caused by expired JWTs or mismatched audience (aud) / issuer (iss) claims.
- Inspecting custom role and permission claims embedded inside OAuth2 / OIDC access and ID tokens.
- Verifying the signing algorithm (such as HS256, RS256, or ES256) specified in the JOSE header.
Practical Developer Examples
Decoding a Standard HS256 Access Token
A JWT consists of three Base64url segments separated by dots.
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfOTQ4MSIsInJvbGUiOiJhZG1pbiIsImV4cCI6MTg5MzQ1NjAwMH0.sig
Header: {"alg": "HS256", "typ": "JWT"}
Payload: {"sub": "usr_9481", "role": "admin", "exp": 1893456000}Common Mistakes & Pitfalls to Avoid
- Confusing JWT decoding with signature verification—anyone can Base64url-decode a JWT payload; backend servers must always verify the cryptographic signature before trusting claims.
- Pasting live production JWTs into server-side debugging websites that log HTTP requests.
- Storing sensitive secrets or plaintext passwords inside a unencrypted JWS payload.
Frequently Asked Questions
Are JWT payloads encrypted?
Standard signed JWTs (JWS) are only Base64url-encoded, not encrypted. Anyone who possesses the token can read its header and payload claims. Only JWE (JSON Web Encryption) tokens encrypt the payload.