AWS Builder Center

AWS documentation now serves Markdown — save tokens, time, and your sanity

Service guide content is now available in a simple text based format, markdown, making it easier for agents and other systems to use.

If you've ever tried to feed an AWS documentation page into an LLM, you know the pain. You paste in a URL (or worse, copy-paste the rendered page), and half your context window disappears into navigation chrome, JavaScript artifacts, and deeply nested HTML. The actual content you wanted? Buried somewhere in the middle.
That changes today. Every service guide page on  docs.aws.amazon.com  now has a Markdown version, and there are multiple ways to get it.

What's new

1. A Markdown button on every page

Each service guide page now shows a Markdown link in the toolbar, right next to the existing PDF and RSS links. Click it and you get a clean  .md  version of that page — no navigation, no scripts, no formatting overhead. Just the content.
For example, the EC2 "What is Amazon EC2?" page:
The pattern is simple: take any  *.html  URL and change the extension to  *.md .

2. Discoverable via  <link>  tags

For programmatic discovery, every HTML page includes a  <link>  element in the  <head> :
<link rel="alternate" type="text/markdown" href="concepts.md" title="Markdown version">
This follows web standards for alternative formats, making it easy for crawlers, agents, and tooling to automatically discover the Markdown version of any page without hardcoding URL patterns.

3.  llms.txt  for every guide

Following the  llms.txt standard , every service guide on the site now has an  llms.txt  file at its root. This file gives LLMs a structured overview of the guide with links to the Markdown version of every page.
The file includes:
  • The guide title and a short description
  • A hierarchical listing of all pages, each linked to its  .md  version
  • Brief descriptions of each page's content
This is essentially a table of contents purpose-built for AI consumption. Agents can fetch this single file and understand the full scope and structure of any AWS service guide.

4. Content negotiation via  Accept  headers

This one is specifically for agents and automated tooling. If your HTTP client sends an  Accept  header that includes  text/markdown , the server will return the Markdown version even if the request URL ends in  .html .
This means existing tools that already fetch HTML documentation pages can start getting lighter-weight, LLM-friendly Markdown just by updating their  Accept  header — no URL rewriting required.
# Returns markdown even though the URL says .html
curl -H "Accept: text/markdown" \
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/concepts.html

Why this matters

For LLM and agent workflows

Smaller payloads, fewer tokens. Markdown strips out all the HTML structure, navigation, JavaScript, and CSS that inflate documentation pages. The content you actually need comes through in a fraction of the tokens. When you're paying per token or working within context window limits, this adds up fast.
Better comprehension. LLMs parse and understand Markdown hierarchy (headings, lists, code blocks, tables) more naturally than they parse nested HTML  <div>  soup. You get better answers from cleaner input.
Structured discovery. The  llms.txt  file lets agents understand what documentation exists before fetching it. Instead of crawling an entire site or guessing at URLs, an agent can read a single file and decide exactly which pages it needs.

For humans

The Markdown button isn't just for machines. Click it in your browser, and you get a clean, readable text version of the page. You can:
  • Copy and paste it directly into any AI conversation — ChatGPT, Amazon Q, Claude, your team's internal tools — and it'll be parsed correctly with structure intact
  • Use it as context in your IDE — paste it into a Cursor/Copilot chat or any code-aware AI assistant
  • Share focused documentation snippets — without the noise of copy-pasting from a rendered web page

How to use this in your tools

MCP servers and documentation tools

If you're building an MCP server or documentation tool that fetches AWS docs, update your HTTP client to send  Accept: text/markdown . Your tool will automatically get the lighter Markdown version when available.

Agent architectures

For agents that need to understand AWS services:
  1. Start with  llms.txt  — Fetch the guide's  llms.txt  to understand what's available
  1. Fetch specific pages as Markdown — Use the  .md  URLs to pull only the pages relevant to the current task
  1. Leverage content negotiation — Set  Accept: text/markdown  in your HTTP client as a default, and you'll get Markdown from docs.aws.amazon.com whenever it's available

RAG pipelines

If you're indexing AWS documentation for retrieval-augmented generation, Markdown pages are significantly cleaner inputs for chunking and embedding. Less noise means better retrieval quality.

Learn more

Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article