Home / Text / Text Cleaner

Text Cleaner

Ten independent clean-up switches, from collapsing blank lines to stripping HTML tags and digits.

Text Cleaner — Runs locally

Input

Cleaning Options

Output

How to use

Using this tool

Text Cleaner removes stray whitespace, blank lines, tabs, HTML tags and unwanted symbols from pasted text. All of the work on Text Cleaner happens in this tab, so the values you enter or the files you open never travel to a server.


Controls on this page

Text Cleaner gives you Trim leading/trailing whitespace, Collapse multiple spaces, Collapse blank lines, Remove all line breaks, Convert tabs to spaces, Remove non-ASCII characters, Strip HTML tags, Remove special symbols, Remove digits and Normalize Chinese punctuation. The options listed below the input on Text Cleaner are the ones that change how the output is produced, and every one of them applies to a single run.


  • Ten independent checkboxes.
  • Applies to the whole input.

How to use Text Cleaner

  1. Type or paste your content into the input box at the top of Text Cleaner.
  2. Pick the action on Text Cleaner that matches the job, for example Trim leading/trailing whitespace.
  3. Press Clean Text on Text Cleaner and read the answer in the separate output box.
  4. Copy the finished text from Text Cleaner, then clear the boxes before starting the next one.

A worked example

Paste text copied from a web page, tick Strip HTML tags and Collapse blank lines, and the output box holds one clean paragraph with no leftover markup.


A closer look at Text Cleaner

Ten independent options mean a pasted block can be cleaned without disturbing parts you want to keep. Stripping HTML tags removes markup while leaving the words and their order untouched. Collapsing blank lines is the usual fix for text copied out of a PDF or a web page.

Remove non-ASCII characters also deletes accented letters, so use it only for ASCII-only fields. The cleaned text appears in the output box, so the messy original stays available.


Putting Text Cleaner to work

Text Cleaner provides ten independent checkboxes, and any combination of them runs in a single pass. Trim removes leading and trailing whitespace, while Collapse multiple spaces reduces a run of gaps to one.

Strip HTML tags and Remove non-ASCII characters are the two options that change the content most, so check the output before copying. Normalize Chinese punctuation converts full-width marks to their half-width equivalents, which suits mixed-language drafts.


Where Text Cleaner helps

  • Cleaning text pasted from a PDF.
  • Preparing a column for a spreadsheet.
  • Removing hidden markup before publishing.

Precision and limits

  • Options are independent, so ticking only Strip HTML tags leaves the spacing exactly as it was.
  • Remove non-ASCII characters also deletes accented letters and Chinese text, which is useful for ASCII-only fields.
  • Normalize Chinese punctuation converts full-width marks to their standard forms without touching the words.

Frequently asked questions

Can I remove HTML tags only?

Yes, tick Strip HTML tags and leave the other boxes clear.

Will it delete Chinese text?

Only if Remove non-ASCII characters is ticked; otherwise Chinese characters are preserved.

Does it change the original input?

No, the cleaned version appears in the Output box.

How do I collapse blank lines?

Tick Collapse blank lines, which reduces runs of empty lines to a single break.