
Inspect a JWT header, payload and time claims locally. Decoding is not signature verification.
Build and HS256-sign JSON Web Tokens from header and payload JSON, entirely in your browser.
Your files never leave your device. Everything runs in your browser.
JWT Encoder builds a signed JSON Web Token from three inputs: a header object, a payload object and a secret. It Base64URL-encodes the first two and signs header.payload with HMAC-SHA256 through the Web Crypto API, producing the familiar three-part token.
HS256 is a symmetric algorithm: the same secret signs and verifies. That suits services you control end to end and fits poorly when a third party must verify tokens without being able to mint them, which is the problem RS256 and ES256 solve.
Everything runs locally and the secret lives only in the password field. Two details matter before you use the output. Leaving the secret empty produces an unsigned two-part token, and the header's alg value is not enforced, because signing is always HMAC-SHA256.
{"alg":"HS256","typ":"JWT"}, payload {"sub":"test-user-123","name":"Test User","iat":1700000000,"exp":1900000000,"nbf":1700000000} and secret test-secret-do-not-use produced a signature ending a4epDJkId33yMr4ccl92NR05yVllt-tsew3hrg1I7oo; an independent HMAC-SHA256 calculation over the first two parts matches it exactly.HMAC-SHA256, also called HS256, through the browser's Web Crypto API. There is no RSA or ECDSA option.
No. It stays in page memory and is used locally for the HMAC operation. Nothing is uploaded or stored.
The tool outputs the header and payload without a signature, in two parts. Many libraries treat that as an unsigned and therefore invalid token.
No. Verification is not part of this tool. The companion JWT Decoder shows token contents but also does not verify signatures.
It is a sensible default. You can edit the JSON, but changing alg does not change the signing algorithm, and a mismatch confuses verifiers.
That depends on the whole system: secret quality, storage, rotation and where the token is accepted. The algorithm choice alone does not make a system secure.
Related security tools: JWT Decoder, JSON Formatter, Base64 Encoder.
Header, payload and secret are processed locally in your browser; nothing is uploaded or stored.