Nothing yet — inputs you run here are remembered on this device.
Nothing yet — inputs you run here are remembered on this device.
Updated 2026-08-19
Build and sign a JSON Web Token online, entirely in your browser. Enter a JSON payload and a secret, pick HS256, HS384, or HS512, and SnapTools constructs the header, Base64URL-encodes both parts, and computes the HMAC signature — giving you a real, spec-compliant token instantly. Nothing is uploaded: since the signature is just a local HMAC computation, your secret never needs to leave your machine.
This is the natural companion to the JWT Decoder: inspect a token you received, or build one to test against your own backend or another library. The generated token verifies correctly anywhere — paste it into the JWT Decoder with the same secret to confirm the round trip.
{"sub":"1234567890","name":"Ada Lovelace","iat":1516239022}
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkFkYSBMb3ZlbGFjZSIsImlhdCI6MTUxNjIzOTAyMn0.<signature>
curl -X POST https://thesnaptools.com/api/v1/tools/jwt-encoder \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"payload":"{\"sub\":\"1234567890\",\"name\":\"Ada Lovelace\",\"iat\":1516239022}"}'