Skip to main content

Clean your first HTML fragment

Open the playground, paste the following HTML, and choose Keep under Boilerplate mode:

<nav>Home</nav>
<p>Saved article text with <strong>emphasis</strong>.</p>

Select Clean HTML. The result retains the paragraph and emphasis while removing the navigation. Copy it or download the cleaned HTML.

Keep skips main-content extraction but still cleans the document. For a full article, select Balanced to extract its main content. Source URL is optional metadata and image-resolution context; it is never fetched.

Continue with the playground controls, or run locally through the npm CLI, npm library, or Python library.

Updated: September 25, 2026