Formatting
Invisible characters break searches and diffs while the line looks fine. This page substitutes a visible mark for the ones it knows. An ordinary space becomes ·, so “Odd socks in the dryer.” becomes Odd·socks·in·the·dryer. A tab becomes →. A non-breaking space, U+00A0, becomes ⍽. A zero-width space, U+200B, becomes the label [ZWSP]. A line break becomes ↵ and the line break itself is kept, so the next line still starts on the next line.
“Odd socks”, a tab, “in the”, a non-breaking space, “dryer.”, and a newline becomes Odd·socks→in·the⍽dryer.↵ with the newline after the arrow mark. You can see which gap was a real space and which was a tab or a non-breaking space. Trim and collapse spaces will not treat those the same way, which is why the marks matter.
What it misses: an em space stays an em space, an en space stays an en space, and a word joiner or a byte-order mark is not labeled. The page does not remove anything. It only redraws. If you wanted the odd spaces deleted, trim, collapse, or find and replace is the next step, after you know which character you have.
Odd socks in the dryer.
Odd·socks·in·the·dryer. Each space is a middle dot. The period is still a period. There is no line-break mark because there is no newline.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Odd·socks·in·the·dryer. Four middle dots, one per space. The period is unchanged.
Space is ·, tab is →, non-breaking space is ⍽, zero-width space is [ZWSP], and a newline is ↵ plus the newline.
Only space, tab, non-breaking space, zero-width space, and newlines are substituted. An em space, an en space, and a word joiner pass through.
No. It draws a stand-in. Copying the result copies the marks, not the original spaces. Clean the source with trim or find and replace.
No. A normal space is · and a non-breaking space is ⍽. That distinction is the reason to open this page before trimming.