JWT Encoder & Generator

Generate signed JSON Web Tokens with custom header and payload. HS256/384/512, RS256, PS256 and ES256 signing, key generation and iat/exp helpers.

Runs 100% in your browser. Nothing you paste is uploaded.

Header

Secret

Payload

Encoded JWT

Open in decoder

About the JWT Encoder

Create JWTs for local development, integration tests and API debugging. Edit the header and payload as JSON, pick an algorithm and sign with a shared secret or private key. One click adds iat, exp or a random jti, and the tool can generate a matching key pair so you can configure the verifying side straight away.

Features

  • HS256/384/512, RS256/384/512, PS256/384/512, ES256/384/512
  • Generate secrets and RSA/EC key pairs
  • PKCS#8, PKCS#1 PEM or JWK private keys
  • Add iat / exp / jti with one click
  • Warns about weak HMAC secrets
  • Live colour-coded output

How to use it

  1. Choose the signing algorithm.
  2. Enter a secret or private key — or click Generate key.
  3. Edit header and payload JSON; the token updates live.
  4. Copy the token or open it in the decoder.

Frequently asked questions

Which algorithm should I choose?

Use RS256 or ES256 when tokens are verified by parties that must not be able to create tokens (public-key verification). Use HS256 only when the issuer and verifier are the same trusted service.

How long should an HS256 secret be?

At least 32 random bytes (256 bits). The Generate key button creates one in Base64.

Esc