JWT Decoder - Decode & Inspect JSON Web Tokens
Decode and inspect headers, payloads, and signatures of JSON Web Tokens locally.
🔍 Token Anatomy
{
"alg": "RS256",
"typ": "JWT",
"kid": "abc123"
}{
"sub": "user_123456",
"name": "Jane Doe",
"email": "jane@example.com",
"roles": [
"admin",
"user"
],
"iss": "https://auth.example.com",
"aud": "https://api.example.com",
"iat": 1719300000,
"nbf": 1719300000,
"exp": 9999999999
}💡 Token Claims Breakdown
About JWT Decoder
AstonishBuddy's JWT Decoder is a client-side inspection tool for JSON Web Tokens (RFC 7519). A standard JWT consists of three base64url-encoded segments delimited by periods (.): the JOSE Header, the Payload (Claims Set), and the Cryptographic Signature. Our tool extracts and decodes the Header and Payload segments locally using base64url decoding, parses their JSON structures, and presents timestamps (issued-at, expiration, not-before) in human-readable UTC and local time formats. IMPORTANT: This tool performs decoding only—the cryptographic signature is NOT verified because verifying a signature requires knowing the secret key (for HMAC SHA-256) or public key certificate (for RSA/ECDSA). For your security, never paste active production tokens into any third-party browser utility; always use test, staging, or expired tokens for debugging.
Key Features & Technical Capabilities
- Instant client-side base64url decoding of JOSE Header and Payload claims sets
- Signature not verified (decode only) status clearly indicated with algorithm display for inspection purposes
- Automatic timestamp conversion for standard RFC 7519 claims: exp (expiration), iat (issued at), and nbf (not before)
- Visual token expiration badge indicating whether the token is currently active or expired
- Individual copy buttons for decoded Header and Payload JSON objects
- Preloaded 'Load Sample' button demonstrating standard HS256 token structure and claims
- 100% in-browser processing with zero server calls; tokens are never transmitted across any network
Step-by-Step Usage Guide
- Paste your base64url-encoded JWT string into the token input box (or click 'Load Sample' to test the decoder).
- Inspect the decoded Header panel to verify the signing algorithm ('alg', e.g. HS256, RS256) and token type ('typ': 'JWT').
- Review the Payload claims to inspect standard subject ('sub'), issuer ('iss'), roles, permissions, and custom claims.
- Check the expiration badges to verify whether the token's 'exp' timestamp represents a valid or expired session.
- Note the signature status: 'Signature not verified (decode only)' confirms the signature is displayed without cryptographic validation.
- Click 'Copy' above either the Header or Payload panel to copy the formatted JSON to your clipboard.
Verified Worked Examples
Standard Authentication Token Header & Payload Decoding
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5cHeader:
{
"alg": "HS256",
"typ": "JWT"
}
Payload:
{
"sub": "1234567890",
"name": "John Doe",
"iat": 1516239022 (Thu Jan 18 2018 01:30:22 UTC)
}
Signature Status: Signature not verified (decode only)
Signature Hex: 49f94ac70449... (HMAC-SHA256 segment displayed without secret key verification)Inspecting Expired Role-Based Access Control (RBAC) Token
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfOTA4MSIsInJvbGVzIjpbImFkbWluIl0sImV4cCI6MTcwMDAwMDAwMH0.signature_placeholderHeader: {"alg": "RS256", "typ": "JWT"}
Payload: {"sub": "usr_9081", "roles": ["admin"], "exp": 1700000000}
Token Status: Expired (Mon Nov 13 2023 22:13:20 UTC)
Note: RS256 public key verification not performedCommon Mistakes to Avoid
- Assuming a decoded JWT has been cryptographically verified; decoding only extracts base64url text and does not validate whether the token was signed with the legitimate secret or tampered with.
- Pasting live production tokens containing sensitive authorization credentials into web tools instead of using test tokens.
- Confusing JWT encryption (JWE) with standard signed tokens (JWS); JWE tokens have five segments and cannot be read without decryption keys.
- Relying on the 'alg' header field for security decisions without strict server-side algorithm whitelisting (preventing 'alg: none' exploits).
Client-Side Security & Privacy Guarantee
All token decoding runs 100% locally in your browser using standard base64url string decoding. Your token is never transmitted over the internet, sent to AstonishBuddy servers, or stored in any analytics logs. For sensitive production credentials, we strongly recommend using simulated or expired tokens.