JWT generator (HS256)

Build and sign a JWT with HMAC-SHA256 from a JSON payload and a secret — or verify one.

Registered claims

Signed with WebCrypto HMAC-SHA256 in this browser. The secret and token never leave your device.

HS256 only. This creates test tokens — anyone holding the secret can forge them, so use a throwaway secret, not a production one.

How to use

  1. Paste a JSON payload (and optional header overrides).
  2. Enter the secret and optional iat/nbf/exp claims.
  3. Copy the signed token or verify an existing one.

What it supports

HS256 only — RS256, ES256, and other algorithms are not supported. The secret never leaves the page; signing and verification use the Web Crypto API. Payload up to 100 KB, secret up to 1,024 characters.

Related tools

Related guides