alt code blank space creates a no-break space (U+00A0), letting you keep words together or fill picky form fields.
Sometimes you need a space that behaves like a space, yet refuses to split at the end of a line. Other times, a website field won’t accept a plain space as “blank,” but it will accept a different whitespace character. That’s where this trick earns its keep.
This guide shows the safest ways to type a non-breaking space on Windows today, plus clean alternatives for Mac, Linux, phones, and web work. You’ll also learn how to spot these invisible characters and remove them when they cause trouble.
Alt Code Blank Space On Windows With Alt 0160
If you’re on Windows and you have a number pad, Alt codes are the fastest route. The most common “blank that won’t break” is the no-break space at decimal 160, typed with Alt+0160 on the number pad.
Use The Number Pad Method
- Turn on Num Lock.
- Place the cursor where you want the space.
- Hold Alt.
- Type 0160 on the number pad.
- Release Alt.
You won’t see anything special on screen. The payoff shows up when text wraps: the words on each side of that space stay glued together.
On many laptops, the number pad is layered onto letter buttons. Hold Fn while typing the digits, or plug in a number pad. The top row digits often won’t register as Alt-code digits. If it fails, switch to Character Map.
Apps That Usually Accept Alt Codes
Text boxes in many programs accept Alt+0160, including WordPad, Notepad, and many Office fields. Browser fields vary, so copy and paste may beat Alt codes there.
Try Alt 255 Only If You Test It
You’ll see Alt+255 mentioned online as a “blank.” On some setups it produces the same character as Alt+0160, yet on other code pages it can yield a different symbol. If you use it, type it into a scratch document first and verify what you got before you paste it into a form, a spreadsheet, or code.
| Where You’re Typing | What To Press Or Enter | What You Get |
|---|---|---|
| Windows (number pad) | Alt + 0160 | No-break space (U+00A0), stops line breaks at that spot |
| Windows (Character Map) | Select U+00A0, copy, paste | No-break space without typing any code |
| Microsoft Word (desktop) | Ctrl + Shift + Space | No-break space, handy for names, titles, units |
| macOS | Option + Space | No-break space in many apps |
| Linux (many desktops) | Ctrl + Shift + U, then 00A0, then Enter | Unicode no-break space |
| HTML | |
Non-breaking space in web pages |
| Any device | Copy this: |
Paste a no-break space when shortcuts fail |
| Programming editors | Insert U+00A0 via Unicode input | Whitespace that can break linting, so use with care |
What This Blank Space Is
People say “blank space,” yet there are many whitespace characters. A normal space is U+0020. A no-break space is U+00A0. They look alike, but their behavior differs in line wrapping and in certain text rules.
On Windows, the no-break space maps to decimal 160 in the classic Windows character set tables, so Alt+0160 works in many apps that accept Alt code input. Microsoft’s own reference notes that character 160 is the no-break space in that set, with higher values shaped by the system’s code page. Character Set 128–255 Reference
Unicode also defines U+00A0 as a spacing character used to prevent a line break. You can see it listed in the Unicode code charts for the Latin-1 block. Unicode Latin-1 Code Chart PDF
When You Should Use A No-break Space
This character shines when a normal space would let a line split in a bad spot. You’ve seen it before in print-style text: a person’s initials stuck to their surname, a number stuck to its unit, or a title stuck to a name.
- Names and initials: “A. Rahman” stays on one line.
- Numbers and units: “50 km” won’t split as “50” at line end.
- Dates and labels: “Dec 13” won’t wrap between the parts.
- Short codes: “Ref A12” keeps the label and token together.
It also helps when two words must stay paired for scanning, like “Room 12” or “Page 3.”
Cases Where It Backfires
A no-break space looks innocent, but it can cause head-scratching moments in data tools and code. If you paste text from a PDF, an email, or a website, you can end up with U+00A0 inside a value that looks clean but fails a match.
Watch out for these patterns:
- Spreadsheets: A cell may fail a VLOOKUP or match step because the “space” is not U+0020.
- CSV imports: Parsers can treat it as part of a field, so trimming may not remove it.
- Passwords and logins: A pasted no-break space can make a password wrong while still looking blank.
- Code and config: Linters may flag it, or indentation can behave oddly.
If you need a true empty field, a no-break space is still a character. Some systems count it, some don’t, and you only know after you test the exact form or app.
Ways To Type The Same Character Without Alt Codes
No number pad? No problem. You can still insert U+00A0 in a few clean ways.
Use Windows Character Map
Open Character Map, pick a font, then locate the no-break space by selecting characters and watching the code point display. Copy it, then paste where you need it. This route works even on compact laptops where Alt codes are awkward.
Use A Copy And Paste Seed
Here’s a no-break space between the brackets: [ ]. Copy what’s inside the brackets, not the brackets. Keep a note file with that seed so you’re not hunting for it each time.
macOS And iPad Boards
Many Mac apps accept Option+Space for a no-break space. Some editors may treat it as a plain space, so do a quick wrap test: type a long line with your inserted space, then narrow the window and see if it refuses to break there.
Linux Unicode Input
On many Linux desktops, Ctrl+Shift+U starts Unicode entry. Type 00a0, hit Enter, and you’ll get the character. If your desktop uses a different compose system, search your desktop’s typing board settings for “Unicode input” or “Compose option.”
Using No-break Space In Web Work
If you write HTML, the cleanest way is usually the entity . It reads well in source and behaves the same as U+00A0 in rendering. In plain text editors, you can still paste the literal character, but you lose visual clarity, since it looks like a normal space.
When you need multiple visible gaps in HTML, don’t stack a pile of entries to fake layout. Use CSS spacing or proper elements. A no-break space is for text flow, not page layout hacks.
How To Tell Which Space You Inserted
Since the character is invisible, you need a way to verify it when it matters. These quick checks work in most workflows:
- Wrap test: Put the cursor after the space, then shrink the window. If the words refuse to split, you likely inserted U+00A0.
- Copy test: Copy the two words plus the space into a hex-aware editor or a tool that shows code points.
- Find/replace: In some editors, you can search for the exact Unicode point and replace it.
Cleaning No-break Spaces When They Cause Trouble
When a file has mixed spaces, clean-up is usually a two-step task: detect, then replace. Start by copying a suspect space into your clipboard. Then use your editor’s find box, paste that space into the search field, and replace it with a normal space.
In spreadsheets, you can often fix it by running a replace step for the character itself, or by using a function that swaps U+00A0 for U+0020, then trimming. The right tool name varies by app, so stick to the idea: replace the exact character, then trim the result.
Common Failures And Fixes
If Alt codes won’t work or your “blank” won’t behave, these are the usual culprits. Scan the symptom, then try the matched fix.
| Symptom | Likely Reason | Fix That Usually Works |
|---|---|---|
| Alt+0160 prints nothing at all | No number pad input is being read | Use the number pad, turn on Num Lock, or use Character Map |
| Alt+0160 inserts a different symbol | App blocks Alt codes or uses its own input layer | Paste U+00A0 from Character Map or use the HTML entity in web fields |
| Your “blank” still wraps to the next line | You inserted a normal space (U+0020) | Redo the insert with Alt+0160 or paste a known U+00A0 seed |
| A form rejects the field as empty | The site trims whitespace and checks length | Use a real value or follow the site’s rule; U+00A0 is still a character |
| A spreadsheet match fails | Hidden U+00A0 lives in the text | Replace U+00A0 with normal spaces, then trim and re-test |
| Code style checks fail | Editor copied a no-break space into code | Turn on visible whitespace, replace with U+0020, commit again |
| Alt codes work in one app, not another | Different input rules per app | Keep a copy/paste seed and a Character Map fallback |
| Alt+255 behaves differently on two PCs | System code page differs | Stick with Alt+0160 for U+00A0 when you can |
A Quick Workflow That Saves Time
If you use this more than once a month, set up a tiny routine:
- Keep a note titled “spaces” with one line like
A[ ]B. - When you need the character, copy the space between the brackets.
- Paste it where you need it.
- If a tool behaves oddly, run a replace step to swap it back to a normal space.
This keeps you out of memorized-code mode, and it still works on laptops, tablets, and locked-down work machines.
Final Check Before You Paste
Before you drop the character into a form, a filename, or a dataset, do two quick tests: a wrap test and a copy test. If the target tool is strict, try a throwaway entry first so you see how it stores the character. That tiny check saves a lot of rework later.
Used with intent, an alt code blank space is a neat way to control wrapping and spacing without adding visible marks. When it’s the wrong fit, you now have clean ways to spot it and swap it out.