JWT Encoder
Build and sign a JWT with HS256/384/512 from a header, payload, and secret.
Header + Payload
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
{"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
HMAC Generator
Encoders & Crypto
Sign a message with HMAC using a secret key.
Bcrypt Hash Generator
Encoders & Crypto
Generate and verify bcrypt password hashes with adjustable cost.
Checksum Comparator
Encoders & Crypto
Hash text or a file and compare against an expected checksum.
File Hash Calculator
Encoders & Crypto
Compute SHA-1/256/384/512 digests of a local file.
Hash Generator
Encoders & Crypto
Generate MD5, SHA-1/256/384/512 hashes of text.
JWT Decoder
Encoders & Crypto
Decode a JWT's header and payload, and check expiry.
Frequently asked questions
Version 1.0.0 · Updated 2026-08-10 · Runs entirely in your browser