Visual RFC.
ALL RFCs / RFC 7519
Read the RFC ↗
RFC 7519 / TOKEN ANATOMY

A compact token comes apart

01

A JWT carries a JSON claims set inside a JWS or JWE representation.

RFC 7519 · § 3EXAMPLE
4 / 4
04
Authenticate the protected bytes.

Use the intended algorithm and a trusted, appropriate key.

A compact token comes apartThree compact JWS parts open into header and claim text, followed by a signature or MAC check.A signed JWT: three parts, two dotseyJhbGci…header·eyJzdWIi…payload·SflKxwR…signaturealg: HS256operation hintsub: user-42asserted claimCheck the protected bytes with a trusted keyDecoding makes text readable. Verification checks protection.

Key idea: Decoding is not verification.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Compact JWS has three period-separated parts; compact JWE has five.
  • Base64url is an encoding, not encryption.
  • A JOSE header describes the cryptographic operation; it is not a trusted policy by itself.

The examples simplify the wire representation. Follow the linked specification and application profile for implementation.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A key is different from permission.

An app, a person, and a server have different roles. Follow who asks, who grants permission, and who checks the credential. A key in the drawing is an analogy, not a literal protocol field.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 7519

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗