Wirebook

Wirebook › Bonus lesson

Why can two passwords look the same but only one works?

Bonus lesson · about 7 minutes · hands-on · nothing you type leaves your browser

Two passwords can look identical on the screen and still be different to a computer. The difference is often an invisible character: a real Unicode number that draws nothing. Drag the lens across the sand below to find the ghost footprints they leave, read what each one does, then repair broken messages — while keeping ordinary spaces.

Ghost footprints in the sand

The message below looks ordinary. Drag the magnifying glass (or use the arrow buttons) across the sand. Wherever an invisible character hides, a glowing ghost footprint appears under the lens. Tap a find (or use the button below) to see a plain-words card: name, code point, what it does, and whether it is usually harmless, useful or troublemaking. Everything stays in this page; nothing is sent anywhere.

What the lens sees

Drag the lens left and right over the sand.

    Not every blank is a villain. An ordinary space (U+0020) is the normal gap between words — computers expect it, and messages need it. Non-breaking spaces, zero-width spaces and friends look empty too, but they are different numbers. The skill is telling the good blank from the troublemakers.

    Invisible characters are real numbers

    Every letter, space and emoji has a number on the worldwide Unicode list. Most numbers draw something you can see. A few are deliberately blank: they are still numbers in the text, they still take up bytes when you send a message, and computers treat them as different from "nothing there". An ordinary space is one of those numbers too — just the everyday, legitimate one.

    The most common blanks (good and sneaky) you will meet:

    Paste an invisible X-ray

    Paste or type anything. Visible letters stay plain; invisible characters turn into labelled ghost chips; ordinary spaces show as ␠ SP. Tap any chip for a plain-words card. Try the mixed example: a ghost sitting next to a real space.

    0visible characters
    0invisible ghosts
    0bytes (UTF-8)
    0JavaScript length

    Repair a broken message

    Each message below has sneaky invisible characters mixed with real spaces. Click ghost chips to remove them, or click an NBSP chip to replace it with a real space. Leave ordinary spaces alone — they are legitimate. Check when you think it is clean. Nothing is uploaded.

      0 of 3 messages repaired.

      Three cases the ghosts caused

      Each case looks fine until you check carefully. Pick what really went wrong. Remember: an ordinary space in the good filename was supposed to be there.

        Why computers care and people don't

        Your eyes skip blanks. A computer compares every number in order. One extra zero-width space and a password check fails, a filename search misses, or two "identical" lines in a diff tool light up as different. That is useful for emoji glue and soft line breaks, and annoying when a ghost sneaks into a secret or a config file. Deleting every blank is the wrong fix — messages still need ordinary spaces.

        Building apps? Free help: invisible / zero-width Unicode guide · interactive sibling vanishing emojis · API /v1/text/inspect. Nothing you type here is uploaded.

        Words from this lesson

        Earn a bonus badge

        Get all 3 right to collect the Ghost footprints bonus badge. Bonus badges are extra: they don't change your stamp count or rank. Wrong answers are fine: just try again.

        1. A password looks right when you paste it, but login still says no. What often happened?

        2. You are cleaning a pasted sentence. What should you do with an ordinary space (U+0020)?

        3. Two filenames look identical in a folder, but only one opens. A likely cause is:

        Try another lesson

        1. 3Can a website get tired?7 min · interactive
        2. 12How does a game remember where you got to?6 min · interactive
        3. 1What happens when you open a web page?6 min · interactive