Visual RFC.
ALL RFCs / RFC 3986
Read the RFC ↗
RFC 3986 / ANATOMY

The five URI components

01

A URI is parsed into scheme, authority, path, query, and fragment before its meaning is interpreted.

RFC 3986 · § 3EXAMPLE
4 / 4
04
Identify a secondary resource.

Fragment interpretation depends on the representation’s media type.

The five URI componentsOne URI separates vertically into five named components with the relevant delimiters highlighted.Punctuation separates the componentshttps:scheme//example.org:8443authority/a/bpath?q=1query#partfragmenthttps://example.org:8443/a/b?q=1#part

Key idea: The punctuation marks component boundaries.

Terms

Look up a term in the glossary ↗

Rules & examples
  • The scheme ends at the first colon.
  • An authority, when present, begins after // and ends at /, ?, #, or the end.
  • A fragment begins at # and is separated before dereferencing.

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

First, agree how to read the message.

An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.

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 3986

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 ↗