A model does not read a web page the way a browser renders it. It reads every character it is given, and it pays for each one. Most of the characters in a modern page are there for the browser.
One page, measured
We ran a marketing home page through ompro's converter. The HTML was 552 KB. The markdown that came out was about 3 KB. That is one page, not a benchmark, and marketing pages are an extreme case because so much of their weight is styling and scripts. Documentation pages shrink less. The direction is always the same.
What gets dropped
- Scripts, styles, inline SVG and embedded media. None of it is content.
- Attributes. Class names, data attributes, tracking parameters and ARIA labels are for the browser and for other software.
- Page chrome. When a page declares its main content with a main or article element, the navigation, sidebars and footer around it are left out of the page text.
- Hidden elements, which often hold duplicated menus and templates.
What has to survive
Structure carries meaning, so the structure stays:
- Headings, because they tell the model how the page is organised and let it quote a section.
- Lists and tables, kept as lists and tables. Flattening a pricing table into a paragraph destroys it.
- Code blocks, with their whitespace intact.
- Links, because an agent needs somewhere to go next.
Links are the expensive part
Links are where most converters waste tokens. A navigation link in HTML can run to two hundred characters once the class names and the full URL are counted. As markdown with an absolute URL it is still sixty or seventy.
Almost every link on a page points to the same site. So ompro writes same-site links as paths. A link to the authentication page becomes its title followed by a short path, about thirty characters. The agent can rebuild the full URL, and it already has the site map to check it against.
Navigation links are not thrown away, either. They are removed from the page text, but they are added to the site map, which is where a list of the site's pages belongs.
Long pages
Some pages are too long to hand over whole. ompro cuts the text at a fixed number of characters and says so at the end, with the offset to continue from. Silent truncation is worse than no page, because the model cannot tell that the answer was in the part it never saw.
What we do not do
The converter does not summarise, rewrite or reorder. Everything a model reads from ompro was written by the site. Deciding what matters is the model's job; the converter's job is to stop making it read the wrapping.