Skip to content
OddsockLocal
Local
Source text

Formatting

5 wordsRuns in this browser. Nothing is uploaded.

How to use

  1. Paste the text.
  2. Read · as a normal space, → as a tab, ⍽ as a non-breaking space, and [ZWSP] as a zero-width space.
  3. Read ↵ as the end of a line. The following line break is still there.
  4. Do not paste the marked text back into a document. The marks replaced the original characters.

What is Whitespace visualizer?

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.

Read more

“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.

Use cases

  • A developer chasing a diff that looks identical and is not.
  • An editor finding a non-breaking space inside a sentence that would not trim.
  • A student seeing the four spaces in the dryer sentence as middle dots.
  • A support agent spotting a zero-width space that split a word in half.
  • A data clerk checking whether a gap is a tab or four spaces.

Four ordinary spaces in one sentence

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.

Why use Oddsock

Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.

Related tools

Using this tool

Odd·socks·in·the·dryer. Four middle dots, one per space. The period is unchanged.