JWT Generator
100% FreeSign HMAC JWTs (HS256/HS384/HS512) for API testing — secret, payload, algorithm, signed token. Pairs with the JWT Decoder for round-trip verify.
Standard claims: iss, sub, aud, exp, nbf, iat, jti.
The secret never leaves your browser. Use ≥ 32 random bytes for HS256, ≥ 48 for HS384, ≥ 64 for HS512.
Embed This Tool
Easy to EmbedAdd JWT Generator to your website or blog in seconds.
- Responsive design
- Lightweight & fast
- No backend required
- Always up-to-date
<iframe
src="https://tools.town/embed/jwt-generator/"
width="100%"
height="600"
style="border:none; border-radius:12px;"
loading="lazy"
title="JWT Generator">
</iframe> Advertisement
How to Use
- 1 Pick HMAC algorithm — HS256 (default), HS384, or HS512
- 2 Paste or write your JSON payload (must be a JSON object)
- 3 Enter the shared secret used to sign the token
- 4 The signed JWT updates instantly as you change inputs
- 5 Copy and paste into Postman / curl Authorization header
Features
- All three HMAC algorithms (HS256/HS384/HS512)
- Real-time signing as you type
- Standard claim placeholders (iss, sub, aud, exp, nbf, iat, jti)
- Custom header claims (e.g., kid for key rotation)
- Round-trip verifiable with the JWT Decoder
- Uses Web Crypto subtle.sign — same primitive as Node `crypto`
Why it Matters
Backend API tests need real JWTs. Spinning up a Node script with `jsonwebtoken` for every test fixture is overkill — most of the time you just want a quick token for one experiment. This tool produces RFC 7519-compliant tokens in milliseconds, and they verify against any conforming JWT library.
Use Cases
API Testing
Mint a quick token to test a protected endpoint
Webhook Signing
Generate signed payloads to test webhook handlers
OAuth Mock
Build a test JWT with custom scopes / roles
Frequently Asked Questions
Does this support RS256 or ES256 (asymmetric algorithms)?
How long does the token last?
Is my secret safe?
How is HS256 different from HS512?
Related Tools You Might Like
Password Generator
Generate strong, secure and random passwords instantly. Keep your accounts safe with our advanced password generator.
SHA-256 Hash Generator
Generate SHA-256 hashes and HMAC-SHA256 signatures — the secure standard for file integrity, JWT signing, and API request signatures.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes instantly. Client-side.
JWT Decoder
Paste any JSON Web Token to decode header, payload claims, and inspect expiry status — 100% client-side, signature never leaves the browser.
UUID Generator
Generate cryptographically random RFC 4122 v4 UUIDs — single, bulk (up to 1000), with format options. 100% client-side.