Text Cleaner

Paste text from a web page, a Word document or a social media bio. Every cleanup is on to start with; turn off the ones you do not want.

How it works

Strip HTML tags removes the tags and keeps the text inside them. Scripts, styles and comments go completely. Paragraphs, list items and line breaks in the HTML become line breaks, and codes like & become the characters they stand for.

Fancy letters to plain turns the bold, italic, script, circled, full-width and small-capital letters made by "font generator" sites back into normal letters. Accented letters, fractions such as ½ and text in other scripts are left exactly as they are.

Quotes can be made straight, made curly, or left alone. Remove extra spaces turns runs of spaces and tabs into one space and trims every line. Squeeze blank lines leaves at most one empty line between paragraphs. The steps run in that order, and everything runs on this page.

How to use it

  1. 1 Paste your text into the Text box.
  2. 2 Leave the cleanups on, or turn off the ones you do not need.
  3. 3 Choose Straight, Curly or Leave as they are for Quotes.
  4. 4 Check the count of changed lines, then copy or download the result.

Good to know

  • A name in a bio written as 𝐉𝐚𝐧𝐞 cannot be found by a search for Jane. Fancy letters to plain fixes that.
  • Straight quotes are safer in code, spreadsheets and CSV files. Curly quotes look better in printed text.
  • Text pasted from Word often carries curly quotes and no-break spaces. The default settings handle both.
  • If you only need one cleanup, the single tools such as Remove Extra Spaces give a clearer count.

Browser support

  • Chrome 94 and later
  • Firefox 93 and later
  • Safari 16.4 and later
  • Edge 94 and later

These are the oldest versions with everything the tool uses. They are worked out from the tool itself, so they change when it does.

Version numbers checked on 2026-09-04.

Cleaning a bio pasted from a web page before it goes into a spreadsheet

You are building a list of speakers for an event, and each bio comes from a different place. One was copied from a web page and arrived as "<p>Jane runs a <b>design</b> studio &amp; teaches</p>". Another came from a social profile written as "𝐉𝐚𝐧𝐞 𝐃𝐨𝐞, “maker of things”". A third was typed in Word with two spaces after every full stop. In a spreadsheet, these look messy, sort strangely and break searches.

Paste each bio here with the defaults on. The HTML tags go and the text inside them stays, so the first bio reads "Jane runs a design studio & teaches", with &amp; turned back into &. Paragraph and list tags become line breaks, so the structure of the text survives without the markup. Scripts and styles are removed with their contents, so a stray block of code never ends up in your cell.

The second bio shows why Fancy letters to plain exists. "𝐉𝐚𝐧𝐞" is not Jane in a bold font. It is four separate Unicode symbols from the mathematical alphabets, and a search for Jane will not find it. The cleaner maps those symbols, and the circled, full-width and small-capital ones, back to plain letters. It only touches those blocks, so "café", "½" and Japanese text stay as they are. The curly quotes around "maker of things" become straight ones, which is safer in a CSV file.

Remove extra spaces handles the third bio: two spaces after a full stop become one, tabs become a space, and no-break spaces from Word become plain ones. Squeeze blank lines makes sure no bio has a big gap in the middle. The note under the result tells you how many lines changed, so you can see that a bio that was already clean came through untouched.

The cleaner has limits. It strips HTML with patterns, not a browser parser, so it is for getting text out of HTML, not for making HTML safe to publish. Unusual markup, such as a ">" inside an attribute, can leave a fragment behind. Fancy letters with no plain equivalent, such as upside-down text, are not changed. Curly quotes are a good guess from the character before each quote, but a quote at the start of a word that is really an apostrophe can still come out wrong. With Remove extra spaces on, the result uses plain line breaks rather than Windows ones. It takes up to 1 MB of text at a time.

Frequently asked questions

Is stripping the tags enough to make HTML safe?

Treat the result as plain text, not as HTML. The tool removes tags with patterns rather than a full HTML parser, so it is for reading the text out, not for sanitising HTML you plan to put back on a page.

Why do fancy letters need cleaning?

Letters like 𝓗𝓮𝓵𝓵𝓸 are not a font. They are separate maths symbols in Unicode. Search, sorting and screen readers treat them as symbols, so a screen reader may read each one out as a maths symbol, and a search for Hello will not find them.

How does Curly decide between an opening and a closing quote?

It looks at the character before the quote. After a space, a bracket or the start of a line, a quote opens; anywhere else it closes. It also knows that the apostrophe in '90s and 'til is not an opening quote.

Is my text uploaded?

No. All the cleanups run in your browser, on this page.

Related tools

Your files are processed on your device and are not uploaded. You can verify this in your browser’s developer tools under the Network tab.