JWT generator

Signs a JSON payload into a JWT with HMAC — HS256, HS384 or HS512 — for testing APIs. The secret is never stored.

In
JSON
Out
JWT
Reverse: JWT → JSON
Options
Input · JSON
Output · JWT

Waiting for input

Runs in this tab. The text is not sent anywhere.

Related

Questions

Why only HS algorithms?

RS and ES need a private key, and a private key should not be pasted into a web page. Sign those where the key lives.

How do I set an expiry?

Add "exp" with a Unix time in seconds; "Add iat" puts the current time in "iat".

↑ ↓ move · Enter open · Esc close