JWT Generator
If header uses alg=none, signature will be empty. For HMAC algorithms, provide a secret.
https://devtools.solutions/tools/security/jwt-generate.html
Build and sign a JSON Web Token with a custom header, payload, and secret using HMAC-SHA256. Runs in your browser.
If header uses alg=none, signature will be empty. For HMAC algorithms, provide a secret.
This tool generates JWTs signed with HMAC-SHA256 (HS256).
No. Token generation is performed client-side in your browser using the Web Crypto API.
Yes. You can edit the JSON header and payload freely before signing.
Input: Header: {"alg":"HS256","typ":"JWT"} / Payload: {"sub":"1234","name":"Ada"} / Secret: mysecret
Output: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0IiwibmFtZSI6IkFkYSJ9.[signature]
This tool Base64url-encodes the header and payload JSON, concatenates them with a dot, then signs the result using HMAC-SHA256 with the Web Crypto API. The resulting signature is Base64url-encoded and appended to form the final JWT. Processing runs in your browser.