1. Home
  2. Text
  3. Text Cleaner

Text Cleaner

Clean pasted text option by option: quotes, emoji, symbols, tags, spaces.

Runs in your browser · No upload
Characters
Remove
Whitespace and lines
Characters before
102
After
97
Invisible characters removed
1
Quotes replaced
2
Emoji removed
0
Symbols removed
0
Tags removed
0
Blank lines removed
1
Result
"Hello" nice to meet you… • First item ★sale • Second item 😀 <b>tags</b> &amp; entities mixed in

How to use

  1. Paste your copied text into Text to clean. An example is loaded at first, so press Clear and paste your own.
  2. Choose what to clean in the options. By default curly-quote conversion, invisible-character removal, special-space cleanup and whitespace cleanup are on.
  3. The Result below updates as you change options. It shows the character count before and after and how many items were removed.
  4. Copy the result or save it as .txt.

Options

Option What it does Input → output
Curly quotes Curly quotes to straight quotes “hello” → “hello”
Dashes En and em dashes to a hyphen one dash style everywhere
Ellipsis The single ellipsis character to three dots wait… → wait…
Invisible characters Removes zero-width spaces, BOM, soft hyphen, control characters the zero-width space between a and b disappears
Special spaces NBSP and full-width spaces to a normal space the NBSP between a and b becomes one normal space
HTML tags Removes tags and script and style blocks, decodes entities like &amp; <b>a</b> → a
Emoji Removes emoji, including skin-tone, flag and family sequences a😀b → ab
Symbols Remove decorative symbols, or keep only letters, digits and spaces ★sale → sale
List bullets Removes •, ●, - and similar at the start of a line • first → first
Whitespace and lines Trims lines, collapses repeated spaces and blank lines a b → a b
Join broken lines Turns line breaks inside a paragraph into spaces text copied from PDFs or email

Example

The text below, cleaned with the default options and with every option on. The source mixes curly quotes, two NBSPs, an ellipsis, a zero-width space, a star, an emoji and HTML.

Options Result
Default “Hello” nice to meet you… / • First item ★sale / • Second item 😀 / <b>tags</b> &amp; entities mixed in
All on “Hello” nice to meet you… / First item sale / Second item / tags & entities mixed in

The defaults leave everything you can see alone and only remove what copying left behind.

Order of processing

HTML cleanup, line-ending normalization, invisible characters, quotes, dashes and ellipsis, emoji, symbols, special spaces, list bullets, then whitespace and line breaks. Because symbols go first and spaces are tidied afterwards, the gap left next to ★sale disappears in the same pass.

Good to know

  • The symbol option does not touch units. Decorative removal only targets stars, arrows and shapes, so things like ㎡, ℃, © and % stay. To drop all punctuation use letters and digits only; note that decimal points and commas go too, so v2.0 becomes v20.
  • The emoji option keeps ©, ® and ™. Digits, # and * stay as well.
  • Joining lines turns breaks into spaces. Text from a PDF that splits a word at the line end may get a space inside that word, so check the result.
  • HTML cleanup just pulls out readable text. It is not a security tool and does not make untrusted HTML safe.
  • Up to 1,000,000 characters at a time.

Frequently asked questions

Where do invisible characters come from?

Copying from web pages, chat apps and word processors can bring along zero-width spaces and direction marks. You cannot see them, but they add to the length, break searches and comparisons, and cause errors in code or file names.

Why replace curly quotes?

Code, config files, shell commands and spreadsheet formulas only understand straight quotes. Pasting curly quotes that a word processor inserted causes errors.

How do I remove only the line breaks?

Turn on only Join broken lines and switch the rest off. To remove every line break, Remove Line Breaks is simpler.

Will letters from other languages be removed?

No. Even with letters and digits only, letters from every language stay. Only symbols are removed.

The text you enter is processed only in your browser and never sent to a server.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.