JWT Encoder & Signer
Construct and sign JWT tokens locally in your browser. Edit header and payload JSON, choose HS256/HS384/HS512, enter a secret, and generate a signed token instantly. Nothing is uploaded.
How to Use JWT Encoder & Signer
How to Use the JWT Encoder & Signer:
Select Algorithm: Choose HS256 (default), HS384, or HS512. The algorithm is automatically set in the header JSON.
Edit the Header: The header defaults to {"alg":"HS256","typ":"JWT"}. You can add additional fields (e.g., kid for key ID), but the alg field is controlled by the algorithm selector.
Edit the Payload: Enter your claims as a JSON object. Standard claims:
- sub — subject (user ID, service name)
- iat — issued at (Unix timestamp, seconds)
- exp — expiry (Unix timestamp, seconds)
- iss — issuer
- aud — audience Custom claims are also supported as any JSON field.
Enter Your Secret: Type or paste your HMAC signing secret. Use the Show/Hide toggle to reveal it. The secret is only used in your browser and never uploaded.
Click Generate Token: The tool signs the header and payload using the Web Crypto API and displays the signed JWT with colour-coded sections (red = header, purple = payload, cyan = signature).
Copy the Token: Click Copy to copy the full JWT to your clipboard. Use the JWT Token Validator to verify the output.
Notes
- Only HMAC algorithms (HS256, HS384, HS512) are supported. RS256/ES256 require a private key and are not available in the browser.
- The payload is Base64URL-encoded, not encrypted — do not include secrets or sensitive data in the payload.
- Tokens generated here are real, valid JWTs suitable for development and testing.
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 →JWT Token Validator
Decode and validate JWT tokens instantly in your browser. Inspect header and payload claims, check expiry, and verify HMAC signatures (HS256/HS384/HS512). Free and private.
Use Tool →API Key Validator
Validate API key format and detect the provider instantly in your browser. Supports OpenAI, Stripe, GitHub, AWS, Google, Anthropic, HuggingFace, Slack, SendGrid, Twilio, and more. Includes entropy analysis.
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 →Share Your Feedback
Help us improve this tool by sharing your experience