JWT Encoder
Sign a JSON payload as a JSON Web Token with HMAC, RSA, RSA-PSS or elliptic-curve keys.
Runs in your browser. Nothing is uploaded.
Loading the app…
Related apps
How to use it
- Which algorithms are supported?
- HS256, HS384 and HS512 with a shared secret; RS256, RS384, RS512, PS256, PS384 and PS512 with an RSA private key; ES256, ES384 and ES512 with an elliptic-curve private key.
- What format should the private key be in?
- PKCS#8 PEM, the kind that starts with -----BEGIN PRIVATE KEY-----. An older -----BEGIN RSA PRIVATE KEY----- file can be converted with openssl pkcs8 -topk8 -nocrypt. Or press New test key to make a fresh pair.
- Can I use this for production tokens?
- No. It is for building test tokens. A production signing secret should never be typed into any website.
- Is my data uploaded?
- Nothing leaves your device: the work happens in your browser.