Build and sign JWT tokens with custom claims, expiration, and HMAC algorithms (HS256/384/512). Set registered claims via form, add custom JSON payload — all signed locally in your browser.
What is the JWT Builder & Decoder?
The JWT Builder & Decoder is a critical security tool for developers working with JSON Web Tokens, designed with a strict zero-data-transmission policy. When debugging authentication flows, pasting real user tokens or private keys into online tools poses a massive security risk. This utility performs all decoding, encoding, and signature verification entirely locally in your browser. Whether you are inspecting the payload of a stale session token or manually signing a new JWT with a secret key for API testing, this tool ensures your credentials never leave your machine.
How does it work?
All cryptographic operations are executed using the Web Crypto API or local JavaScript libraries (like `jose` or `crypto-js`). When decoding, it simply base64url-decodes the header and payload segments. When signing or verifying, it uses the provided secret or key to run the HMAC SHA-256 (or RSA) algorithm locally, generating the signature hash and comparing it against the token.
Common use cases
1. Safely inspecting the payload claims of a production JWT to debug user role or expiration issues.
2. Manually generating and signing custom JWTs with specific claims for testing backend authentication middleware.
3. Verifying if a token signature is valid against a known secret during local API development.