HTML Guides for file size
Learn how to identify and fix common HTML validation errors flagged by the W3C Validator — so your pages are standards-compliant and render correctly across every browser. Also check our Accessibility Guides.
The validator reports "Stream length exceeds limit" when the submitted document is larger than the maximum input size the checker accepts, so it stops before parsing the markup.
This is not a markup mistake. The checker reads your page as a byte stream and refuses input past a fixed size cap, which is why the report names no element or attribute. The whole document was rejected for being too big.
Oversized HTML usually comes from content embedded directly in the page rather than from the hand-written markup. The common culprits are base64 data URIs for images or fonts, large inline <script> blocks carrying JSON or generated code, and big inline <style> sheets. A runaway template or a loop that repeats a fragment thousands of times can also push a page past the limit.
Start by measuring the document, then move large inline content into external files the page links to. If the page is genuinely large, validate a representative section on its own instead of the full document.
Check the document size
curl-shttps://example.com/page.html|wc-c
Before: a large inline image
<imgsrc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA...">
After: reference an external file
<imgsrc="/images/logo.png"alt="Company logo">
Validate at scale.
Ship accessible websites, faster.
Automated HTML & accessibility validation for large sites. Check thousands of pages against WCAG guidelines and W3C standards in minutes, not days.
Pro Trial
Full Pro access. Cancel anytime.
Start Pro Trial →Join teams across 40+ countries