JWT Decoder
Decode JWT (JSON Web Token) headers and payloads locally in your browser. View claims, algorithm info, and signature without sending data to any server.
Developer ToolsHow to Use JWT Decoder
What is a JWT?
A JWT (JSON Web Token) is a compact, URL-safe token format used for securely transmitting information between parties. JWTs are commonly used for authentication and authorization in web applications and APIs.
JWT Structure
A JWT consists of three parts separated by dots (.):
header.payload.signature
- Header: Contains token type (JWT) and signing algorithm (HS256, RS256, etc.)
- Payload: Contains claims (user data, permissions, expiration, etc.)
- Signature: Cryptographic signature to verify the token hasn't been tampered with
How to Use This Tool
Decode a JWT Token
- Paste your JWT in the input field (the entire
header.payload.signaturestring) - Click Decode to extract and parse the token
- View the decoded Header JSON (left panel) showing algorithm and token type
- View the decoded Payload JSON (right panel) showing claims like
sub,exp,iat, custom data - View the Signature segment at the bottom (base64url-encoded, not verified)
- Click Copy next to Header or Payload to copy the JSON individually
- Use Clear to reset and decode another token
- Try Sample Token to see a demo JWT
Important Note
⚠️ This tool ONLY decodes tokens locally in your browser. It does NOT:
- Verify signatures (check if the token is authentic)
- Validate expiration (
expclaim) - Check issuer (
iss) or audience (aud) - Send data to any server
For signature verification, use a proper JWT library with access to the secret key or public key.
Common Use Cases
- Debug Authentication: Inspect JWTs from API responses to see user claims
- Check Token Expiration: View
exp(expiration) andiat(issued at) timestamps - Verify Permissions: See roles, scopes, or custom claims embedded in tokens
- API Testing: Decode tokens from OAuth flows, login responses, or bearer tokens
- Learn JWT Structure: Understand how JWTs encode data in base64url format
- Troubleshoot Authorization: Check if expected claims are present in tokens
Common JWT Claims
sub(Subject): User ID or identifieriss(Issuer): Who issued the token (e.g.,auth0.com)aud(Audience): Intended recipient(s) of the tokenexp(Expiration): Unix timestamp when token expiresiat(Issued At): Unix timestamp when token was creatednbf(Not Before): Token is not valid before this timejti(JWT ID): Unique identifier for the token- Custom claims:
email,roles,permissions,name, etc.
Security Reminders
- Never trust decoded data without verification—anyone can create a JWT with any claims
- Signature verification requires the secret key—this tool cannot verify signatures
- JWTs are encoded, NOT encrypted—anyone can decode and read the payload
- Don't store sensitive data in JWTs—payloads are publicly readable
- Always use HTTPS—JWTs in transit should be encrypted at the transport layer
- Validate exp/iat/nbf claims—check token expiration and validity in your backend
Tips
- Copy the decoded JSON to analyze claims in your code editor
- Check the
alg(algorithm) in the header—noneis insecure and should never be used in production - Unix timestamps (
exp,iat) can be converted to human-readable dates using tools ornew Date(exp * 1000) - If you see "Invalid JWT" errors, ensure you copied the entire token including all three segments
Frequently Asked Questions
Related Development Tools
JSON Formatter & Validator
FeaturedFormat, validate, and pretty-print JSON with our developer-friendly editor.
Use Tool →QR Code Generator
FeaturedCreate custom QR codes for URLs, text, and contact info
Use Tool →CSS Beautifier
Format messy CSS into clean, readable styles with consistent indentation and spacing. Perfect for cleaning up minified or poorly formatted stylesheets.
Use Tool →CSV Sorter
Sort CSV by columns - Order CSV rows by one or more columns in ascending or descending order with multi-level sorting support
Use Tool →TSV to CSV Converter
Convert TSV to CSV - Transform tab-separated values to comma-separated values with automatic quoting
Use Tool →CSV to TSV Converter
Convert CSV to TSV - Transform comma-separated values to tab-separated values with automatic quote removal
Use Tool →CSV Column Renamer
Rename CSV columns - Change CSV column headers and standardize naming conventions with camelCase, snake_case, or Title Case
Use Tool →HTTP Status Code Checker
Look up HTTP status codes and their meanings instantly. Understand error codes and how to fix them.
Use Tool →Share Your Feedback
Help us improve this tool by sharing your experience