Techniques··4 min read

How to Clean Web Pages Before Asking AI to Summarize

Strip navigation, ads and scripts from web pages so AI summaries focus on the actual article content.

Pages are mostly noise

A typical news page hides a 1,200-word article inside navigation, cookie banners, related links, and scripts. Copying the whole page drags all of that into your prompt.

Convert to Markdown

Paste the HTML into the Markdown Converter to keep headings, paragraphs and links while dropping layout. Compare token counts in the Token Counter to see the savings.

Summaries that help

Ask for the main claim, supporting evidence, and anything that seems one-sided. Clean input lets the model spend its attention on the argument instead of the sidebar.

Try it free in your browser

  • Markdown Converter — Paste HTML, DOCX, or webpage text and get tidy Markdown.
  • Token Counter — Live token, character, and context-window meter for any prompt. Uses official tiktoken encoders.

Tools mentioned

Frequently asked

Why not paste the URL?

Browsing tools may be unavailable, blocked by paywalls, or fetch cluttered versions. Pasting clean content is the most reliable.

How much does HTML inflate tokens?

Often several times the visible text, because of tags, attributes, and inline scripts.

Keep reading