The Claude Code team at Anthropic has quietly shifted its default output format from Markdown to HTML, a move that signals a broader evolution in how AI agents generate and present information. Markdown has long been the lingua franca of AI communication—simple, portable, easy to edit. But as agents grow more powerful and their outputs more complex, the lightweight format is showing its limitations. The team’s increasing preference for HTML over Markdown for output represents a practical response to the demands of richer, more interactive, and more visually structured content. But does this logic hold for the reverse direction? Is HTML also a better input format for large language models?
Why Markdown Reached Its Limits for Agent Output
Markdown was designed for lightweight text formatting—headings, lists, links, and basic emphasis. It excels at these tasks. But when AI agents like Claude begin generating detailed specifications, multi-step plans, code reviews, and interactive prototypes, Markdown quickly becomes a bottleneck. The format struggles with complex data structures. ASCII diagrams are inefficient and clunky. Representing color through Unicode characters is a hack at best. HTML, by contrast, provides a dramatically higher information density. It natively supports tables, CSS-driven layouts, inline SVG illustrations, embedded scripts for interactive code snippets, and even spatial data representations. As one member of the Claude Code team noted on X, there is almost nothing Claude can read that cannot be represented more efficiently in HTML.

Visual Clarity and Readability at Scale
As agents write longer and longer specifications and plans, Markdown becomes unwieldy. In practice, few people read Markdown files longer than 100 lines—they become monotonous, hard to scan, and visually fatiguing. HTML documents, on the other hand, can be organized with tabs, collapsible sections, embedded illustrations, and hyperlinked navigation. They can be made responsive for mobile devices. The visual structure itself communicates hierarchy and relationships, making the content easier to digest. This is not a minor convenience; it directly affects how effectively stakeholders can engage with AI-generated outputs.
Sharing and Distribution Advantages
Markdown files are not natively well-rendered by most browsers. They typically they must be attached to emails or uploaded to specialized viewers. HTML files, in contrast, can be uploaded directly to any web server and shared via a simple URL. They render natively in every browser. This ease of distribution makes HTML the superior choice for collaborative workflows where outputs need to be shared with clients, team members, or stakeholders who may not have Markdown-compatible tools.
Two-Way Interaction and Dynamic Documents
Perhaps the most significant advantage of HTML over static Markdown is interactivity. HTML documents can include sliders, buttons, and other controls that allow users to adjust parameters, test algorithms, or toggle between design variants in real time. Changes made through these interactive elements can then be exported back as prompts and fed into Claude Code for further iteration. This creates a feedback loop between human and machine that is simply impossible with static Markdown. The document becomes a workspace, not just a record of output but an active part of the problem-solving process.

Data Ingestion at Scale
Claude Code ingests context from multiple sources—the filesystem, Slack conversations, web browsers, Git history, and more. These large, heterogeneous data sets can be grouped, organized, and visualized far more effectively in HTML. Diagrams, tables, and structured layouts help both the human and the AI navigate the information. HTML serves as a unifying container for diverse data types, allowing Claude to present a coherent picture from fragmented inputs.
Real-World Use Cases for HTML Output
The Anthropic team has identified several concrete categories where HTML output delivers measurable value over Markdown. In specifications and planning, HTML allows multiple design concepts to be presented in a grid for direct side-by-side comparison, with interactive implementation plans that include mockups. For code review, HTML renders diffs with inline annotations, color-coded warnings, and flowcharts—often more informative than GitHub’s standard diff view. In design and prototyping, animations and components can be tested directly within the document using interactive elements. For reports and research, HTML enables deeply explained pages that might cover complex rate limiters, status updates, or slide shows with SVG diagrams. And for custom disposable editors, Claude can generate tailored interfaces for one-off tasks—a Kanban board for Jira or Linear tickets with drag-and-drop, or side-by-side editors for prompt tuning.
The Trade-Offs: Token Consumption and Generation Speed
HTML is not without its disadvantages. It uses more tokens than an equivalent Markdown document, and generating HTML output takes roughly two to four times longer. However, with modern large context windows, the additional token consumption is barely noticeable. And the superior quality of the output justifies the extra wait time. A more persistent drawback is that HTML diffs are far messier than Markdown diffs. Reviewing changes in Git becomes more difficult because the structural markup generates noise that obscures semantic changes. This is a real operational cost that teams must weigh against the benefits.
The Input Question: Is HTML Better for Feeding LLMs?
If HTML is superior for output, it is natural to ask whether the same holds for input. Should users feed HTML documents into large language models instead of Markdown? For now, the answer is nuanced but leans toward Markdown. The reasons are rooted in how LLMs process text. Models break input into tokens. HTML is verbose, filled with tags, attributes, classes, and nesting that carry little semantic meaning for the model but consume tokens regardless. A text in Markdown uses fewer tokens than the same text in HTML, which means more actual content and context can be packed into the model’s context window before hitting the limit.
Markdown also separates content strictly from design. It focuses purely on information structure—headings, lists, code blocks. The model is not distracted by irrelevant layout or CSS information and can more accurately grasp the logic and meaning of the text. Furthermore, LLMs have been trained on vast quantities of Markdown text from sources like GitHub, Reddit, Stack Overflow, and converted Wikipedia articles. They process and structure their own responses in Markdown by default. It is a format they understand intimately.

Where the Balance May Shift
That said, the calculus is not fixed. As models become more powerful and context windows grow larger, the token efficiency advantage of Markdown becomes less critical. Models may also become better at filtering out structural noise in HTML and focusing on the content. When the benefits of HTML—visual structure, interactivity, richer semantics—begin to outweigh the token overhead, even the input equation could tip. For now, Markdown remains the pragmatic choice for most input scenarios. But the direction of travel is clear. HTML is gaining ground on both sides of the conversation, and the gap is narrowing with each generation of models.
For developers and teams working with Claude Code, the practical advice is to use Markdown for input whenever token efficiency and context length matter most and to embrace HTML for output whenever the goal is clarity, interactivity, and ease of sharing. The best tool depends on the direction of the data flow. And in both cases, the choice is becoming less about tradition and more about what the task demands.