JWT Builder (HS256)
Build a JWT by filling in header, payload and secret. HS256 signature computed in the browser via SubtleCrypto.
Build a test token and watch the signature happen
When debugging an API you almost always need a JWT with specific claims: a different sub, an already-expired exp, one extra field in the payload. Spinning up the backend just to mint a test token is slow. Here you edit the header and payload as JSON, type the secret, and the HS256 token appears assembled and signed in real time, with the three parts color-coded so you can see where one ends and the next begins.
The three parts are base64url, not plain base64: '+' becomes '-', '/' becomes '_' and the '=' padding is dropped, which is why pasting a JWT into a generic base64 decoder often fails. The signature is an HMAC-SHA256 computed over the exact bytes of header.payload. One deliberate gotcha: changing the alg field in the header changes nothing here, the tool always signs with HS256. The same lesson applies to servers: blindly trusting the alg inside a token is a classic vulnerability.
Use a test secret, never a production one, even though the signature is computed by SubtleCrypto right in your browser with nothing sent anywhere. Remember a JWT is signed, not encrypted: anyone can decode the payload without the secret, so keep passwords and sensitive data out of the claims. And the most common bug of all: exp and iat are Unix seconds, not milliseconds; pasting Date.now() without dividing by 1000 produces a token that only expires thousands of years from now.
Frequently asked questions
Why does my server reject the token I built here?
I changed alg in the header to RS256. Is the token RS256 now?
Can I see what is inside a JWT without the secret?
Read more on this
Related Tools
TOTP otpauth URI Builder
Builds an otpauth://totp/ URI with issuer, account, base32 secret, digits and period for QR code apps.
Network Error Logging (NEL) Builder
Build NEL and Report-To headers to send network error reports to your own endpoint with sampling fractions.
SPF Record Builder
Builds an SPF record step by step (ip4, ip6, include, mx, a, ~all, -all) and counts the terms that consume a DNS lookup, so you can compare against the limit of 10.
Clear-Site-Data Header Builder
Build a Clear-Site-Data header (cache, cookies, storage, executionContexts) — useful on logout to wipe origin data.
RSA Key Pair Generator
Generate RSA key pairs (public and private) of 2048 or 4096 bits directly in your browser. Useful for SSH, JWT, asymmetric encryption and certificates. No data sent to servers.
DMARC Record Builder
Create a DMARC record with policy (none/quarantine/reject), percentage, ruf/rua mailto and SPF/DKIM alignment.