Account

What new tool do you want?

Text & Writing

Text Cleaner

Clean messy text in one pass: collapse extra spaces, strip empty lines, straighten smart quotes, remove HTML tags, emoji or non-ASCII characters.

How to use

  1. 1Paste the messy text.
  2. 2Tick the clean-up steps you want and copy the result.

Frequently asked questions

What are smart quotes?

Curly quotation marks like “ ” and ‘ ’ that word processors insert. Code and some systems need plain straight quotes instead.

Will removing HTML tags keep the text inside them?

Yes. Only the tags are removed; the visible text between them is kept, and common entities like & are decoded.

What counts as non-ASCII?

Any character beyond basic English letters, digits and symbols — accented letters, emoji and symbols from other scripts.

A worked example of the HTML-stripping step

"<p>Tom &amp; Jerry</p><p>Two</p>" with Strip HTML tags on becomes "Tom & Jerry\nTwo" — notice two things happening together: the <p> tags themselves are removed, but they're converted to a newline first (not just deleted), which is why "Tom & Jerry" and "Two" end up on separate lines rather than being jammed into one run-on "Tom & JerryTwo". At the same time, the HTML entity &amp; is decoded back to a literal & — the tool specifically unescapes the common entities (&amp;, &lt;, &gt;, &quot;, &#39;, &nbsp;) so what you get is the actual readable text a browser would display, not the raw markup-encoded version of it.

Why smart quotes need their own dedicated toggle

""Hi" — it's…" with smart quotes straightened becomes '"Hi" - it\'s...' — curly quotation marks (“ ” ‘ ’), em/en dashes, and the ellipsis character all get converted to their plain-ASCII equivalents. This matters specifically because most word processors auto-convert straight quotes to curly ones as you type, which looks fine in a document but silently breaks anything expecting literal ASCII characters — code embedded in documentation, CSV files, JSON strings, or search functions that do exact string matching, where a curly “ doesn't match a search for a straight ".

Why the seven cleanup steps are independent toggles, not one big 'clean' button

Each cleanup operation (collapsing spaces, stripping HTML, removing emoji, stripping non-ASCII, straightening quotes) targets a different, specific kind of mess, and bundling them into one irreversible action would make the tool far less useful for the common case of needing only one or two fixes — stripping non-ASCII entirely, for instance, would also delete legitimate accented letters in a name like "café," which is exactly the kind of destructive side effect you don't want when all you actually needed was to collapse double spaces. Keeping them as separate toggles means you can combine exactly the fixes a given piece of messy text needs without accidentally damaging the parts that were already fine.

Script and style blocks go away, and the ends are always trimmed

Strip HTML tags starts off. When I turn it on, a script or style block is deleted together with everything inside it, not just the tags. A br, a closing p, a closing div, or a closing li becomes a line break before the remaining tags are removed. The switches run in a fixed order: HTML, then smart quotes, then emoji, then non-ASCII, then extra spaces, then trim each line, then empty lines. Collapse extra spaces and Trim each line start on. The other five start off. Even if I turn Trim each line off, the very start and end of the whole result are still trimmed. Straightening quotes before removing non-ASCII keeps the new straight quotes, because they are already plain characters.

Related tools

More: Text & Writing