Skip to main content
SecurityFreeBy Daniel BeglaryanUpdated August 2026

Generate a JWT

Build and sign a JSON Web Token for testing — right in your browser.

PrivateWorks OfflineNo Account

These are test tokens

The token is built and signed entirely in your browser — no key, secret, or claim ever leaves your device. Use it for local development and testing only. As a rule, never paste a real production signing secret or private key into any web page, including this one, on a machine you don’t fully trust.
Header
Payload
Add a claim
Algorithm

Signing with HS256HMAC · shared secret.

Secret
Deep dive

About Generate a JWT.

Build and Sign a JSON Web Token in Your Browser

Edit the header and payload as plain JSON, pick a signing algorithm, provide a secret or key, and get a ready-to-use token. The JWT Generator supports HMAC (HS256/384/512) with a shared secret, and RSA and elliptic-curve signatures (RS, PS, and ES at 256/384/512) with a pasted PKCS#8 private key — or generate a throwaway test key pair with one click. One-tap helpers add the common registered claims (iat, exp, nbf, sub, iss, aud, jti) so you do not have to remember the epoch math.

Everything — the claims, the secret, the private key, and the signing itself — happens locally in your browser using the Web Crypto API. Nothing is uploaded, logged, or sent to a server, which is exactly what you want when a signing key is involved. Many online JWT tools sign on their backend and see whatever key you paste; this one never does.

These are test tokens. The tool is for development, debugging, and learning — not for minting production credentials. Treat any secret or key you paste here the way you would anywhere: only on a machine you trust, and never a live production signing key.

Common Use Cases

  • API testing: Mint a token with a specific subject or scope claim to exercise an authenticated endpoint from Postman, curl, or your test suite.
  • Debugging auth flows: Set an expiry (exp) in the past or a not-before (nbf) in the future and watch how your middleware handles an expired or premature token.
  • Learning how JWTs work: Switch the algorithm or edit a claim and see the three-part token, plus its decoded header and payload, update instantly.
  • Local key pairs: Generate an ES256 or RS256 key pair, sign with the private key, then verify with the printed public key in your own service.
  • Test fixtures: Produce consistent tokens for integration tests without standing up a real identity provider.

Privacy: The JWT Generator runs entirely in your browser. Your header, payload, secret, and private key never leave your device — no upload, no network request, no storage.

Three steps

How to use Generate a JWT.

01

Upload your file

Drag and drop or click to select your file.

02

Choose settings

Adjust quality, size, or format options.

03

Download result

Your processed file is ready instantly.

More in Security

Related security tools.

Why CipherForces

Privacy-first tools that work everywhere.

100% Private
From $39
Works Offline
No Account
188 Tools

Need more than a tool?

One team for your website, print, automation & branding — websites from $799.

Explore all 188 tools