Skip to content
JustCleanText

Hidden character remover

Remove Hidden Characters & Zero-Width Spaces

Invisible characters are the reason two identical-looking strings fail a comparison. Paste your text and JustCleanText removes zero-width spaces, joiners, BOMs, and stray control characters — then tells you exactly how many it found.

Emojis and non-English scripts are preserved

Cleaning options

What does each toggle do?
Strip Markdown
Removes *, #, _, backticks, link syntax, and list markers while keeping the words.
Remove AI chatter
Drops standalone openers and outros such as “Certainly! Here’s…” and “I hope this helps!”
Remove <think> reasoning blocks
Removes DeepSeek-style <think>…</think> reasoning, thinking tags, and unclosed reasoning blocks so only the answer remains.
Remove emoji
Removes pictographic emoji, flags, keycaps, and skin-tone modifiers. Copyright and trademark symbols are kept, and code blocks are protected.
Preserve tables
Keeps Markdown tables as aligned rows and real HTML tables in rich-text copy. Turn this off to flatten each row into “heading: value” text.
Clean invisible Unicode
Removes zero-width spaces, word joiners, stray control characters, and excess blank lines.
Bullets from dashes
Turns “- item” list markers into a typographic bullet (• item) in the plain-text output.
Empty

Uploads are read locally. .txt, .md, .csv, .json, .html and .xml up to 5 MB.

Copy for your app

Cleaned text appears here, live.

Cleaning report

    Paste text above to see the cleaning report.

    Download for your app

    CtrlEntercopies rich textShiftfor plain text

    100% client-side privacy:your text never touches a server. Uploaded files are read in the browser, all cleaning happens locally, and nothing is stored after you close the tab.

    • No account required
    • No text upload
    • No text storage
    • Works after page load, even offline
    • No AI rewriting or text generation
    Advanced options

    The basics

    What a zero-width space actually is

    Unicode defines characters for things other than glyphs. Some mark where a line may break, some join characters into a single grapheme, and some control the direction text flows. They are real characters with real code points — they simply have no visible shape.

    A zero-width space (U+200B) is the classic example. It exists so that a long word in a script without spaces can be broken across lines. When it appears in the middle of an English word, nothing looks different, but the string is no longer the word you think it is.

    That is why invisible characters cause problems out of proportion to their size: every comparison in software is a comparison of code points, and a human reading the screen cannot see the difference.

    The list

    Characters JustCleanText removes

    Every entry below renders as nothing. If the cleaning report shows a non-zero count, your text contained at least one of them.

    Invisible Unicode characters removed by JustCleanText
    Code pointNameWhy it matters
    U+200BZero-width spaceSplits words invisibly. Breaks search, filters, and duplicate detection.
    U+200CZero-width non-joinerLegitimate in some scripts, noise almost everywhere else.
    U+200DZero-width joinerUsed to build emoji sequences; stray copies break string matching.
    U+2060Word joinerPrevents line breaks. Invisible in every editor.
    U+FEFFByte-order markSometimes lands mid-string after a copy, adding a phantom character.
    U+200E / U+200FDirectional marksLeft-to-right and right-to-left marks that reorder nearby punctuation.
    U+00ADSoft hyphenA hidden break point that can appear as a stray hyphen when reflowed.
    U+FE00–U+FE0EVariation selectorsChange glyph presentation and are invisible on their own.

    Deliberately kept: the emoji presentation selector (U+FE0F), the Arabic letter mark (U+061C), and bidi isolates used by right-to-left scripts. Removing those would change how text renders for real users.

    The impact

    How hidden characters break things

    Search stops matching

    A product name with a zero-width space inside it will not match the same name typed by a customer. On-site search, filters, and autocomplete quietly fail.

    Code stops running

    String comparisons, JSON keys, environment variables, and regex patterns all compare exact bytes. One invisible character is enough to throw a mismatch.

    Documents look fine, fail later

    A heading with a hidden character inside will not be found by “find and replace”, and duplicate-content checks treat it as a different string.

    Detection

    How to tell whether your text has them

    You cannot see them, so the only reliable test is to count code points. Three quick methods:

    • This tool. Paste the text and read the cleaning report. The hidden-character count is the number removed.
    • Your editor. VS Code can show unusual characters witheditor.renderControlCharacters, and most editors can search for a code point by pasting it directly into the find box.
    • The terminal. grep -P "[\x{200B}-\x{200D}]"finds zero-width characters in a file on macOS or Linux.

    The report in JustCleanText separates hidden characters from blank lines, so a “2 hidden characters removed” result means exactly that.

    What gets normalised

    Beyond the invisible ones

    The same pass also tidies whitespace that causes visual glitches after a paste:

    • Non-breaking spaces become ordinary spaces
    • En spaces, thin spaces, and hair spaces become one space
    • Trailing spaces and tabs at line ends are removed
    • Runs of three or more newlines collapse to one blank line

    The ideographic space used in CJK typography is left alone, because it is a real layout choice rather than an artefact.

    Hidden character FAQ

    Invisible text, visible answers

    What these characters do, which ones are safe to remove, and how to verify the result.

    What is a zero-width space?

    A zero-width space (U+200B) is a Unicode character that occupies no visible width. It is used for line-breaking control in some scripts, but it also appears in copied text, where it silently splits words and breaks search, filters, and string comparisons.

    How do I find hidden characters in text?

    Paste the text here and watch the cleaning report. JustCleanText counts every invisible character it removes, so a value above zero means your text contained something you could not see.

    Which invisible characters does JustCleanText remove?

    Zero-width space, zero-width non-joiner, zero-width joiner, word joiner, byte-order mark, left-to-right and right-to-left marks, bidi embedding and isolate controls, soft hyphens, non-emoji variation selectors, and stray C0/C1 control characters.

    Will it damage emojis or non-English text?

    No. Emoji presentation selectors are preserved so emojis render normally, and letters from any script are left alone. Accented characters, Arabic, Hebrew, Devanagari, Chinese, Japanese, and Korean text pass through untouched.

    Do hidden characters affect SEO?

    They can. Zero-width characters inside headings or titles can make two visually identical strings differ, which hurts duplicate detection, internal search, and on-page filtering. Cleaning them keeps a single canonical version of each phrase.

    Start cleaning

    One paste finds what you cannot see.

    The report tells you how many invisible characters were removed, so you can verify the cleanup instead of trusting it.

    100% client-side · No account · Works offline once loaded

    Clean & copy