Skip to content
FlexibleToolsAI
Security Toolkit · 100% Client-Side Private

JWT Generator

Build and sign JSON Web Tokens for testing and development. Edit the payload claims, add expiry with one click, choose any standard algorithm, and sign with a shared secret or a private key — or generate a test RSA/EC key pair. Signing uses the Web Crypto API; nothing is sent to a server.

Choose an algorithm, edit the JSON payload (use the quick buttons to set iat and exp), and enter a secret for HS256/384/512 or paste a PKCS#8 private key or JWK for RS, PS and ES algorithms. Click Sign to get a compact JWT, colour-coded into header, payload and signature.

alg and typ are set for you
Keys and secrets stay in your browser (Web Crypto API). Use this for development and testing; in production, sign tokens on your server with a secret that never touches a browser.

Zero Server Uploads

Files process in local RAM

Instant WASM Speed

No waiting queues or lags

Unlimited Batching

Convert files without limits

What Does JWT Generator Do & How Does It Work?

Choose an algorithm, edit the JSON payload (use the quick buttons to set iat and exp), and enter a secret for HS256/384/512 or paste a PKCS#8 private key or JWK for RS, PS and ES algorithms. Click Sign to get a compact JWT, colour-coded into header, payload and signature.

How to Use JWT Generator (Step-by-Step)

  1. 1Choose the signing algorithm.
  2. 2Edit the payload claims and add iat/exp.
  3. 3Enter the secret or private key (or generate test keys).
  4. 4Sign and copy the token.

Choosing an algorithm

HS256 uses one shared secret for signing and verifying — simple, but every verifier can also create tokens. RS256, PS256 and ES256 sign with a private key and verify with a public key, so many services can verify without being able to issue tokens. ES256 gives short signatures and fast verification.

RFC 7518 requires HMAC secrets at least as long as the hash (32 bytes for HS256). Use the “Generate a strong secret” link rather than a word.

A JWT is signed, not encrypted

Anyone can decode the payload with the JWT Decoder, so never put passwords or sensitive personal data in it. Keep access tokens short-lived (exp of 5–60 minutes) and verify signatures with the JWT Signature Verifier.

Frequently Asked Questions

Can I use these tokens in production?

They're valid JWTs, but production tokens should be signed on your server with a secret that never touches a browser. Use this tool for testing, fixtures and debugging.

What key format do I need for RS256?

A PKCS#8 PEM private key (-----BEGIN PRIVATE KEY-----) or a private JWK. Convert older RSA PRIVATE KEY files with: openssl pkcs8 -topk8 -nocrypt -in key.pem

Is my data sent to your server?

No. This tool runs entirely in your browser using the Web Crypto API and JavaScript. Nothing you type or generate is uploaded, logged or stored.

Guides & Tutorials

Explore More Free Browser Tools

View All 290+ Tools Directory →

All tools run client-side in your browser with zero data uploads, no sign-up, and zero tracking. Discover other popular converters and calculators:

Cryptographic Standards & Zero-Knowledge Privacy Architecture

JWT Generator is engineered to strict security and cryptographic specifications — guaranteeing zero data leakage, zero backend telemetry, and audited implementation:

  • 1. 100% Zero-Knowledge Client Execution: Passwords, private keys, hashes, and API tokens are computed strictly in your browser's local memory via Web Crypto API (SubtleCrypto) and audited @noble/hashes. Nothing is ever sent to or stored on our servers.
  • 2. Official RFC & NIST Compliance: Adheres to established security specifications including RFC 2104 (HMAC), RFC 6238 (TOTP), RFC 9106 (Argon2id), RFC 4122 (UUID v4), and FIPS 180-4 (SHA family).
  • 3. Memory-Hard & Brute-Force Resilient: Incorporates robust hashing algorithms (Argon2id, bcrypt, PBKDF2) with configurable memory and iteration costs to defend against GPU-accelerated cracking.
  • 4. Transparent & Inspectable: Every cryptographic calculation occurs visibly in client-side JavaScript. You can verify through your browser's Network tab that zero outbound requests are made with your sensitive inputs.
  • 5. SSRF-Safe Diagnostic Probing: For internet-facing checks (SSL certificates, DNS records, HTTP security headers), handshakes run through isolated proxies that never log or store queried domains.

Suggest a Feature or Improvement for JWT Generator

Need custom options, higher limits, or extra format support? Let our engineering team know!