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.
How 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
Most Viewed Tools
Screen Size Converter
Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.
Use Tool →DPI Calculator
Calculate DPI (dots per inch), image dimensions, and print sizes. Convert between pixels and physical dimensions for printing and displays.
Use Tool →Paper Size Converter
Convert between international paper sizes (A4, Letter, Legal) with dimensions in mm, cm, and inches. Compare ISO A/B series and North American paper standards.
Use Tool →Fuel Consumption Converter
Convert between MPG (miles per gallon), L/100km (liters per 100 kilometers), and other fuel efficiency units. Compare car fuel economy across different measurement systems.
Use Tool →CSV Splitter
Split large CSV files into smaller files by number of rows. Process large datasets in manageable chunks instantly.
Use Tool →Product Schema Generator
Generate JSON-LD Product schema markup for SEO. Add product details like name, price, brand, rating, and availability to create structured data for rich search results.
Use Tool →Large Text File Viewer
View and search large text files up to 200MB in your browser. Features virtual scrolling, line numbers, search functionality, and file statistics. Perfect for log files, CSV, JSON, and code files.
Use Tool →API Key Generator
Generate secure, cryptographically random API keys for authentication and authorization. Create custom API keys with various formats including hex, base64, and prefixed keys.
Use Tool →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 →HTML Validator
Validate HTML markup and check for common issues. Detect missing attributes, accessibility problems, deprecated tags, and structure errors. Free and runs entirely in your browser.
Use Tool →CSV Null Value Handler
Handle null and empty values in CSV - Replace, remove, or keep missing data with flexible null handling strategies
Use Tool →CSV Data Type Converter
Convert data types in CSV - Transform CSV column values to numbers, booleans, dates with automatic type detection and cleaning
Use Tool →CSV to Excel Converter
Convert CSV to Excel - Transform comma-separated values to Excel spreadsheet with auto-width columns
Use Tool →TSV to CSV Converter
Convert TSV to CSV - Transform tab-separated values to comma-separated values with automatic quoting
Use Tool →Slug Generator
Generate URL-friendly slugs from any text. Create SEO-optimized slugs for blog posts, products, and web pages instantly.
Use Tool →Share Your Feedback
Help us improve this tool by sharing your experience