formersi
U+00A0NS

U+00A0 · Latin-1 Supplement

No-break space: how to type this invisible character

Copy it with one click, or type it with Alt + 0160 on Windows.

  • WindowsAlt+0160 numeric keypad
  • MacCtrl+⌘ Cmd+Space Character Viewer, then search
  • Word00A0thenAlt+X
  • iPhoneNo long-press for it. Copy it here.
  • HTML  or  
Code point
U+00A0
decimal 160
Windows
Alt + 0160
Alt + numpad
Mac
None
use the Character Viewer
Added
Unicode 1.1
Space separator

Every way to type it

Only methods that exist on that system are shown as shortcuts.

Windows Alt code

Alt+0160
Alt+255 (older OEM code)
  1. Turn on Num Lock.
  2. Hold Alt and type the digits on the numeric keypad (not the top row).
  3. Let go of Alt.

Mac Character Viewer

Ctrl+⌘ Cmd+Space

No Option-key shortcut exists on the U.S. layout. In the Character Viewer, search “no-break space” and double-click it.

Microsoft Word Alt + X

00A0thenAlt+X

Type 00A0, then press Alt + X (Word for Windows).

Google Docs menu

Insert › Special characters, then search “no-break space”, or paste it from here.

iPhone and iPad copy

Not on a long-press of the default keyboard. Copy it here, or add a Text Replacement (Settings › General › Keyboard › Text Replacement).

Android symbol pages

Gboard keeps many common symbols on its symbol pages (tap ?123, then =\<). If it is not there, copy it here, or save it in Gboard’s Personal dictionary with a shortcut.

Linux Unicode input

Ctrl+Shift+Uthen00a0thenEnter

GNOME and most GTK apps (IBus).

Chromebook Unicode input

Ctrl+Shift+Uthen00a0thenEnter

Type the code after the underlined u appears.

How no-break space is stored in UTF-8

2 bytes (16 bits) for 1 code point

length and continuation bitsbits of the code point
Computed from U+00A0 with the UTF-8 rules of RFC 3629. Same bytes as text: see “Codes” below.

Codes

For HTML, CSS, JavaScript, JSON, Python and URLs.

HTML entity&nbsp;
UnicodeU+00A0
HTML decimal&#160;
HTML hex&#x00A0;
CSS content\00A0
JavaScript\u00A0
JSON\u00a0
Python\u00a0
UTF-8 bytesC2 A0
UTF-1600A0
URL encoded%C2%A0
Python name\N{NO-BREAK SPACE}

From the Unicode Standard

Names, aliases and notes from the Unicode 13.0 names list.

  • Unicode name NO-BREAK SPACE
  • Category Space separator (Zs)
  • Block Latin-1 Supplement
  • Note commonly abbreviated as NBSP

Related symbols

Look-alikes named in the Unicode notes first, then neighbours in the same block.

SymbolNameCodeAlt code
NNSNarrow no-break spaceU+202F–
WJWord joinerU+2060–
¡Inverted exclamation markU+00A1Alt + 0161
¢Cent signU+00A2Alt + 0162
£Pound signU+00A3Alt + 0163
¤Currency signU+00A4Alt + 0164

Questions

What is the Alt code for No-break space (no-break space)?

Hold Alt and type 0160 on the numeric keypad, then let go of Alt. The older code Alt + 255 also works in most programs.

How do I type no-break space on a Mac?

Character Viewer: press Ctrl + Cmd + Space and search its name, because no Option-key shortcut exists.

What is the HTML code for no-break space?

Use &nbsp; or &#160; (decimal) or &#xA0; (hex).

Sources: Unicode Character Database 13.0 and Unicode emoji 13.0 (Unicode, Inc.); Alt codes computed from code pages 437 and 1252; Mac keys from the Apple U.S. keyboard layout. How this page is made.