JWT Claims Reference — Registered & Custom Claims
Complete JWT claims reference: iss, sub, aud, exp, nbf, iat, jti, scope, and custom claims with validation rules.
Quick Answer
To JWT Claims Reference — Registered & Custom Claims, paste your token into our JWT Decoder, inspect the header and payload claims, then verify the signature with the JWT Validator. All processing runs locally in your browser.
Registered Claims
| Claim | Meaning | Validate? |
|---|---|---|
| iss | Issuer | Yes — exact match |
| sub | Subject (user ID) | Yes |
| aud | Audience | Yes |
| exp | Expiration | Yes |
| nbf | Not before | Yes |
| iat | Issued at | Optional |
| jti | Token ID | For revocation |
OAuth Claims
scope, azp, client_id appear in OAuth access tokens. Use JWT Debugger to inspect.
Custom Claims
Store roles, permissions, tenant ID — but keep tokens small. Large payloads increase every request header size.
Deep Dive
Browse JWT Claims Hub and Glossary.
Understanding JWT Claims Reference — Registered & Custom Claims in Production
Developers search for JWT Claims Reference — Registered & Custom Claims when building API authentication with JSON Web Tokens. JWTs are used by OAuth 2.0, OpenID Connect, Auth0, Firebase, AWS Cognito, and Keycloak. Always validate exp, iss, and aud server-side — decoding alone proves nothing about authenticity.
JWT Structure Recap
Every JWT has three dot-separated segments: header (algorithm), payload (claims), signature (proof). Use JWT Decoder to inspect and JWT Validator to verify before trusting any claim value in production code.
Common Pitfalls
- Algorithm confusion (
noneattack) — whitelist allowed algorithms - Secrets in the payload — payload is only Base64-encoded, not encrypted
- Ignoring clock skew on
expandnbf - Weak HMAC secrets — use 256-bit random keys
- Skipping signature verification — always call verify(), not decode()
- Storing tokens in localStorage — XSS can steal them
Further Reading
Browse related resources: JWT Decoder, JWT Validator, JWT Basics, JWT Authentication, JWT Errors, Algorithms, Glossary, and Learning Path.
Try It Now
FAQ
What are registered JWT claims?
Standard claims defined in RFC 7519: iss, sub, aud, exp, nbf, iat, jti. Libraries often validate exp automatically.
Can I add custom claims?
Yes. Any JSON key works, but avoid putting secrets in the payload — it is only Base64-encoded, not encrypted.