Create, configure, and sign JSON Web Tokens with custom headers, registered claims, and cryptographic signing keys. 100% private in-browser generation.
| Claim | Standard Name | Decoded Value / Meaning |
|---|
JWT payloads are Base64URL-encoded, not encrypted. Any client or intermediate proxy can decode the payload and view the claims. Never store sensitive credentials, plaintext passwords, credit cards, or internal infrastructure secrets in token payloads. Tokens generated with test keys or shared secrets must never be used in production environments.
Follow these simple steps to construct, customize, and sign standard JSON Web Tokens directly in your web browser:
Select your signing algorithm from the dropdown: HMAC (HS256, HS384, HS512) for symmetric secrets or RS256 for RSA private keys.
Verify the token header JSON. The alg attribute synchronizes automatically with your chosen algorithm.
Enter your user identifiers, roles, permissions, and custom metadata in standard JSON format.
Use the Quick Claims Helper toolbar to inject standard timestamps (iat, nbf) and presets (+15m, +1h, +24h, +7d).
Provide your HMAC secret passphrase or RSA PKCS#8 PEM private key. Use the reveal toggle or random generator as needed.
Click Generate JWT to compute the signature. Copy the compact token or inspect decoded claims in one click.
The Internet Engineering Task Force (IETF) defines seven standard registered claims in RFC 7519 to promote interoperability across authentication systems:
| Claim Key | Full Name | Purpose & Description | Example Value |
|---|---|---|---|
iss |
Issuer | Identifies the principal that issued the JWT (e.g. an authorization server URL). | "https://auth.example.com" |
sub |
Subject | Identifies the principal that is the subject of the JWT (e.g. user ID or account UUID). | "usr_9981245" |
aud |
Audience | Identifies the recipients that the JWT is intended for (e.g. target API resource URI). | "https://api.example.com" |
exp |
Expiration Time | NumericDate timestamp (seconds since Unix epoch) after which the token must be rejected. | 1730086400 |
nbf |
Not Before | NumericDate timestamp (seconds since Unix epoch) before which the token must NOT be accepted. | 1730000000 |
iat |
Issued At | NumericDate timestamp recording when the JWT was created by the authorization server. | 1730000000 |
jti |
JWT ID | Unique identifier for the token, commonly used to prevent replay attacks and track revocations. | "c8f0f35a-94a2-4a0b-95eb" |
Choosing the right cryptographic signing algorithm depends on your architecture, key management capabilities, and trust boundaries:
| Feature | HS256 / HS384 / HS512 | RS256 (RSASSA-PKCS1-v1_5) |
|---|---|---|
| Cryptographic Family | Symmetric HMAC (Hash-based Message Authentication Code) | Asymmetric RSA Signature with SHA-256 |
| Key Structure | Single shared secret passphrase (e.g. 256-bit string) | Public / Private Key Pair (PKCS#8 PEM private key) |
| Signing Requirement | Requires shared secret | Requires Private Key only |
| Verification Requirement | Requires the same shared secret | Requires Public Key (can be distributed freely via JWKS) |
| Best Use Case | Single monolithic backend, private microservices where secret can be safely shared | OAuth 2.0 / OpenID Connect, multi-tenant architectures, public client APIs |
| Execution Speed | Extremely fast, minimal CPU overhead | Moderate, asymmetric cryptographic operations take more CPU cycles |
base64url(header).base64url(payload).base64url(signature)) for development and testing.
iss (issuer), sub (subject), aud (audience), exp (expiration time), nbf (not-before time), iat (issued-at time), and jti (JWT ID). While optional according to the RFC, they provide standard interoperability across identity providers.
exp claim specifies the Unix epoch timestamp in seconds after which the token must be rejected. The nbf claim specifies the timestamp before which the token is not yet valid. The receiving application must validate these timestamps against its current clock during token verification.
alg: none. However, unsigned tokens have an empty signature and must never be used in production environments because anyone can tamper with their contents without detection.
Discover more free developer utilities from PaceTools to inspect, format, validate, and test code: