Text Cleaner

Clean messy text: extra spaces, empty lines, HTML tags, smart quotes, invisible characters and emoji.

Runs instantly in your browser — results update as you type.

What does a text cleaner do?

A text cleaner removes formatting junk from copied text — repeated spaces, blank lines, HTML tags, curly quotes, invisible characters and emoji — so the text pastes cleanly into code, spreadsheets or a CMS.

Cleaning options

  • Collapse extra spaces and tabs
  • Remove empty lines and trim each line
  • Strip HTML tags
  • Straighten smart quotes (“ ” ‘ ’), long dashes and ellipses
  • Remove invisible characters (zero-width spaces, soft hyphens, BOM) and turn non-breaking spaces into normal spaces
  • Remove emoji

Hidden characters often cause mysterious bugs: a keyword that does not match, a broken CSV import or a password that "is correct" but fails. Find out exactly which hidden characters a text contains with the Invisible Character Detector.

Frequently asked questions

Why straighten smart quotes?

Curly quotes from word processors break code, CSV files and some databases.

Will it change my words?

No, only spaces, quotes, tags and the characters you choose to remove.

Is my text uploaded?

No, cleaning happens in your browser.