JWT Generator

Generate JSON Web Tokens (JWT) for testing and development. Create custom header and payload, sign with HMAC algorithms. Free online JWT generator.

Privacy First

All processing happens in your browser. Your data never leaves your device.

How to Use

  1. 1Edit the header JSON (algorithm and type)
  2. 2Customize the payload with your claims (sub, exp, iat, etc.)
  3. 3Enter a secret key for HMAC signing
  4. 4Click "Generate JWT" to create the token
  5. 5Copy the generated JWT for testing

Example

Input:

Header: {"alg": "HS256", "typ": "JWT"}
Payload: {"sub": "1234567890", "name": "John Doe"}

Output:

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIn0.signature...

Create JSON Web Tokens (JWT) for testing, development, and learning purposes. Customize the header and payload with your own claims, and generate valid JWTs signed with HMAC algorithms.

Perfect for developers building authentication systems, testing API endpoints, or learning how JWTs work. The tool shows you each component of the JWT and how they combine to form the final token.

Important: This tool is for testing and educational purposes only. For production use, always generate and sign JWTs on your secure backend server, never in the browser or client-side code.

Frequently Asked Questions