Online HTML Code Space
Get the HTML entity and character codes for non-breaking space and regular space. Copy for HTML, XML, or web content.
Space characters — copy the form you need. prevents line breaks.
- Non-breaking space
- Decimal (nbsp)
  - Hex (nbsp)
  - Regular space (decimal)
 
Frequently Asked Questions
- What is the HTML entity for space?
- (non-breaking space) or   (regular space). prevents line breaks.
- When should I use ?
- Use when you need a space that should not break across lines (e.g. between number and unit).
- What about multiple spaces?
- HTML collapses normal spaces; use multiple or CSS (e.g. white-space) for visible multiple spaces.
Related Developer Tools
JSON Formatter
Format, validate, and beautify JSON. Minify or pretty-print with one click.
Base64 Decode
Decode Base64 strings to text. Encode text to Base64.
UUID Generator
Generate random UUIDs (v4) for unique identifiers. Copy with one click.
URL Encoder Decoder
Encode and decode URLs. Convert special characters for safe use in URLs.
Convert Color Hex to RGB
Convert hex color codes to RGB values (R, G, B).
Convert Color RGB to Hex
Convert RGB values (R, G, B) to hex color codes.