Useful Hacks

JWT Generator

Create and sign a JWT with an HMAC secret — HS256, HS384 or HS512.

Signed entirely in your browser. Your secret is never sent anywhere.
  • Produces a real, verifiable HMAC-signed token from a payload and secret, in any of the 3 standard HMAC-SHA strengths.
  • Signed with Web Crypto in your browser — the secret is never transmitted.
  • Faster than standing up an auth server for local testing.

Why this is private

  • Signed entirely in your browser. Your secret is never sent anywhere.
  • Open your browser's DevTools → Network tab while using this tool — you won't see a request carrying your input, because it never leaves your device.
  • Nothing you enter is uploaded to a server or shared with us — the processing happens entirely on your device.

Overview

Builds and signs a JSON Web Token using HS256, HS384 or HS512 — useful for generating test tokens during development.

How to use it

  1. 1Choose an algorithm (HS256, HS384 or HS512).
  2. 2Enter a payload as JSON.
  3. 3Enter the HMAC secret your server will verify against.
  4. 4The signed token updates automatically.

Tips

  • Only use this for test/development tokens with test secrets — never paste a real production signing secret into any web tool, including this one.

Frequently asked questions

What people use it for

Test an authenticated endpoint locallyMint a token with the claims your API expects and the dev signing secret.
Reproduce a permissions bugCraft a token with a specific `role` or `scope` claim to trigger the path.
Seed a token for an integration testGenerate a fixed token for a test that needs a valid JWT.
Test a server configured for a stronger HMAC variantSwitch to HS384 or HS512 if your server expects a stronger algorithm than the default HS256.
Learn how JWT signing worksChange the payload or secret and watch the signature segment change.

Related guides

Related tools

All developer tools

Ready to use JWT Generator?

JWT Generator

Search tools

Search for any tool by name, category or keyword