Text Cleaner That Shows What It Finds First
Paste text or open a file. The cleaner first shows each invisible character, special space and look-alike it finds, counted and marked in the text, with what it does and what removing it can break. Then choose what to change, join the lines of each paragraph, and copy the clean text. Free, in your browser, nothing uploaded.
Your text
The cleaner needs JavaScript. What it looks for is explained below.
Invisible Characters, Named and Explained
Text copied from web pages, documents, chats and e-mails can carry characters you cannot see. On screen most of them look like nothing; they cause trouble where a program compares text letter by letter: a search, a duplicate check, an import, a link.
The scan names each one with its Unicode code point and name, counts it, marks it in your text and says what it is for. The scan changes nothing: the cleaned copy under it applies the defaults. Invisible characters go and special spaces become plain spaces; what can be seen or has a job stays, and so do double spaces, spaces at line ends and tabs until you tick the switches under the field. You can change any of them.
- Zero-width space: inside the path of a link it becomes part of the address, sent as %E2%80%8B.
- Non-breaking space: looks like a space but is another character, so 1 000 with it does not match 1 000 typed.
- Soft hyphen: an invisible hyphenation point inside a word that stops an exact match of the word.
- Byte order mark: the signature at the start of a file, which Excel uses to open a UTF-8 CSV normally; in pasted text it is out of place.
- Look-alike letters: a Cyrillic or Greek letter that looks like a Latin one inside a Latin word is flagged, and the other way round; a word written wholly in another alphabet is not checked.
- Text read in the wrong encoding: UTF-8 text read as Windows-1252 shows ’ for ’ and ü for ü; the cleaner shows each run with what it would become and offers to read it again as UTF-8. It never does so unasked, because correct text can look the same.
Zero-width space U+200B 1
Non-breaking space U+00A0 1
Soft hyphen U+00AD 1
Byte order mark U+FEFF 1
Double space 1
Kept: zero-width joiner inside an emojiTry a Real Mess
Each example loads into the cleaner and is scanned at once.
- Example
Hidden Characters in Four Lines
A byte order mark, a zero-width space inside a link, a soft hyphen, a non-breaking space in a number, a double space and spaces at a line end. The joiner inside the emoji has a job and stays.
- 8findings, marked in place
- 4changed by default, each listed
- 1kept for its job
- Line Breaks
A Paragraph in Short Lines
Lines joined, the empty line kept; one soft hyphen and one real hyphen at a line end.
- Typography
Quotes, Dashes, French Spaces
Shown and kept until you choose to make them plain: nothing changes by default.
- Kept in Context
Emoji, Persian, Hebrew
Joiners in an emoji and a flag, a non-joiner in a Persian word, a mark in a Hebrew line.
- Hidden Text
Tags and a Reversed Name
Tag characters that spell a hidden word, an override that turns a file name around.
Remove Line Breaks, Keep the Paragraphs
A paragraph can arrive as a row of short lines, as a copy from a PDF or an e-mail can. Under Line breaks, Join lines, keep paragraphs makes each paragraph one line again; an empty line stays and starts the next one. Remove all puts the whole text on one line, with a space or with nothing between the old lines.
A hyphen at a line end is a decision, not a guess. It can split a word (quali- fied) or belong to it (follow-up), so joining words at a hyphen waits until you tick it. A soft hyphen at a line end is different: it marks a break inside a word, so the two halves are always joined without a space. Chinese, Japanese and Thai lines join without a space, as those scripts write words without one.
Join cannot tell an address, a poem, a heading without an empty line after it or a link wrapped across two lines from a paragraph, so check those after joining. A line that starts with a list marker (-, *, •, 1., a)) stays on its own line.
- Remove empty lines and remove spaces at the start of lines, alone or with any mode
- Double spaces and spaces at line ends: listed by the scan, changed when you switch them
Marketing automation only pays off when
sales and marketing agree on what a
qualified lead is.
The next paragraph stays its own.
→
Marketing automation only pays off when sales and marketing agree on what a qualified lead is.
The next paragraph stays its own.Clean Text in Four Steps
From a paste with hidden characters to text you can trust.
- 1
Paste or Open
Paste the text, or open a text or CSV file of up to 10 MB.
- 2
Read the Scan
Each kind is counted, marked in the text and explained.
- 3
Choose
Keep or change each kind, and pick what happens to line breaks.
- 4
Copy or Download
Take the clean text, with LF or CR LF line endings.
What It Leaves Alone
Some invisible characters have a job. These stay unless you choose otherwise, and the result says why.
- Emoji and flags. A zero-width joiner between two emoji, a variation selector after an emoji and the tag characters of a regional flag belong to the emoji (Unicode Technical Standard 51).
- Persian, Arabic and Indic words. Next to an Arabic or Persian letter, or between Indic letters, the joiner and the non-joiner decide how the letters connect.
- Right-to-left lines. In a line with Arabic or Hebrew letters, direction marks can change the order in which the line is shown.
- Typography. Curly quotes, guillemets, dashes and the ellipsis are visible and correct, so they stay until you switch them to plain text. So do no-break spaces in French punctuation: before a colon, a semicolon, a question or an exclamation mark, and inside the guillemets.
- Tabs and extra spaces. They can carry layout or meaning (two spaces at a line end are a line break in Markdown, code and tables use spaces), so the scan lists them and they change only when you tick Remove extra spaces or Tabs to spaces under the field.
- Lost characters. The replacement character stays, because removing it would hide that a letter is missing.
- Your file. It is read in your browser and never uploaded, and cleaned exactly as it is: the field shows it but cannot change it. Its byte order mark, the signature Excel uses, stays (a JSON file loses it, as the JSON standard asks). Line endings show only for opened files: a text field turns every line ending into LF.
Text Cleaner FAQ
Short answers to what people ask about hidden characters and line breaks.
What are invisible characters?
Characters that take up no room or look like a normal space: zero-width spaces and joiners, the soft hyphen, the byte order mark, direction marks, non-breaking and other special spaces, tag characters and control codes. You cannot see them, but a search, a link or an import compares them letter by letter.
How do I remove line breaks but keep paragraphs?
Paste the text and choose Join lines, keep paragraphs under Line breaks. The lines of each paragraph become one line; an empty line stays and starts the next paragraph.
What is a zero-width space, and why does it break links?
U+200B marks a place where a line may break, without a visible space. Inside the path of a link it becomes part of the address: the browser sends it as %E2%80%8B and asks for another page.
Why is a non-breaking space not removed with the hidden characters?
Because Unicode files it under spaces (category Zs), while the zero-width space is a format character (category Cf). The cleaner lists it as a special space and replaces it with a plain space, unless it sits in French punctuation (before a colon, a semicolon, a question or an exclamation mark or the closing guillemet, after the opening one), where it keeps the mark on the line of its word. Next to a number the plain space lets the number and its unit wrap apart at a line end; choose Keep in its row if that matters.
Are all invisible characters harmful?
No. A zero-width joiner holds emoji such as the family emoji together, Persian and Indic writing need the joiner and the non-joiner between letters, right-to-left text needs its direction marks, and Excel opens a UTF-8 CSV normally if it was saved with a byte order mark. The cleaner keeps the first three where it finds them in that context and says why.
Should I remove the byte order mark from a CSV file?
Not if the file is for Excel. Microsoft says Excel opens a UTF-8 CSV file normally if it was saved with the mark; without it, open the file through Data > Get Data > From File > From Text/CSV. The cleaner keeps the mark in an opened file (not in a JSON file, which should not carry one) and removes it from pasted text. A CSV file it read as Windows-1252 is saved as UTF-8, so the download gets the mark by default.
Why does pasted text show no line endings?
A text field in the browser turns every line ending into LF, so mixed line endings never reach the cleaner by pasting. Open the file instead, then pick LF or CR LF for the download.
Does it find look-alike letters, such as a Cyrillic a in a Latin word?
Yes, when one word mixes alphabets: a Latin word with a Cyrillic or Greek letter that looks like a Latin one, or a Cyrillic word with a Latin look-alike, is flagged and never changed, so you retype it. Letters that look different, as in kΩ or μm, are not flagged, and a word written wholly in Cyrillic or Greek is not checked, because it may be meant.
Is my text uploaded?
No. The text is scanned and cleaned in your browser. Nothing is sent or stored, and nothing from it reaches analytics.
More Free Tools
We Make Salesforce Marketing Work for You
Talk to a certified consultant, not a salesperson, and leave the first call knowing your next step.