A laptop, a phone and a hand writing in a notebook on a wooden desk, banner image on the Webpage to Clean Text page

Herramientas / Computer suite

Webpage to Clean Text

Paste raw page HTML and get clean, readable text - scripts, styles and markup stripped, entities decoded, with word count and reading time.

Paste the raw HTML of a page and get the text a reader would see: scripts and styles removed, block structure turned into paragraphs, entities decoded, plus word count and reading time.

Open the tool
Screenshot of the Webpage to Clean Text tool

What it does

What it does.

Structure-aware

Block tags become paragraph breaks instead of one mashed wall of text.

Scripts and styles removed

Script and style blocks, and comments, are dropped with their contents, not just their markup.

Entities decoded

Nine named entities and decimal number codes return to the characters they mean.

Reading stats

Word count and a 200-wpm reading-time estimate.

Scripts and styles stripped

Every script, style and markup tag is removed, leaving the words the page was written to say.

Structure-aware text

Headings, paragraphs and list items each start on their own line, so the article reads in order instead of arriving as word soup.

Entities decoded

&,  , — and friends become real characters. The text reads clean in any editor.

Word count and reading time

Two numbers per paste: how long the piece is and how long it takes to read.

Built for pasting, not fetching

You paste the page source, so paywalled, private or local pages all work, and nothing gets fetched by a server.

Updates as you paste

The clean text, count and reading time rebuild on every change to the input.

Copy-ready

One click and the clean text is on the clipboard for your notes, summary or dataset.

Nothing uploaded

The HTML is parsed in the tab. Page source stays with you.

How it works

How to use it.

Step 1

Paste the raw HTML source.

Step 2

Review the cleaned text and stats.

Step 3

Copy into your notes or editor.

Step 4

Open the page, view source, and copy the raw HTML.

Step 5

Paste it into the tool.

Step 6

Read the clean text with its word count and reading time.

Step 7

Copy the text out.

Step 8

Check the word count against the length you expected, to confirm nothing was cut.

Step 9

Paste the clean text where it belongs: notes, summary draft or dataset row.

FAQ

Does it fetch URLs?

No - paste the HTML. Fetching would run into cross-origin rules and paywalls.

Tables?

Each table row becomes its own line. Cell text in a row runs together with nothing between the cells, and layouts flatten.

Encoding issues?

These decode: &, <, >, ",  , —, –, … and decimal codes such as '. Others, including hex codes, pass through unchanged.

Why paste HTML instead of giving a URL?

A page fetching URLs would need a server and would hit paywalls and bot checks. Pasting source keeps the tool local and works on anything you can view.

What exactly is removed?

Script and style blocks, comments and all tags. All text stays, including menus and footers, with each heading, paragraph and list item on its own line.

What are entities?

HTML's escaped characters, like &amp; for & or &mdash; for a dash. The tool decodes them so the text pastes clean elsewhere.

How is reading time computed?

From the word count at a typical adult reading pace. It is an estimate for skimming decisions, not a measurement.

Does it keep links?

Link text survives; the URLs themselves are markup and are stripped. The readable sentence remains.

Can it handle huge pages?

Anything the tab holds. Very long documents process in one pass.

Is the page source stored?

No. Parsing happens in the tab; nothing is sent or saved.

Does it work on saved pages?

Yes. Open the saved file, view source, paste. Local HTML cleans the same as live.

Will it keep tables?

Table text survives in reading order, one row per line; the cell tags are stripped and cells in a row run together.

Open Webpage to Clean Text

Worked example

Real output, from the tool itself.

This is what Webpage to Clean Text returned for its built-in example input, captured from the tool itself.

You enter

Input

<h1>Q3 results & what changed</h1>
<p>Revenue grew <b>18%</b> to $4.2M, driven by the self-serve tier.</p>
<script>track("pageview")</script>
<p>Churn fell to 2.1% — the lowest since launch.</p>

The tool returns

Q3 results & what changed

Revenue grew 18% to $4.2M, driven by the self-serve tier.

Churn fell to 2.1% — the lowest since launch.
Try it with your own input

More in the Computer suite

Image Shelf CatalogResearch BriefCompetitive ScanFile Conversion DeskScreenshot Annotator
A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the Webpage to Clean Text page

Try it now.

Webpage to Clean Text runs in your browser. No account needed.

Authored Tiles

What is on the page

Raw HTML box, filled witha sampleClean text box beside itWord count and readingtime lineCopy text button
Raw HTML box, filled with a sampleClean text box beside itWord count and reading time lineCopy text button
Two boxes, a count and a copy button.

Pipeline

From markup to plain text

Drop scripts,styles andcommentsTurn block tagsinto line breaksRemove every othertagDecode charactercodesTidy spaces andblank lines
Drop scripts, styles and commentsTurn block tags into line breaksRemove every other tagDecode character codesTidy spaces and blank lines
Five clean-up steps run in this order.

Bar Compare

Tags that start a new line

Headings h1 to h66 tagsPage layout: div,section, article,header, footer5 tagsLists and br: li,ul, ol, br4 tagsText blocks: p,blockquote, pre3 tagsTables: table, tr2 tags
Headings h1 to h66 tagsPage layout: div, section, article, header, footer5 tagsLists and br: li, ul, ol, br4 tagsText blocks: p, blockquote, pre3 tagsTables: table, tr2 tags
Twenty tag names break the text onto a new line, grouped here by kind.

Bar Compare

Words in each line of the sample

Heading5 wordsRevenue line10 wordsChurn line9 words
Heading5 wordsRevenue line10 wordsChurn line9 words
The sample has 24 words in three lines.

Before After

Character codes that are decoded

You pasteYou get&amp;&lt;&gt;&quot;&nbsp;&mdash;&<>"a plain space—
You paste to You get&amp;&&lt;<&gt;>&quot;"&nbsp;a plain space&mdash;—
Named codes and numbers both turn into the character.

Before After

Character codes that stay as typed

You pasteYou get&#169;&copy;&#x41;&amp;amp;©&copy; (unchanged)&#x41; (unchanged)&amp; (one step only)
You paste to You get&#169;©&copy;&copy; (unchanged)&#x41;&#x41; (unchanged)&amp;amp;&amp; (one step only)
Only the codes the page knows are decoded. The rest are left alone.

Before After

The sample, line by line

Raw HTMLClean text<h1>Q3 results &amp; whatchanged</h1><p>Revenue grew <b>18%</b> to$4.2M, driven bythe&nbsp;self-serve tier.</p><script>track("pageview")</script><p>Churn fell to 2.1%&mdash; the lowest sincelaunch.</p>Q3 results & what changedRevenue grew 18% to $4.2M,driven by the self-servetier.(nothing)Churn fell to 2.1% — thelowest since launch.
Raw HTML to Clean text<h1>Q3 results &amp; whatchanged</h1>Q3 results & what changed<p>Revenue grew <b>18%</b> to $4.2M,driven by the&nbsp;self-serve tier.</p>Revenue grew 18% to $4.2M, driven bythe self-serve tier.<script>track("pageview")</script>(nothing)<p>Churn fell to 2.1% &mdash; thelowest since launch.</p>Churn fell to 2.1% — the lowestsince launch.
Each line of the sample page before and after.

Before After

Parts that are dropped with their content

Raw HTMLClean text<script>track("pageview")</script><style>p{color:red}</style>Hi<!-- note -->Hi(nothing)HiHi
Raw HTML to Clean text<script>track("pageview")</script>(nothing)<style>p{color:red}</style>HiHi<!-- note -->HiHi
Scripts, styles and comments disappear, and so does what is inside them.

Before After

Block tags and inline tags

Raw HTMLClean texta<b>b</b>c<p>a</p><p>b</p><p>c</p><ul><li>One</li><li>Two</li></ul>abca, b and c on separate lineswith a blank line betweenOne and Two on separatelines with a blank linebetween
Raw HTML to Clean texta<b>b</b>cabc<p>a</p><p>b</p><p>c</p>a, b and c on separate lines with ablank line between<ul><li>One</li><li>Two</li></ul>One and Two on separate lines with ablank line between
Block tags make new lines. Inline tags such as b just vanish.

Input To Output

One box in, three things out

Raw HTMLClean textWord countReading timeCleanerInOut
InRaw HTMLCleanerClean textWord countReading timeOut
The page reads the box on every change.

Support Matrix

What happens to each kind of markup

Tag removedContent insideremovedLine breakmadeTurned into acharacterScript blockStyle blockCommentParagraph tagBold tag&amp;&mdash;
Script blockTag removedContent inside removedStyle blockTag removedContent inside removedCommentTag removedContent inside removedParagraph tagTag removedLine break madeBold tagTag removed&amp;Turned into a character&mdash;Turned into a character
A large white dot marks what the cleaner does; a small dim dot marks absence.

Bar Compare

Raw characters in each sample line

Revenue line76 charactersChurn line58 charactersHeading38 charactersScript line34 characters
Revenue line76 charactersChurn line58 charactersHeading38 charactersScript line34 characters
The script line is short, the revenue line carries the most markup.

Pipeline

How the word count is made

Take the cleantextSplit on spacesand line breaksCount the piecesDivide by 200 andround
Take the clean textSplit on spaces and line breaksCount the piecesDivide by 200 and round
The count comes from the clean text, not the raw HTML.

Bar Compare

Minutes shown for different lengths

100 words1 min300 words2 min500 words3 min1000 words5 min2000 words10 min
100 words1 min300 words2 min500 words3 min1000 words5 min2000 words10 min
Words divided by 200, rounded, never less than 1.

Before After

Count and time on real inputs

Raw HTMLStats lineEmpty boxThe 24-word sample300 words1,000 words0 words - 1 min read24 words - 1 min read300 words - 2 min read1000 words - 5 min read
Raw HTML to Stats lineEmpty box0 words - 1 min readThe 24-word sample24 words - 1 min read300 words300 words - 2 min read1,000 words1000 words - 5 min read
The line under Clean text reads like this.

Before After

Spaces and blank lines are tidied

Raw textClean texta bline with trailing spaces,then next linea, then four blank lines,then bhia btrailing spaces removeda, one blank line, bhi
Raw text to Clean texta ba bline with trailing spaces, then nextlinetrailing spaces removeda, then four blank lines, then ba, one blank line, bhihi
Extra spacing goes, single line breaks stay.

Pipeline

Live updating

Type or paste inthe Raw HTML boxThe page cleans itagainClean text boxrefreshesCount and readingtime refresh
Type or paste in the Raw HTML boxThe page cleans it againClean text box refreshesCount and reading time refresh
Nothing to press. The result follows what you type.

Pipeline

Copying the result

Read the cleantextPress Copy textPaste into a docor chat
Read the clean textPress Copy textPaste into a doc or chat
Copy sends the clean text, as shown, to the clipboard.

Authored Tiles

Where the work happens

Cleaning runs in the pageNo account neededFree to useSample is loaded so youcan see it at once
Cleaning runs in the pageNo account neededFree to useSample is loaded so you can see it atonce
Nothing leaves the page.
\n

Churn fell to 2.1% \u2014 the lowest since launch.

"], "formats": [], "limits": []}