JWT Generator & Verifier — Token Security Studio
Generate disposable HMAC JWTs, verify HS256/384/512 or RS256 signatures against keys you supply, inspect claims and export sanitized local diagnostics. Signature verification never proves application authorization.
Browser-based · No account required · Copy and export
Build, verify and explain JWTs
100% local Web Crypto · Explicit algorithm + key policy · No authorization or issuer-trust verdict
Generate
Input never leaves this browserDecode alone does not check the signature. The selected algorithm and imported key are independent of untrusted token headers.
Decoded-only comparison. Signatures are not verified in this view.
Create disposable signed local fixtures. These are learning examples, not application credentials.
Signing with RS256 requires an explicitly pasted unencrypted PKCS#8 private key. Prefer disposable test keys; no key is stored or included in reports.
Claims policy & test clock
Test-clock values are hypothetical. `iat` does not automatically define token expiry. This is not complete OIDC validation.
Local assessment
Always scoped · never authorizationDecoded protected header (not proof of trust)
Decoded payload (untrusted unless checked)
Generated JWT · sensitive, click to reveal
Sanitized reports intentionally omit token bytes, claim values and secrets. Downloaded tokens and clipboard history are outside this page's control.
How to use JWT Generator & Verifier
- Choose generation or verification. For generation, enter a JSON object payload and choose issued-at/expiration settings.
- For verification, paste the token and secret. Optionally require an exact issuer and audience and choose a clock-tolerance window.
- Run locally and inspect every result field. Clear sensitive fields when finished and validate your application's remaining requirements separately.
When to use this tool
Create an HS256 test token or verify one with a shared secret. Match algorithm, issuer, audience and time checks to your application; this tool does not provide an RS256 or identity-provider validation service.
A JWT must satisfy more than its signature
HS256 uses the same secret to sign and verify. The report separates HMAC/RSA signature verification with exp and nbf checks and any explicitly requested issuer/audience checks. Audience can be a matching string or a matching member of an aud array. Clock tolerance allows a bounded number of seconds around exp and nbf; it does not bypass the signature or make an expired token indefinitely acceptable.
Worked example
Expected issuer: https://issuer.example.test
Expected audience: example-api
Clock tolerance: 0 seconds
Aggregate valid requires a valid signature and every enabled check. Separate a matching signature from matching claim requirements
{"sub":"demo-user","iss":"practice-issuer","aud":"practice-client"} - Use this authored payload in Generate mode with a disposable practice secret. Choose issued-at and expiration deliberately; enabling those options adds values based on the current browser clock.
- Generate the test token, then move it to Verify mode with the same practice secret. Supply practice-issuer and practice-client in the expected issuer and audience fields.
- Inspect signatureValid separately from issuerValid, audienceValid and time checks. A missing expected issuer/audience means that requirement was not requested.
- As a planned comparison, change only expected audience to another label and verify again. The signature can match while a requested audience check fails.
- Clear secret & token when finished. Do not reuse the practice token as an application credential.
Authored round-trip plan, no token generated or cryptography run for this page. HS256 requires a shared secret and browser Web Crypto; there is no key discovery, revocation or complete authorization check. Use JWT Decoder only when readable, explicitly unverified claims are sufficient.
Limits and output checks
Supported: HS256, HS384, HS512 and RS256 compact signed JWTs. No ES256, JWE, remote key discovery, revocation lookup or application authorization. Do not reuse a production secret for casual tests. The decoder on this site is separate and never verifies a signature. A generated token is not evidence that a service will accept it.
Reference: JWT claim validation definitions.
Frequently asked questions
Does a valid signature accept an expired token?
No. The aggregate result also enforces checked time claims, including the selected clock tolerance.
Are issuer and audience always required?
Only when you enter expected values here. A consuming application's requirements may be stricter and must be enforced there.
Does clock tolerance affect issued-at?
The tool validates NumericDate types and uses tolerance for expiration/not-before decisions. It does not implement a maximum token age or future-iat authorization policy.
JWT verification, key trust and authorization
JSON Web Tokens are generally readable Base64URL data, not encrypted messages. Signature verification checks whether the signed bytes correspond to the algorithm and key you deliberately selected. It does not determine who originally controlled a supplied key, whether a user exists, whether a token has been revoked, or whether an API authorizes an operation.
JWT algorithms and local keys
HS256, HS384 and HS512 use local HMAC secret bytes. The UTF-8, hex and Base64URL key encodings produce different key material. RS256 checks locally pasted SPKI PEM, public RSA JWK or bounded JWKS with unambiguous key selection, and can sign with an explicitly supplied unencrypted PKCS#8 private key. Do not paste a production private key into casual test tools. This page does not fetch header-provided JWKS URLs.
Claims and clock boundaries
Time claims use Unix seconds. Expiration at the evaluation time fails when leeway is zero; not-before and issuer/audience have independently reported outcomes. A simulated UTC test clock changes only the local diagnostic assessment, not an identity provider or deployed service.
Privacy and outputs
All work on entered tokens and keys occurs in browser memory using Web Crypto. The tool does not automatically persist them or upload them for verification. Reports omit raw tokens, claim values and secret material. Browser extensions, the device, downloads and OS clipboard history remain outside this tool's guarantees. JavaScript cannot ensure removal of all garbage-collected string copies.
References
RFC 7519 JWT, RFC 7515 JWS, RFC 7518 JOSE algorithms, RFC 8725 JWT security best practices.
HS256 verification is separate from token decoding
Choose generation or verification, use the intended sample secret and inspect checked claims and expected issuer/audience fields. Match any consuming application’s requirements separately.
Scope of this workflow
Supported: HS256/384/512 and RS256 via local Web Crypto. Remote key discovery and application authorization are not implemented. The separate JWT Decoder does not verify signatures.
JWT Decoder - Inspect Header, Payload & Claim Dates · All developer tools · Privacy policy · Contact PixelOkay