About this tool
JWT Generator builds a signed JSON Web Token from a JSON payload and a secret. Edit the payload (a sample with sub, name and iat is pre-filled), enter your secret, and press Generate; the token appears as three dot-separated parts that you can copy.
The header is fixed to {"alg":"HS256","typ":"JWT"}. The header and payload are serialized as compact JSON, encoded as UTF-8 and then base64url without padding, and the signature is HMAC-SHA256 over header.payload computed with the browser's WebCrypto API using your secret text as UTF-8 key bytes. Only HS256 is supported; there is no RS256, ES256 or unsigned mode.
The tool does not add or change claims: iat, exp and nbf are included only if you type them, and times are numeric Unix seconds. An empty secret or text that is not valid JSON produces an error and no token. Be aware that the payload is re-serialized, so whitespace is removed, duplicate keys collapse to the last one, and integers beyond 2^53 lose precision. A JWT is signed, not encrypted, so anyone holding the token can read the payload. Nothing is uploaded; signing happens locally.