What Is the JWT Generator & Signer?
The JWT Generator, Signer & Signature Verifier is an offline developer utility for creating, signing, and mathematically validating JSON Web Tokens (RFC 7519). Unlike basic decoders that only unpack Base64URL strings without checking integrity, this tool utilizes the native W3C Web Cryptography API to calculate HMAC-SHA signatures (HS256, HS384, HS512) directly inside your browser memory. You can configure custom header and payload claims (sub, iss, aud, exp, iat, roles) and test signature verification without sending secret keys to external servers.
How to Generate and Verify JWTs
- 1Select an HMAC algorithm (HS256, HS384, or HS512) and type your signing secret key.
- 2Customize JSON claims in the Header and Payload editors, or click quick buttons to inject iat, exp, and jti.
- 3The signed JWT string is calculated automatically in real time using the browser's Web Crypto API.
- 4Click Test in Verifier to load the token and secret into the verification tab.
- 5In the Verify tab, paste any existing Bearer token and secret to validate the cryptographic HMAC signature and check whether the token is currently expired.
Common JWT Engineering Scenarios
Backend API Authentication Testing
Mint valid test JWTs with custom roles, user IDs (sub), and permissions to test protected REST or GraphQL API endpoints during local development.
Validate JWT Signature & Secret Matching
Paste an API token and your secret key to diagnose whether 401 Unauthorized errors are caused by secret mismatches or payload tampering.
Simulate Token Expiration & Clock Skew
Adjust the exp and iat Unix timestamps to verify how client authentication libraries handle expired credentials and refresh cycles.
Frequently asked questions
How are the HMAC signatures calculated securely?
Signatures are generated and verified via window.crypto.subtle (Web Crypto API) using raw HMAC keys with SHA-256, SHA-384, or SHA-512. No server-side network round-trip is made.
What is the difference between this tool and JWT Bearer Inspector?
JWT Bearer Inspector only inspects and decodes the Base64URL content of an existing token. This tool generates brand new signed tokens from scratch and cryptographically verifies signatures against a shared secret.
Are my secret keys transmitted over the internet?
No. All cryptographic operations run 100% locally in your browser sandbox. Your secret keys and token payloads never leave your computer.