ToolPal

JWT Encoder

Create signed JSON Web Tokens (JWT) with custom payload claims. Signs with HS256 (HMAC-SHA256) entirely in your browser.

AlgorithmHS256
Quick Add:
KeyValue

How to Use

Create signed JSON Web Tokens (JWT) with custom payload claims. Signs with HS256 (HMAC-SHA256) entirely in your browser.

  1. 1Enter a secret key in the Secret field — use any string for testing, but never your real production secret.
  2. 2Edit the payload claims in the table. Click 'Add Claim' to add new key-value pairs.
  3. 3Use the Quick Add buttons to insert standard claims like iss (issuer), exp (expiration), or aud (audience).
  4. 4Click 'Generate Token' to sign the JWT using HMAC-SHA256 (HS256) in your browser.
  5. 5Copy the generated JWT and use it in your application, Postman, or API testing tool.

Key Features

  • HS256 signing via Web Crypto API — runs entirely in your browser, nothing sent to servers
  • Editable payload claims table — add, remove, and edit any key-value claim
  • Smart type coercion — numbers and booleans are encoded as JSON types, not strings
  • Quick Add buttons for standard JWT claims (iss, exp, aud) with sensible defaults
  • Color-coded output matching the JWT Decoder — red header, purple payload, cyan signature

Frequently Asked Questions

Learn More