JWT Generator
Signing happens entirely in your browser via the Web Crypto API. Your secret and claims never leave this page.
What This Tool Does
JWT Generator is built for deterministic developer and agent workflows.
Build and sign a JSON Web Token (HS256/384/512) entirely in your browser with editable header and claims.
Use How to Use for execution steps and FAQ for constraints, policies, and edge cases.
Last updated:
This tool is provided as-is for convenience. Output should be verified before use in any production or critical context.
Agent Invocation
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/jwt-generator/
For automation planning, fetch the canonical contract at /api/tool/jwt-generator.json.
How to Use JWT Generator
- 1
Edit the header
Keep the default header with alg and typ, or adjust it. The alg field stays in sync with the algorithm selector.
- 2
Write your claims
Enter the payload as JSON, or use the quick-add buttons for iat, exp, sub, iss, and aud.
- 3
Choose algorithm and secret
Pick HS256, HS384, or HS512 and enter the shared secret used to sign and later verify the token.
- 4
Read the preview
Check the decoded claims and expiry status to confirm the token contains what you expect.
- 5
Copy the token
Copy the signed header.payload.signature string into your app, tests, or API client.