←Back to Tools

JWT Decoder - Decode & Inspect JSON Web Tokens

Decode and inspect headers, payloads, and signatures of JSON Web Tokens locally.

Encoded Token (Paste here)

🔍 Token Anatomy

eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImFiYzEyMyJ9.eyJzdWIiOiJ1c2VyXzEyMzQ1NiIsIm5hbWUiOiJKYW5lIERvZSIsImVtYWlsIjoiamFuZUBleGFtcGxlLmNvbSIsInJvbGVzIjpbImFkbWluIiwidXNlciJdLCJpc3MiOiJodHRwczovL2F1dGguZXhhbXBsZS5jb20iLCJhdWQiOiJodHRwczovL2FwaS5leGFtcGxlLmNvbSIsImlhdCI6MTcxOTMwMDAwMCwibmJmIjoxNzE5MzAwMDAwLCJleHAiOjk5OTk5OTk5OTl9.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Header
Payload
Signature
Header: Algorithm & Token Type
{
  "alg": "RS256",
  "typ": "JWT",
  "kid": "abc123"
}
Payload: Claims / Data
{
  "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
}
Signature not verified (decode only)
Algorithm (display only): RSA with SHA-256 —asymmetric, public/private key

💡 Token Claims Breakdown

sub
user_123456
Subject —whom the token refers to
name
Jane Doe
Full name of the subject
email
jane@example.com
Email address of the subject
roles
["admin","user"]
User roles / permissions
iss
https://auth.example.com
Issuer —who issued the token
aud
https://api.example.com
Audience —who the token is intended for
iat
1719300000 (Tue, 25 Jun 2024 07:20:00 GMT · 851d ago)
Issued At —when the token was issued
nbf
1719300000 (Tue, 25 Jun 2024 07:20:00 GMT · 851d ago)
Not Before —token is not valid before this time
exp
9999999999 (Sat, 20 Nov 2286 17:46:39 GMT · 94990d from now)
Expiration Time —when the token expires (Unix timestamp)

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

  1. Paste your base64url-encoded JWT string into the token input box (or click 'Load Sample' to test the decoder).
  2. Inspect the decoded Header panel to verify the signing algorithm ('alg', e.g. HS256, RS256) and token type ('typ': 'JWT').
  3. Review the Payload claims to inspect standard subject ('sub'), issuer ('iss'), roles, permissions, and custom claims.
  4. Check the expiration badges to verify whether the token's 'exp' timestamp represents a valid or expired session.
  5. Note the signature status: 'Signature not verified (decode only)' confirms the signature is displayed without cryptographic validation.
  6. 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

Input: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
Verified Output:
Header:
{
  "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

Input: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJ1c3JfOTA4MSIsInJvbGVzIjpbImFkbWluIl0sImV4cCI6MTcwMDAwMDAwMH0.signature_placeholder
Verified Output:
Header: {"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 performed

Common 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.

Frequently Asked Questions

No. The status is explicitly 'Signature not verified (decode only)'. Cryptographically verifying a signature requires verifying against the secret key (for symmetric algorithms like HS256) or the issuer's public key (for asymmetric algorithms like RS256/ES256). Since you should never share secret keys with any web tool, this utility focuses strictly on decoding and inspecting the header and payload claims.
While this tool runs 100% client-side in your browser and never sends tokens over a network, we strongly recommend never pasting live production tokens into any third-party browser tool. As a security best practice, use expired tokens, test tokens from local development environments, or synthetic payloads.
JSON Web Tokens are not encrypted by default; they are simply encoded using base64url. Anyone with access to the token string can read the Header and Payload by converting the base64url characters into standard ASCII/UTF-8 JSON. The signature is the only part that requires a cryptographic key to validate.
No. Decoding a JWT header and payload is a straightforward base64url string translation, which does not require the Web Crypto API. The Web Crypto API would only be required if performing full cryptographic signature verification or decrypting encrypted JWE tokens.
The decoder reads the standard 'exp' (expiration) claim in the payload, which contains a Unix timestamp in seconds. If this timestamp is earlier than the current system time on your device, the tool displays an 'Expired' indicator.
The Header typically specifies algorithms such as HS256, HS384, HS512, RS256, RS512, or ES256. This display reflects whatever algorithm value was declared when the token was created, but does not represent validation of that algorithm.

🔗 You Might Also Like

🔐
Password Generator
Generate cryptographically secure passwords
🔑
UUID Generator
Generate UUID v4 in bulk
🔄
Base64 Converter
Encode/decode Base64 strings
{ }
JSON Formatter
Format and validate JSON data