Skip to main content

Trafilatura Core

Trafilatura Core cleans any HTML β€” boilerplate removal plus page-type-aware extraction

Clean HTML

Paste raw HTML, choose how aggressively to strip boilerplate, and get cleaned HTML back β€” plus the CLI and library snippets that reproduce it.

HTML to clean

Boilerplate mode
Boilerplate mode
Images
Images
Links
Links
Tables
Tables
Comments
Comments
OutputOutput

What to do:

What is Trafilatura Core?

Trafilatura Core cleans HTML: paste a raw page into the playground and get cleaned HTML back β€” boilerplate like navigation, ads, sidebars, and footers stripped, main content kept. A page-type classifier routes extraction so articles, forums, product pages, and listings each get a matching strategy. The engine is a free and open-source hybrid Rust + TypeScript port of Trafilatura, and it runs offline β€” HTML in, cleaned HTML out, never fetching the network. The playground also generates the npm CLI command or TypeScript library code that reproduces your settings.

The name is literal: Trafilatura Core is deliberately restricted to core functionality β€” HTML in, cleaned HTML out. Conversion to Markdown or other formats is left to other libraries that do it better.

To crawl and extract live websites online, try Contextractor β€” it is built on this engine and adds crawling and Markdown, text, and JSON output.