How to use the Text Cleaner
- Paste your text into the input box. The cleaned version appears instantly in the output panel.
- Enable or disable cleaning options below the panels. By default, Trim whitespace and Collapse spaces are on. Toggle others as needed.
- Check the stats strip — it shows input length, output length, approximate changes made, and line count in the output.
- Copy the output with the copy button at the top right of the output panel. The cleaned text is ready to use.
Cleaning options explained
Trim whitespace
On by defaultRemoves leading and trailing whitespace from each line individually. For example, " hello " becomes "hello". Useful for cleaning up indented text or copy-paste artifacts.
Collapse spaces
On by defaultReplaces two or more consecutive spaces with a single space. Removes the double-spacing that often comes from word processors or tab-to-space conversions.
Remove blank lines
Off by defaultFilters out lines that are empty or contain only whitespace. Useful for compacting lists and removing paragraph gaps.
Strip HTML
Off by defaultRemoves all HTML tags (everything between < and >), leaving only the text content. Useful when cleaning content copied from web pages or rich text editors.
Normalize quotes
Off by defaultConverts curly/smart quotes (“”‘’) and guillemets («») to straight ASCII quotes. Useful when preparing text for systems that only accept standard quotes.
Remove special chars
Off by defaultStrips non-standard Unicode characters, keeping only letters, numbers, spaces, and common punctuation. Use with care — it may remove accented characters or emoji.
When to use the Text Cleaner
Cleaning copied web content
Text copied from websites often brings HTML tags, extra spaces, and smart quotes. Strip it all in one pass.
Preparing text for databases
Remove special characters, normalize whitespace, and strip HTML before inserting content into a database field.
Fixing word processor output
Docs and Word files produce curly quotes, double spaces, and hidden whitespace. Normalize it before publishing.
Cleaning OCR output
OCR text often contains stray symbols, extra spaces, and unusual characters. Use 'Remove special chars' to clean it up.
Compacting email replies
Quoted email threads add extra blank lines and indentation. Trim and collapse to get a clean block of text.
Normalizing user input
Before processing or displaying user-submitted content, run it through the cleaner to remove unexpected formatting.
Also see Remove Line Breaks for focused newline removal, Case Converter to change text case, or Duplicate Line Remover to deduplicate lists.