Visual RFC.
ALL RFCs / RFC 5234
Read the RFC ↗
RFC 5234 / READING ABNF

Make whitespace explicit

05

Whitespace in the written rule does not automatically appear in the strings it describes.

RFC 5234 · § 3.1EXAMPLE
4 / 4
Make whitespace explicitWhitespace in the written rule does not automatically appear in the strings it describes. WSP is an alternative of SP or HTAB. CRLF is a two-value sequence, not either newline character alone.Grammar space is not implicit datapair = "a" SP "b" ; noteWSP = SP / HTAB32or9CRLF = CR LF13then10Bare LF does not match CRLFRFC5234 · chapter 5 · state 4 · ASCII examples
04
Keep core rules distinct

WSP is an alternative of SP or HTAB. CRLF is a two-value sequence, not either newline character alone.

Source for this drawing: RFC 5234 · Read RFC section 3.1 ↗

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

A message needs an address.

Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.

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.

KEY POINT

pair = "a" SP "b" explicitly includes one ASCII space. The spaces around = and between rule elements format the grammar itself.

  • pair = "a" SP "b" explicitly includes one ASCII space. The spaces around = and between rule elements format the grammar itself.
  • A semicolon starts a grammar comment through the end of its rule line; that note is not part of the matched pair.
  • Core SP is value32, HTAB is9, WSP means SP or HTAB, and CRLF means CR followed by LF. Bare LF does not match CRLF. These are ASCII-context definitions.
  • Section4 describes ABNF itself. Verified errata2968/3076 correct two whitespace ambiguities in that meta-grammar; this guide does not reproduce a complete ABNF parser.
DETAILS

Examples are invented ASCII strings, not a complete application protocol. Matching syntax does not establish application meaning or authorization. Core rules are in RFC5234 Appendix B.1; external encodings are separate (§2.4).

Read the RFC section ↗

All chapters in RFC 5234

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 ↗