Home › Programmer & Developer Tools › JWT Generator & Signer

JWT Generator & Signer

Build a JSON Web Token from a custom payload and sign it with HS256, HS384, or HS512 using your secret — all locally via the Web Crypto API. The companion to the JWT debugger: one decodes, this one creates.

How to use JWT Generator & Signer

  1. Choose an HMAC algorithm and edit the payload JSON.
  2. Add iat/exp claims with one click if you need them.
  3. Enter your secret and copy the signed token.

Frequently asked questions

Does my secret leave the browser?
No. Signing uses the browser’s Web Crypto API on your device; the secret is never uploaded and is not saved.
Why only HS256/384/512?
HMAC algorithms sign with a shared secret, which works fully client-side. RS/ES algorithms need an asymmetric private key and are out of scope here.

More Programmer & Developer Tools

  • JSON Validator — Validate, parse, and prettify JSON — load it from a URL or curl command, or convert a Python dict (single quotes, True/False/None) to JSON. Identifies syntax errors with precise line number reporting.
  • Code Beautifier — Automatically format your JavaScript, CSS, and HTML with customizable indentation and style rules.
  • Minifier — Reduce bundle sizes by removing whitespace, comments, and optimizing code structure for production.
  • SQL Formatter & Beautifier — Pretty-print and indent SQL queries across dialects (PostgreSQL, MySQL, T-SQL, BigQuery, and more) with configurable keyword casing.
  • XML Formatter — Beautify and validate XML with configurable indentation, or minify it to the smallest valid output — entirely in your browser.
  • JSON Diff — Compare two JSON objects (or Python dicts) structurally to spot added, removed, and changed keys — or switch to line and word mode for plain text and code.
  • RegEx Tester — Build and test regular expressions in real-time with syntax highlighting and match group visualization.
  • Base64 Converter — Quickly encode and decode strings or files to Base64 format for safe data transmission.