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
How to Prepare PDFs for ChatGPT, Claude, and Gemini
A practical guide to extracting clean, AI-ready text from PDFs — born-digital and scanned — so ChatGPT, Claude, and Gemini answer accurately and don't waste tokens on headers, footers, and page numbers.
The Best Way to Feed Long Documents to Claude (and Other Long-Context Models)
Claude's 200K-token context is generous, but you'll still want to clean, compress, and structure long documents before sending them. Here's a step-by-step playbook.
Cleaning Whisper Transcripts for AI Summaries
OpenAI Whisper, Otter, and YouTube transcripts are full of timestamps, filler words, and speaker noise. Here's how to strip them before sending to ChatGPT or Claude — and why it matters.