ToolBuddy
In Browser

JWT Encoder

Sign a JSON object into a compact HS256, HS384, or HS512 JSON Web Token in the browser. The HMAC secret stays in the tab, so you can mint a test token without posting it to a hosted encoder.

Runs in your browser. Nothing is uploaded.

Loading tool…

About this tool

Sign a JSON object into a compact JSON Web Token with HMAC-SHA256, HMAC-SHA384, or HMAC-SHA512. The header is alg and typ JWT, plus an optional kid. The secret never goes to a server.

How to use: paste a JSON object, enter the HMAC secret, pick HS256, HS384, or HS512, and copy the token. An optional key id is written into the header as kid. Arrays and bare values are rejected.

Example: a payload with sub and name, plus the secret you type, becomes a three-part token. Paste that token into the JWT decoder on this site, with the same secret, to check the signature.

Signing uses the Web Crypto API in this tab. This tool does not create RSA or ECDSA tokens, and it does not offer the none algorithm. After the page loads, signing works offline.

FAQ

Related Crypto tools