Text Cleaner

Text Cleaner

Fix messy text in one pass: extra spaces, blank lines, stray punctuation, numbers, HTML tags and accents — you choose what to remove. Runs locally.

Text copied from PDFs, web pages, emails, and spreadsheets arrives dirty: double spaces between every word, blank lines everywhere, trailing spaces on each line, HTML tags mixed into the words, or accents that a receiving system cannot handle. Cleaning that by hand is tedious and inconsistent. This tool applies the common fixes in one pass, with each fix under your control.

Tick only what you need. Removing extra spaces collapses runs of spaces and tabs into a single space — the classic scar left by justified text and PDF copying. Trimming each line removes the invisible padding that breaks imports and comparisons. Removing blank lines tightens text that came from a formatted document. Stripping HTML tags pulls the plain words out of copied web markup. Removing accents converts letters like é, ñ, and ü to their plain base forms, which older systems, some databases, and certain file formats require. The more drastic options — removing punctuation or numbers entirely — are there for preparing word lists, testing data, and similar jobs where only the letters matter.

The operations run in a sensible order (tags and accents first, spacing last), and the status line reports how the character count changed so you can see the cleaning actually happened. Your original stays untouched in the top box, so you can adjust the options and run it again. Everything happens in your browser.

How to use

  1. Paste the messy text into the top box.
  2. Tick the cleaning options you want; leave the destructive ones (punctuation, numbers) off unless you truly need them.
  3. Click Clean Text and read the result below.
  4. If the result is not right, change the options and clean again from the untouched original.
  5. Copy the cleaned text into your document or system.

Frequently asked questions

In what order are the fixes applied?

HTML tags are stripped first, then accents, punctuation, and numbers, then line trimming, space collapsing, and blank-line removal last. That order means the spacing fixes tidy up whatever the earlier steps left behind.

Does removing punctuation delete apostrophes in words like "don't"?

Yes — punctuation removal means all punctuation, including apostrophes and hyphens inside words. It is meant for word lists and data preparation, not for prose you intend to publish.

Will removing accents change the meaning?

Sometimes. In languages like Spanish and French, accents distinguish words (for example, "él" and "el"). Only use accent removal when a system genuinely cannot accept the characters.

Is my text private?

Yes. Cleaning happens entirely in your browser. Nothing is uploaded, saved, or shared.