How to use
- Paste your copied text into Text to clean. An example is loaded at first, so press Clear and paste your own.
- Choose what to clean in the options. By default curly-quote conversion, invisible-character removal, special-space cleanup and whitespace cleanup are on.
- The Result below updates as you change options. It shows the character count before and after and how many items were removed.
- 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 & |
<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> & 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.0becomesv20. - 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.
Related tools
- Only spaces and blank lines: Remove Extra Spaces
- Only line breaks: Remove Line Breaks
- Replace specific text with Find and Replace
- Convert HTML entities by hand with the HTML Entity Converter
- Switch full-width and half-width with the Full-width Half-width Converter
- Garbled text? Try the Mojibake Fixer
The text you enter is processed only in your browser and never sent to a server.