Skip to content
LovTools
EN

JWT Generator

Create and sign HS256/384/512 JSON Web Tokens for testing.

Processed locally on your device — nothing is uploaded.

About the JWT Generator

Testing an API locally often needs a valid token. Paste a JSON payload, enter the shared secret your server uses, and this tool creates a signed JWT. Issued-at (iat) and an optional expiry (exp) are added for you.

The secret stays on your device — the HMAC signature is computed with the Web Crypto API. Use test secrets, not production keys.

How to use the JWT Generator

  1. Paste the JSON payload (claims).
  2. Enter the secret, algorithm and expiry.
  3. Copy the token and test it.

Features

  • Continue with…: send the result straight into a related tool, no copy and paste
  • HS256, HS384, HS512
  • Automatic iat and optional exp
  • Base64-URL encoding
  • Decode it with the JWT Decoder

Supported formats

  • Plain text

Frequently asked questions

Does it support RS256?

Not yet. RS256 needs a private key; this tool focuses on shared-secret HMAC tokens.

Is my text sent anywhere?

No. Everything runs in your browser, so nothing you paste is uploaded or stored.

Added · Last reviewed · Maintained by Sohail Khax · How we test tools