Security & Utilities

JWT Decoder & Inspector

Decode JSON Web Token headers, claims payloads, and expiration timestamps locally.

Runs 100% locally in your browser
Valid JWT Structurealg: HS256Not Expired (Active)
Security Note: This tool Base64url-decodes the header and payload locally in your browser. It does not verify the cryptographic signature (which requires your server secret or public key).
Decoded JOSE Header (Algorithm & Token Type)
{
  "alg": "HS256",
  "typ": "JWT"
}
Decoded Payload (Claims Set)
{
  "sub": "usr_948102",
  "name": "Ada Lovelace",
  "role": "admin",
  "iss": "devtoolbox.io",
  "iat": 1700000000,
  "exp": 1893456000
}

Parsed JWT Claims Breakdown (6)

Claim KeyDescriptionDecoded Value
subSubject (sub)usr_948102
nameCustom Claim (name)Ada Lovelace
roleCustom Claim (role)admin
issIssuer (iss)devtoolbox.io
iatIssued At (iat)1700000000 (2023-11-14T22:13:20.000Z)
expExpiration 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

  1. Paste your raw JWT string (or full 'Bearer eyJ...' header value) into the input box.
  2. Review the status bar for structural validity, signing algorithm, and real-time expiration status.
  3. 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.

Input
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfOTQ4MSIsInJvbGUiOiJhZG1pbiIsImV4cCI6MTg5MzQ1NjAwMH0.sig
Output
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.