Non-Breaking Space ( )

HTML entity for the non-breaking space. Learn how to use   or   in HTML to prevent line breaks and control text spacing.

Punctuation

 

Non-Breaking Space

All Formats

FormatValue
Character 
HTML Entity 
HTML Code (Decimal) 
UnicodeU+00A0
CSS Content\00A0
CategoryPunctuation

About Non-Breaking Space

The non-breaking space (represented visually as a regular space) is one of the most commonly used HTML entities. It creates a space between words that prevents the browser from breaking the line at that point. It is also used to create multiple consecutive spaces in HTML, since regular spaces are collapsed.

In HTML, insert the non-breaking space using  ,  , or  . The named entity   is arguably the most well-known HTML entity of all time. It serves two primary purposes: preventing line breaks between words that should stay together, and creating visible whitespace that the HTML parser does not collapse.

The non-breaking space is part of the Latin-1 Supplement Unicode block. Common use cases include keeping units with their numbers (100 km, 5 PM), preventing breaks in proper names, and adding spacing in table cells that would otherwise collapse. However, overusing   for layout purposes is considered bad practice; use CSS padding and margin instead.

In CSS, use "\00A0" with the content property for pseudo-element insertion, or use the white-space: nowrap property as a more semantic alternative for preventing line breaks. Screen readers treat the non-breaking space as a regular space.

Usage Examples

<!-- Using named entity -->
<p>This is the Non-Breaking Space: &nbsp;</p>

<!-- Using numeric code -->
<p>This is the Non-Breaking Space: &#160;</p>

<!-- Using the character directly (UTF-8) -->
<p>This is the Non-Breaking Space:  </p>

<!-- In CSS -->
.icon::before {
  content: "\00A0";
}

FAQ

What is the HTML entity for Non-Breaking Space?

The Non-Breaking Space ( ) can be inserted using the named entity &nbsp;, the numeric code &#160;, or by pasting the character directly in a UTF-8 document.

How do I use   in CSS?

In CSS, use the content property with the value "\00A0". For example: content: "\00A0";

What is the Unicode code point for Non-Breaking Space?

The Unicode code point for Non-Breaking Space is U+00A0. This is the universal identifier for this character across all platforms and programming languages.

Try It in the HTML Entity Tool

Use our HTML Entity Encoder & Decoder to encode and decode HTML entities, convert between named, numeric, and hex formats, and explore the full entity reference table.

Open HTML Entity Tool →