✍️

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.

ValidatorsDevelopment
Loading tool...

How to Use JWT Encoder & Signer

How to Use the JWT Encoder & Signer:

  1. Select Algorithm: Choose HS256 (default), HS384, or HS512. The algorithm is automatically set in the header JSON.

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

  3. 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.
  4. 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.

  5. 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).

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

742 views

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

298 views

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

260 views

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

246 views

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

228 views

Split large CSV files into smaller files by number of rows. Process large datasets in manageable chunks instantly.

Use Tool →
🛍️

Product Schema Generator

215 views

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

178 views

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

168 views

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

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback