How to Use the Invisible Character Remover

Identical strings

There may be invisible characters within text. This can cause confusion when copying labels or search terms. As we know what characters will be present in our example, this walkthrough will use the free tool. This will ensure we know exactly how many characters will be picked up by the scanner, and what the clean up process will do with them.

The example we will use includes many different characters; a zero width space, within a compound label. A non-breaking space, curly quotes, em dash, line break and emoji with a joiner. The exact text used can be seen in the screenshots below. However, the preview gives us better insight into the characters.

We had a successful result. 6 relevant characters were found. 1 was removed, 4 were replaced, and 1 was kept. This was the joiner within the emoji sequence. The default option is to leave the joiners alone. We were able to see exactly what the output would be.

Start with knowing what you want to clean up

Before adding any text in, consider what issue you want to fix. You may be wanting to find an invisible delimiter, strange space or punctuation. Not all non ASCII characters will be unwanted. Many are intentionally added within text. Changing the incorrect category can impact how the text is viewed.

Always save a copy of the original text. This is especially important if there are multiple scripts or complex emojis. There may be a real function to the invisible character. The tool allows you to select options individually. This means you can ensure you are only doing what you want. Within our example we didn’t enable the joiner.

Open up the Invisible Character Remover page. You will see the text area to scan. By default we will have the zero width, non breaking space, smart quote, dash and control characters. We will not have the joiner selected. A warning states that this may affect the emojis and scripts.

Screenshot 1

Add in the example text. Ensure you can see the options available. Whilst we can’t see all the invisible characters from the screenshot, the preview will show us. The preview gives us more detail.

Click the scan and clean button. We can see that 6 characters have been found. 2 from the zero width/joiner category. 1 strange space. 0 control/ direction markers. 3 punctuation. 1 has been removed, 4 have been replaced, and 1 has been found. This is consistent with the example we have created.

The zero width space has been removed from the label. This has combined the two visible elements together. The non breaking space has been replaced with a normal space. The curly quotes have been replaced with straight quotes. The em dash has been replaced with a hyphen. The line break has been kept. The joiner from the emoji has been kept due to it not being enabled. The exact output can be seen in screenshot 2.

Screenshot 2

You can see that the characters have been either removed or replaced. Depending on the character you may want to keep the text together by removing the invisible delimiter or keep the space by replacing the strange space. Within our example we have done the correct thing. However, within your text you may need to do something different. If you want to ensure two words stay separated, don’t assume that just because you have removed the zero width character that a space will be added.

Click the button to show the characters found. We can now see the highlighted preview. The zero width space, non breaking space, left curly quote, right curly quote, em dash and emoji joiner have all been labelled with their Unicode code point.

Screenshot 3

This is important to note. Just because a character has been found doesn’t mean it will be removed. Due to the character being within a recognised category it may have been counted. However, if the option hasn’t been enabled it will be kept. Within our example the joiner has been kept.

We could see the output. We could see that the zero width space and non breaking space code points weren’t present. The normal space and punctuation had been replaced. The line break had been kept. The emoji sequence had the joiner. This confirms the output was as stated. We aren’t confirming that all Unicode characters/scripts have been tested.

Within this example we didn’t use any copy control. We didn’t enable the joiner. We didn’t test the limit on large inputs, all the control character categories or an external destination field. However, we have confirmed that we knew what was in the example. We could see how many characters were found. We could see the highlighted preview. And we confirmed the cleaned output.

Use the output wisely

Once you have cleaned up a real string go back to the original task. Ensure that your specific issue has been resolved. If you were having issues searching due to an unexpected invisible delimiter, use the cleaned search term. If you are using a label with plain text and need normal spaces use the cleaned label. The output is an intermediary step. You need to ensure the authorised destination will take it.

Don’t enter any passwords, tokens or sensitive information just to play around with the character scanner. Using an example will give you the same results without risking any secrets. Within this tutorial we used made-up text, no credentials or access to accounts. The site states it processes locally. This exercise isn’t an independent privacy/security audit.

Within multi language text you want to be very careful. The joiners and direction markers can affect how the text is displayed. Just because a character is invisible doesn’t mean it is unnecessary. Keep the original text. Only clean the categories that are relevant. Also ensure that you understand what the text will look like in the correct language. If you don’t understand what the character does, view it.

With typography, the curly quotes and long dashes are visible punctuation. We have included them as they offer normalisation options. The output showed that these options work. However, it may be preferred to keep the original typography within the publication. Ensure that the destination requires the correct format.

A good troubleshooting process is to start with the shortest sample of text. Scan it. View the highlighted preview. Identify what category it falls under. Clean it up. Compare with the original text. If there are line breaks or meaningful spaces within the source text ensure these are checked too. Once you understand what the options do on the short example it will be easier to scale up.

Remember this is just cleaning characters within the text. We haven’t altered the text or assessed the argument. We have only changed the characters. If the sentence is confusing due to structure or lack of context removing an invisible marker won’t help. However, it may be that the sentence reads fine, but there is a character that is important to a strict string comparison.

There is nothing to suggest that this will help with authorship or watermarks. The strange spaces, punctuation or joiners don’t indicate who or what wrote the passage. These characters are used normally within many sources. This is a character viewer, not an authorship detector.

Within our example we have a clear outcome. We had 6 characters found. 1 was removed. 4 were replaced. The emoji joiner was kept. The text was kept visible. The line break was kept. The emoji sequence was kept as intended. If you need to investigate a small issue with characters then this free character cleaner can help you to view the invisible characters. However, it is up to you to decide what should be in the text.