JWT Generator

Create signed JSON Web Tokens from a JSON payload. Select an HMAC algorithm, enter your secret key, paste claims, and click Run.

  • Runs entirely in your browser
  • No data stored or sent to a server
  • Free forever — no signup
  • Instant conversion

Input and Output

Use the interactive encoder and decoder on this page to process your text.

Learn more about JWT generation

How to Generate JWT Tokens for Testing

JWT Generation

When to Generate JWTs

Generate signed JWTs when building test fixtures, prototyping API clients, or debugging authorization flows — without setting up a token issuer.

Supported Algorithms

This tool signs tokens with HMAC algorithms (HS256, HS384, HS512). RS256 signing requires a private key and is not supported in-browser.

Security Note

Never embed signing secrets in production client-side code. Use this tool only for local development and testing.

Frequently asked questions

Does this add an iat claim automatically?

Yes. If your payload does not include iat, the tool adds the current Unix timestamp.

Can I generate RS256 tokens?

Not currently. Use HS256/384/512 for HMAC-signed test tokens, or sign RS256 tokens with your backend.