SHA-256 Hash Generator
Generate SHA-256 hash from any string instantly on the fly within less than a second with the free SHA256 Hash Generator.
Build and sign JSON Web Tokens with HS256, HS384, or HS512, free and entirely in your browser with the secret never leaving your device.
The JWT Generator is a free browser-based tool that builds and signs JSON Web Tokens from an editable header and payload. You choose an HMAC algorithm, enter a secret, and it Base64URL-encodes the header and payload then signs them with crypto.subtle to produce a complete, ready-to-use signed token β all locally, so your secret never leaves the browser.
A JSON Web Token (JWT) is a compact, URL-safe way to represent claims between two parties. It has three parts joined by dots: a header that names the signing algorithm, a payload that holds the claims (like who the user is and when the token expires), and a signature that proves the token was not tampered with. This tool creates the signed version; if you already have a token and want to inspect it, the companion JWT Decoder pulls the header and payload apart for you.
alg field stays in sync with the algorithm selector automatically.iat, exp, sub, and iss.header.payload.signature string.Because signing a token means handling a secret, and a secret should not be sent to a stranger's server. Everything here runs in your own tab using the native Web Crypto API, so the header, payload, and signing key stay on your machine. That makes it safe for building test tokens, prototyping an auth flow, or teaching how JWTs work without any privacy trade-off.
crypto.subtle, not a mock β they verify against any standard library.The tool JSON-stringifies your header and payload, encodes each as Base64URL, and joins them with a dot to form the signing input. It then imports your secret as an HMAC key and signs that input with the chosen SHA variant. The raw signature bytes are Base64URL-encoded and appended, giving the final header.payload.signature token. Base64URL is a URL-safe variant of Base64, and if you want to see plain encoding in isolation the Base64 Encode and Decode tool demonstrates how bytes map to safe ASCII. The underlying HMAC construction is the same one exposed directly by the HMAC Generator, and the SHA-256 digest at the heart of HS256 is what the SHA-256 Hash Generator computes on its own.
A signed JWT protects integrity, not confidentiality. Anyone can Base64-decode the payload and read every claim, so the signature only guarantees the content was not changed by someone without the secret β it does not hide anything. If you need the contents themselves to be unreadable, that is a job for encryption, such as the AES Text Encryption tool. Use this generator when you want a verifiable token, and never place passwords or other secrets inside its claims.
No. The header, payload, and secret are all processed inside your browser with the Web Crypto API. Nothing is uploaded, logged, or stored anywhere, which is why the secret never leaves your device.
HS256, HS384, and HS512 β the HMAC family, which sign and verify with a single shared secret using SHA-256, SHA-384, and SHA-512 respectively. Asymmetric algorithms like RS256 require a private key pair and are not part of this tool.
No. Even though everything runs locally, it is bad practice to paste real production signing secrets into any web tool. Use a throwaway or test secret here, and keep production keys in your server environment.
They are timestamps in seconds since the Unix epoch. The iat claim marks when the token was issued and exp marks when it expires. The claim buttons set iat to now and exp to one hour ahead by default; edit the numbers to suit your needs.
No. A JWT payload is only Base64URL-encoded, not encrypted, so anyone holding the token can read its claims. The signature proves the claims were not altered, but it does not conceal them. Never store sensitive data in the payload.
This tool builds and signs new tokens. To read the header and payload of an existing token, use the JWT Decoder, which splits and decodes the three parts for inspection.