JWT Encoder

Build and sign a JWT with HS256/384/512 from a header, payload, and secret.

Support
Works Offline
Privacy First
No Login
No API

Header + Payload

JSON
{"alg":"HS256","typ":"JWT"}

Signed token

About the JWT Encoder

Craft a JSON Web Token by editing the payload JSON, choosing an HMAC algorithm, and providing a secret. The token is signed locally using the Web Crypto API, with quick-add buttons for common iat/exp claims.

Examples

Sign a payload

JSON{"sub":"1234567890"}

Output

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Keyboard shortcuts

  • Copy the main outputCtrl / ⌘ + Shift + C
  • Download the resultCtrl / ⌘ + S
  • Share this toolCtrl / ⌘ + Shift + S
  • Reset the inputsAlt + R
  • Open the tool search paletteCtrl / ⌘ + K

Related tools

Frequently asked questions

Read more

Comments

No login needed. Comments appear after a quick review.

Protected by an on-site captcha — no third-party trackers.

Optional: get an alert when your comment is published or replied to, plus new tool announcements. No sign-up.

Loading comments…

Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser