{"id":3127,"date":"2025-05-28T10:18:58","date_gmt":"2025-05-28T10:18:58","guid":{"rendered":"https:\/\/www.mailercloud.com\/blog\/?p=3127"},"modified":"2026-10-08T04:47:44","modified_gmt":"2026-10-08T04:47:44","slug":"nbsp-non-breaking-space-html","status":"publish","type":"post","link":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html","title":{"rendered":"What Is NBSP? Non-Breaking Space Meaning, Code Examples and Copy-Paste Table (2026)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Last updated: October 2026. Every NBSP code example was tested in Chrome 141, Node.js 22, Python 3.13 and PHP 8.3.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&amp;nbsp;<\/strong> (NBSP) is the HTML code for a <strong>non-breaking space<\/strong>: a space that looks like a normal space but stops the browser from breaking the line at that point. It&#8217;s also the reason you sometimes see &#8220;&amp;nbsp;&#8221; printed as text in an email or web page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide gives you the copy-paste character and its code for HTML, CSS, JavaScript, React, Python, PHP, Excel and your keyboard. It also covers the bugs it causes and how to fix them. We tested every code example below, and noted where languages behave differently.<\/p>\n\n\n\n<div style=\"background:#f0f4ff;border-left:4px solid #2B5CE6;padding:14px 20px;border-radius:0 6px 6px 0;margin:22px 0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\"><p style=\"margin:0;font-size:15px;color:#2d3748;line-height:1.65;\"><strong>Quick Answer:<\/strong> <strong>NBSP (&amp;nbsp;)<\/strong> means <strong>non-breaking space<\/strong>, the Unicode character <strong>U+00A0<\/strong>. It looks like a normal space, but the browser never breaks a line at it and never collapses several of them into one. Write it as <code>&amp;nbsp;<\/code> or <code>&amp;#160;<\/code> in HTML, <code>\\u00A0<\/code> in JavaScript, <code>\\xa0<\/code> in Python and <code>\\00a0<\/code> in CSS. On a keyboard, press Option + Space on a Mac or Alt + 0160 on Windows.<\/p><\/div>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#What_does_NBSP_mean\" >What does NBSP (&amp;nbsp;) mean?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#Copy_and_paste_NBSP_and_other_space_characters\" >Copy and paste NBSP and other space characters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#NBSP_vs_regular_space\" >NBSP vs regular space<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#When_to_use_NBSP_and_when_not_to\" >When to use NBSP (and when not to)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#How_to_type_or_insert_NBSP_code_for_every_language\" >How to type or insert NBSP (code for every language)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#Why_does_NBSP_show_up_as_text\" >Why does NBSP (&amp;nbsp;) show up as text?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#NBSP_in_HTML_emails\" >NBSP in HTML emails<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#Summary\" >Summary<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\/#FAQ_Non-Breaking_Space\" >FAQ: Non-Breaking Space (&amp;nbsp;)<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_does_NBSP_mean\"><\/span>What does NBSP (&amp;nbsp;) mean?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>NBSP, written &amp;nbsp; in HTML, stands for &#8220;non-breaking space.&#8221;<\/strong> It&#8217;s an HTML character entity that inserts the Unicode character <strong>U+00A0 (NO-BREAK SPACE)<\/strong>. Two things make it different from the space bar:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It never breaks.<\/strong> The words on either side of it always stay on the same line.<\/li>\n\n\n\n<li><strong>It never collapses.<\/strong> Browsers squash several normal spaces into one, but they keep every &amp;nbsp; you write.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So <code>10&amp;nbsp;km<\/code> always shows &#8220;10 km&#8221; on one line, and <code>A&amp;nbsp;&amp;nbsp;&amp;nbsp;B<\/code> really shows three spaces.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can write the same character four ways in HTML (all listed in the <a href=\"https:\/\/html.spec.whatwg.org\/multipage\/named-characters.html\" target=\"_blank\" rel=\"noopener\">HTML standard&#8217;s named character references<\/a>). All four produce exactly the same U+00A0 character:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&amp;nbsp;               &lt;!-- named entity (most common) --&gt;\n&amp;#160;               &lt;!-- decimal code --&gt;\n&amp;#xA0;               &lt;!-- hexadecimal code --&gt;\n&amp;NonBreakingSpace;   &lt;!-- long HTML5 name --&gt;\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Copy_and_paste_NBSP_and_other_space_characters\"><\/span>Copy and paste NBSP and other space characters<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Click <strong>Copy<\/strong> to put the real character on your clipboard, ready to paste into a CMS, a design tool, a spreadsheet or a subject line. The table also covers the other Unicode spaces people often mix up with &amp;nbsp;.<\/p>\n\n\n\n<div style=\"max-width:100%;overflow-x:auto;margin:24px 0;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,0.08);\"><table style=\"width:100%;border-collapse:collapse;background:#fff;min-width:900px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\"><thead><tr style=\"background:linear-gradient(135deg,#1e3a5f 0%,#2b6cb0 100%);\"><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">Character<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">Unicode<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">HTML entity<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">Numeric code<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">CSS<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">JavaScript<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">Line break?<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">Use for<\/th><th style=\"padding:12px 12px;text-align:left;font-size:13px;font-weight:600;color:#fff;white-space:nowrap;\">Copy<\/th><\/tr><\/thead><tbody><tr style=\"background:#ebf8ff;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Non-breaking space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+00A0<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;nbsp;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#160;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\00a0<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u00A0<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">No<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Keeps words on one line<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0xA0)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy non-breaking space\">Copy<\/button><\/td><\/tr><tr style=\"background:#fff;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Regular space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+0020<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">\u2014<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#32;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\0020<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">' '<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Yes<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">The normal space bar<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x20)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy regular space\">Copy<\/button><\/td><\/tr><tr style=\"background:#f7fafc;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Narrow no-break space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+202F<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">\u2014<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8239;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\202f<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u202F<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">No<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">French numbers, units<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x202F)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy narrow no-break space\">Copy<\/button><\/td><\/tr><tr style=\"background:#fff;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Figure space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+2007<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;numsp;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8199;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\2007<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u2007<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">No<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Width of one digit<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x2007)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy figure space\">Copy<\/button><\/td><\/tr><tr style=\"background:#f7fafc;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">En space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+2002<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;ensp;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8194;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\2002<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u2002<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Yes<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Half an em wide<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x2002)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy en space\">Copy<\/button><\/td><\/tr><tr style=\"background:#fff;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Em space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+2003<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;emsp;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8195;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\2003<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u2003<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Yes<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">As wide as the font size<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x2003)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy em space\">Copy<\/button><\/td><\/tr><tr style=\"background:#f7fafc;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Thin space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+2009<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;thinsp;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8201;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\2009<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u2009<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Yes<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">About 1\/5 em<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x2009)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy thin space\">Copy<\/button><\/td><\/tr><tr style=\"background:#fff;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Hair space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+200A<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;hairsp;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8202;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\200a<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u200A<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Yes<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Thinnest visible space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x200A)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy hair space\">Copy<\/button><\/td><\/tr><tr style=\"background:#f7fafc;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Zero-width space<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+200B<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;ZeroWidthSpace;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8203;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\200b<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u200B<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Yes<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Invisible, allows a break<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x200B)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy zero-width space\">Copy<\/button><\/td><\/tr><tr style=\"background:#fff;\"><td style=\"padding:10px 12px;font-size:14px;color:#1a202c;font-weight:600;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Word joiner<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">U+2060<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;NoBreak;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">&amp;#8288;<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\2060<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><code style=\"background:#edf2f7;border-radius:4px;padding:2px 6px;font-size:13px;white-space:nowrap;\">\\u2060<\/code><\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">No<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\">Invisible, blocks a break<\/td><td style=\"padding:10px 12px;font-size:14px;color:#2d3748;border-bottom:1px solid #edf2f7;vertical-align:middle;\"><button type=\"button\" onclick=\"var b=this;navigator.clipboard.writeText(String.fromCodePoint(0x2060)).then(function(){b.textContent='Copied \u2713';setTimeout(function(){b.textContent='Copy'},1500)})\" style=\"background:#2B5CE6;color:#fff;border:0;border-radius:6px;padding:7px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;\" aria-label=\"Copy word joiner\">Copy<\/button><\/td><\/tr><\/tbody><\/table><\/div><p style=\"font-size:13px;color:#4a5568;margin:-12px 0 20px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;\">&#8220;Line break?&#8221; means whether the browser may wrap the line at that character. Copy buttons copy the real Unicode character, not the HTML code.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A few notes on the table:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Narrow no-break space (U+202F)<\/strong> has no named HTML entity, so use <code>&amp;#8239;<\/code>. French number formatting uses it: in our test, JavaScript&#8217;s <code>Intl.NumberFormat('fr-FR')<\/code> wrote 1 234 567 with U+202F, not U+00A0.<\/li>\n\n\n\n<li><strong>Zero-width space<\/strong> is invisible. It <em>allows<\/em> a line break where there isn&#8217;t one, which is the opposite of &amp;nbsp;.<\/li>\n\n\n\n<li><strong>Word joiner (U+2060)<\/strong> is the invisible version of &amp;nbsp;. It blocks a break without adding any space.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"NBSP_vs_regular_space\"><\/span>NBSP vs regular space<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We measured both in Chrome 141 to show the difference, rather than describe it:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Test<\/th><th>Regular space<\/th><th>&amp;nbsp;<\/th><\/tr><\/thead><tbody><tr><td>&#8220;Hello World&#8221; in a 60px-wide box<\/td><td>Wrapped onto 2 lines (38px tall)<\/td><td>Stayed on 1 line (19px tall)<\/td><\/tr><tr><td>Three spaces between A and B<\/td><td>Collapsed to one space (25px wide)<\/td><td>Kept all three (34px wide)<\/td><\/tr><tr><td>Unicode code point<\/td><td>U+0020<\/td><td>U+00A0<\/td><\/tr><tr><td>Bytes in UTF-8<\/td><td>1<\/td><td>2 (<code>C2 A0<\/code>)<\/td><\/tr><tr><td>Counted as whitespace by JavaScript <code>\\s<\/code> and <code>trim()<\/code><\/td><td>Yes<\/td><td>Yes<\/td><\/tr><tr><td>Removed by PHP <code>trim()<\/code><\/td><td>Yes<\/td><td><strong>No<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"When_to_use_NBSP_and_when_not_to\"><\/span>When to use NBSP (and when not to)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Use NBSP to keep short, meaningful units together:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Numbers and units: <code>10&amp;nbsp;km<\/code>, <code>25&amp;nbsp;%<\/code>, <code>$&amp;nbsp;49<\/code><\/li>\n\n\n\n<li>Dates and times: <code>October&amp;nbsp;8<\/code>, <code>9:30&amp;nbsp;AM<\/code><\/li>\n\n\n\n<li>Names and titles: <code>Dr.&amp;nbsp;Patel<\/code>, <code>Windows&amp;nbsp;11<\/code><\/li>\n\n\n\n<li>Phone numbers: <code>+1&amp;nbsp;555&amp;nbsp;0100<\/code><\/li>\n\n\n\n<li>The last two words of a headline, so one word never sits alone on the final line<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Don&#8217;t use &amp;nbsp; for layout. Chains like <code>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<\/code> to push text sideways break on mobile screens and are hard to maintain. Use CSS instead:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* Indent or add space with padding or margin *\/\n.price { margin-left: 8px; }\n\n\/* Keep a whole phrase on one line without entities *\/\n.no-wrap { white-space: nowrap; }\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_type_or_insert_NBSP_code_for_every_language\"><\/span>How to type or insert NBSP (code for every language)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">HTML and Markdown<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p&gt;The meeting starts at 9:30&amp;nbsp;AM.&lt;\/p&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Most Markdown renderers, including GitHub&#8217;s, accept <code>&amp;nbsp;<\/code> as written.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CSS<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Inside a CSS <code>content<\/code> value, use the escape <code>\\00a0<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.label::after {\n  content: \"\\00a0\u2192\";   \/* a non-breaking space, then an arrow *\/\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">JavaScript<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In JavaScript strings, write <code>\\u00A0<\/code>. Assigning <code>&amp;nbsp;<\/code> to <code>textContent<\/code> won&#8217;t work, because you&#8217;d get the literal text &#8221;&nbsp;&#8220;.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const label = 'Price:\\u00A0$49';\nel.textContent = label;            \/\/ shows \"Price: $49\" on one line\n\n\/\/ Convert normal spaces to non-breaking ones\nconst unbreakable = 'Windows 11'.replace(\/ \/g, '\\u00A0');\n\n\/\/ Clean them out again (\\s matches U+00A0 in JavaScript)\nconst clean = input.replace(\/\\u00A0\/g, ' ');<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">React (JSX)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">JSX accepts the entity directly in text. Inside a string or expression, use the escape:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p&gt;Total:&amp;nbsp;$49&lt;\/p&gt;\n&lt;p&gt;{'Total:\\u00A0$49'}&lt;\/p&gt;\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Python<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>text = \"Price:\\xa0$49\"\n\ntext.replace(\"\\xa0\", \" \")   # 'Price: $49'\n\nimport unicodedata\nunicodedata.normalize(\"NFKC\", text)   # also turns \\xa0 into a normal space\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Python&#8217;s <code>strip()<\/code>, <code>split()<\/code> and <code>isspace()<\/code> all treat <code>\\xa0<\/code> as whitespace.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PHP<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PHP is the one that catches people out: <strong><code>trim()<\/code> does not remove non-breaking spaces<\/strong> by default. In our PHP 8.3 test, <code>trim(\"\\u{00A0}hi\\u{00A0}\")<\/code> returned the string unchanged.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$text = html_entity_decode('Price:&amp;nbsp;$49');   \/\/ contains \"\\xC2\\xA0\", not a space\n\n\/\/ Replace U+00A0 with a normal space\n$clean = str_replace(\"\\u{00A0}\", ' ', $text);\n\n\/\/ Or trim it explicitly\n$clean = trim($text, \" \\u{00A0}\");\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Excel and Google Sheets<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Data pasted from web pages often hides <code>CHAR(160)<\/code> non-breaking spaces, which break <code>VLOOKUP<\/code> and <code>TRIM<\/code>. To replace them:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>=SUBSTITUTE(A1, CHAR(160), \" \")\n=TRIM(SUBSTITUTE(A1, CHAR(160), \" \"))\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">In Excel for Mac, use <code>UNICHAR(160)<\/code> instead of <code>CHAR(160)<\/code>. It also works in Windows Excel and Google Sheets.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">NBSP keyboard shortcuts<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Where<\/th><th>Shortcut<\/th><\/tr><\/thead><tbody><tr><td>Windows (any app)<\/td><td>Alt + 0160 on the numeric keypad<\/td><\/tr><tr><td>macOS (any app)<\/td><td>Option + Space<\/td><\/tr><tr><td>Microsoft Word (Windows)<\/td><td>Ctrl + Shift + Space<\/td><\/tr><tr><td>Microsoft Word (Mac)<\/td><td>Option + Space<\/td><\/tr><tr><td>Google Docs<\/td><td>Insert \u2192 Special characters \u2192 search &#8220;no-break space&#8221;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_does_NBSP_show_up_as_text\"><\/span>Why does NBSP (&amp;nbsp;) show up as text?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If readers see the literal letters &#8220;&amp;nbsp;&#8221; on a page or in an email, the entity was <strong>encoded twice<\/strong>. Somewhere along the way, <code>&amp;nbsp;<\/code> became <code>&amp;amp;nbsp;<\/code>. The browser decodes it once and prints &#8221;&nbsp;&#8221; as text.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Common causes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A CMS, form or API escaped HTML that was already escaped<\/li>\n\n\n\n<li>Text copied from a code view and pasted into a visual editor<\/li>\n\n\n\n<li>An email&#8217;s plain-text version built from HTML without decoding entities<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How to fix it:<\/strong> find the step that encodes twice and remove it. To clean existing content, search for <code>&amp;amp;nbsp;<\/code> and replace it with <code>&amp;nbsp;<\/code>. In the plain-text part of an email, replace it with a normal space.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why do I see &#8220;\u00c2&#8221; before spaces?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A stray <strong>&#8220;\u00c2&#8221;<\/strong> is the same character with a different bug. A non-breaking space is stored as two bytes in UTF-8 (<code>C2 A0<\/code>). When software reads those bytes as Latin-1 or Windows-1252 instead of UTF-8, the first byte shows up as &#8220;\u00c2&#8221;. We reproduced it in Python: <code>\"a\\xa0b\"<\/code> decoded the wrong way became <code>\"a\u00c2 b\"<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The fix:<\/strong> declare UTF-8 everywhere. That means <code>&lt;meta charset=\"utf-8\"&gt;<\/code> in HTML, <code>Content-Type: text\/html; charset=UTF-8<\/code> in emails, and UTF-8 settings in your database connection and export files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Always include the semicolon<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Browsers accept <code>&amp;nbsp<\/code> without a semicolon in normal text. Inside attributes, it doesn&#8217;t work: in our Chrome test, the link <code>?x=1&amp;nbsp=2<\/code> kept <code>&amp;nbsp<\/code> as literal text, while the same entity in a paragraph turned into a space. Writing <code>&amp;nbsp;<\/code> every time avoids both problems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"NBSP_in_HTML_emails\"><\/span>NBSP in HTML emails<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Email adds a few rules on top of normal web pages. (For layout basics, see our <a href=\"https:\/\/www.mailercloud.com\/blog\/the-ultimate-guide-to-email-design-best-practices-and-examples\">email design best practices<\/a>.)<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>It&#8217;s safe everywhere.<\/strong> Gmail, Outlook, Apple Mail and Yahoo all render &amp;nbsp; correctly, so you can use it for prices, dates and names in email copy.<\/li>\n\n\n\n<li><strong>It adds weight.<\/strong> Each <code>&amp;nbsp;<\/code> is 6 bytes. Gmail clips messages over 102KB behind a &#8220;[Message clipped]&#8221; link, which also hides your footer and unsubscribe link. Hundreds of entities used for spacing add up, so use table padding instead.<\/li>\n\n\n\n<li><strong>Check the plain-text version.<\/strong> If your HTML is converted to plain text automatically, look for leftover &#8220;&amp;nbsp;&#8221; in it before you send.<\/li>\n\n\n\n<li><strong>It&#8217;s part of the preview-text trick.<\/strong> Inbox apps show the first text in an email as the preview. To stop body text from leaking into it, email developers add a hidden block of <code>&amp;zwnj;&amp;nbsp;<\/code> pairs right after the preheader:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;div style=\"display:none; max-height:0; overflow:hidden;\"&gt;\n  Your 20% discount ends tonight\n  &amp;zwnj;&amp;nbsp;&amp;zwnj;&amp;nbsp;&amp;zwnj;&amp;nbsp;&amp;zwnj;&amp;nbsp;&amp;zwnj;&amp;nbsp;\n&lt;\/div&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use as many pairs as you need to fill the preview line. Around 50 to 100 is common.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sending the same template from Outlook? Here&#8217;s <a href=\"https:\/\/www.mailercloud.com\/blog\/how-to-convert-html-to-oft\">how to convert HTML to an Outlook template (OFT)<\/a>. And if a message never arrives at all, the bounce notice explains why: see <a href=\"https:\/\/www.mailercloud.com\/blog\/mailer-daemon\">what a mailer-daemon bounce means and how to fix it<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you code templates yourself, <a href=\"https:\/\/www.mailercloud.com\/features\/custom-html-editor?utm_source=blog&amp;utm_medium=organic&amp;utm_campaign=howto_nbsp\">Mailercloud&#8217;s custom HTML editor<\/a> lets you paste your own code and preview it before sending. Mailercloud&#8217;s library of third-party integrations is smaller than Mailchimp&#8217;s or HubSpot&#8217;s, so check that your tools connect before you switch.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">NBSP (&amp;nbsp;) is HTML&#8217;s non-breaking space (U+00A0). It keeps two words on the same line and is never collapsed. Use it for units, dates, names and short phrases, and use CSS for layout. In code, write <code>\\u00A0<\/code> in JavaScript, <code>\\xa0<\/code> in Python and <code>\\u{00A0}<\/code> in PHP, and remember that PHP&#8217;s <code>trim()<\/code> won&#8217;t remove it. If &#8220;&amp;nbsp;&#8221; or &#8220;\u00c2&#8221; appears on screen, look for double encoding or a missing UTF-8 setting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQ_Non-Breaking_Space\"><\/span>FAQ: Non-Breaking Space (&amp;nbsp;)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1791433963232\"><strong class=\"schema-faq-question\">What does &amp;nbsp; mean?<\/strong> <p class=\"schema-faq-answer\">&amp;nbsp; means &#8220;non-breaking space.&#8221; Mailercloud&#8217;s guide explains that it&#8217;s an HTML entity for the Unicode character U+00A0, which looks like a normal space but keeps the words on either side on the same line. Browsers also never collapse it, so several &amp;nbsp; in a row show as several spaces.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1791433963233\"><strong class=\"schema-faq-question\">How do I type a non-breaking space?<\/strong> <p class=\"schema-faq-answer\">Mailercloud&#8217;s guide lists the quickest ways: press Alt + 0160 on Windows or Option + Space on a Mac. In Microsoft Word on Windows, press Ctrl + Shift + Space. In HTML, type &amp;nbsp; or &amp;#160;. You can also copy the character from the table in this guide.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1791433963234\"><strong class=\"schema-faq-question\">What is the difference between &amp;nbsp; and a regular space?<\/strong> <p class=\"schema-faq-answer\">A regular space (U+0020) lets text wrap and collapses when repeated. In Mailercloud&#8217;s Chrome test, &#8220;Hello World&#8221; wrapped in a narrow box with a regular space but stayed on one line with &amp;nbsp;. Three &amp;nbsp; also stayed three spaces wide, while three regular spaces collapsed into one.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1791433963235\"><strong class=\"schema-faq-question\">Why does &amp;nbsp; appear as text on my page or email?<\/strong> <p class=\"schema-faq-answer\">Mailercloud&#8217;s guide traces this to HTML that was encoded twice, turning &amp;nbsp; into &amp;amp;nbsp;. Find the step that escapes your HTML a second time and remove it, or replace &amp;amp;nbsp; with &amp;nbsp; in the stored content.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1791433963236\"><strong class=\"schema-faq-question\">Is &amp;nbsp; outdated?<\/strong> <p class=\"schema-faq-answer\">No. Mailercloud&#8217;s guide explains that &amp;nbsp; is part of the current HTML standard and works in every modern browser and major email client. It&#8217;s only outdated as a layout tool. For spacing and indents, use CSS margin, padding or white-space: nowrap instead.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1791433963237\"><strong class=\"schema-faq-question\">Why does &#8220;\u00c2&#8221; appear before spaces?<\/strong> <p class=\"schema-faq-answer\">Mailercloud traced this to a character-encoding mismatch. A non-breaking space is two bytes in UTF-8 (C2 A0), and software that reads it as Latin-1 shows the first byte as &#8220;\u00c2&#8221;. Declare UTF-8 in your HTML, email headers and database to fix it.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Last updated: October 2026. Every NBSP code example was tested in Chrome 141, Node.js 22, Python 3.13 and PHP 8.3. &amp;nbsp; (NBSP) is the HTML code for a non-breaking space: a space that looks like a normal space but stops the browser from breaking the line at that point. It&#8217;s also the reason you sometimes [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":3139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email-marketing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>NBSP (Non-Breaking Space): Meaning, Code &amp; Copy-Paste (2026)<\/title>\n<meta name=\"description\" content=\"What does nbsp mean? Copy a non-breaking space and get the code for HTML, CSS, JavaScript, Python and PHP, plus fixes for nbsp showing as text.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NBSP (Non-Breaking Space): Meaning, Code &amp; Copy-Paste (2026)\" \/>\n<meta property=\"og:description\" content=\"What does nbsp mean? Copy a non-breaking space and get the code for HTML, CSS, JavaScript, Python and PHP, plus fixes for nbsp showing as text.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html\" \/>\n<meta property=\"og:site_name\" content=\"Mailercloud Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mailercloud\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/cherikkapoyil.amar\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-28T10:18:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-10-08T04:47:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/05\/Frame-3555.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"760\" \/>\n\t<meta property=\"og:image:height\" content=\"420\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Amar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mailercloud\" \/>\n<meta name=\"twitter:site\" content=\"@mailercloud\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html\"},\"author\":{\"name\":\"Amar\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#\\\/schema\\\/person\\\/0f3151b32a261b5f5df0a7968fa64945\"},\"headline\":\"What Is NBSP? Non-Breaking Space Meaning, Code Examples and Copy-Paste Table (2026)\",\"datePublished\":\"2025-05-28T10:18:58+00:00\",\"dateModified\":\"2026-10-08T04:47:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html\"},\"wordCount\":1739,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Frame-3555.jpg\",\"articleSection\":[\"Email marketing\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html\",\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html\",\"name\":\"NBSP (Non-Breaking Space): Meaning, Code & Copy-Paste (2026)\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Frame-3555.jpg\",\"datePublished\":\"2025-05-28T10:18:58+00:00\",\"dateModified\":\"2026-10-08T04:47:44+00:00\",\"description\":\"What does nbsp mean? Copy a non-breaking space and get the code for HTML, CSS, JavaScript, Python and PHP, plus fixes for nbsp showing as text.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963232\"},{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963233\"},{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963234\"},{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963235\"},{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963236\"},{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963237\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#primaryimage\",\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Frame-3555.jpg\",\"contentUrl\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/05\\\/Frame-3555.jpg\",\"width\":760,\"height\":420,\"caption\":\"What is NBSP?\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What Is NBSP? Non-Breaking Space Meaning, Code Examples and Copy-Paste Table (2026)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/\",\"name\":\"Mailercloud Blog\",\"description\":\"Create And Implement Email Marketing Campaigns\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#organization\",\"name\":\"Mailercloud Blog\",\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/footer_logo.png\",\"contentUrl\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/footer_logo.png\",\"width\":141,\"height\":30,\"caption\":\"Mailercloud Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/mailercloud\",\"https:\\\/\\\/x.com\\\/mailercloud\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/mailercloud\\\/\",\"https:\\\/\\\/www.instagram.com\\\/mailercloud\\\/\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCslSwv-TECN8rLvFM8wRlog\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/#\\\/schema\\\/person\\\/0f3151b32a261b5f5df0a7968fa64945\",\"name\":\"Amar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/1547012193070-150x150.jpeg\",\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/1547012193070-150x150.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/1547012193070-150x150.jpeg\",\"caption\":\"Amar\"},\"description\":\"Amar CP is the Co-Founder and Sales Director at Mailercloud, where he leads partnerships, alliances, and customer growth. With over a decade of experience in application development, database architecture, and scaling web systems, Amar brings a rare blend of engineering depth and go-to-market expertise to email marketing. He writes about email deliverability, marketing automation, and helping small businesses grow smarter with data-driven campaigns.\",\"sameAs\":[\"http:\\\/\\\/www.mailercloud.com\",\"https:\\\/\\\/www.facebook.com\\\/cherikkapoyil.amar\",\"https:\\\/\\\/www.instagram.com\\\/amar.cp\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/amarcp\\\/\"],\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/author\\\/amarmailercloud-com\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963232\",\"position\":1,\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963232\",\"name\":\"What does &nbsp; mean?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"&nbsp; means \\\"non-breaking space.\\\" Mailercloud's guide explains that it's an HTML entity for the Unicode character U+00A0, which looks like a normal space but keeps the words on either side on the same line. Browsers also never collapse it, so several &nbsp; in a row show as several spaces.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963233\",\"position\":2,\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963233\",\"name\":\"How do I type a non-breaking space?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Mailercloud's guide lists the quickest ways: press Alt + 0160 on Windows or Option + Space on a Mac. In Microsoft Word on Windows, press Ctrl + Shift + Space. In HTML, type &nbsp; or &#160;. You can also copy the character from the table in this guide.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963234\",\"position\":3,\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963234\",\"name\":\"What is the difference between &nbsp; and a regular space?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"A regular space (U+0020) lets text wrap and collapses when repeated. In Mailercloud's Chrome test, \\\"Hello World\\\" wrapped in a narrow box with a regular space but stayed on one line with &nbsp;. Three &nbsp; also stayed three spaces wide, while three regular spaces collapsed into one.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963235\",\"position\":4,\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963235\",\"name\":\"Why does &nbsp; appear as text on my page or email?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Mailercloud's guide traces this to HTML that was encoded twice, turning &nbsp; into &amp;nbsp;. Find the step that escapes your HTML a second time and remove it, or replace &amp;nbsp; with &nbsp; in the stored content.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963236\",\"position\":5,\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963236\",\"name\":\"Is &nbsp; outdated?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"No. Mailercloud's guide explains that &nbsp; is part of the current HTML standard and works in every modern browser and major email client. It's only outdated as a layout tool. For spacing and indents, use CSS margin, padding or white-space: nowrap instead.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963237\",\"position\":6,\"url\":\"https:\\\/\\\/www.mailercloud.com\\\/blog\\\/nbsp-non-breaking-space-html#faq-question-1791433963237\",\"name\":\"Why does \\\"\u00c2\\\" appear before spaces?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Mailercloud traced this to a character-encoding mismatch. A non-breaking space is two bytes in UTF-8 (C2 A0), and software that reads it as Latin-1 shows the first byte as \\\"\u00c2\\\". Declare UTF-8 in your HTML, email headers and database to fix it.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NBSP (Non-Breaking Space): Meaning, Code & Copy-Paste (2026)","description":"What does nbsp mean? Copy a non-breaking space and get the code for HTML, CSS, JavaScript, Python and PHP, plus fixes for nbsp showing as text.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html","og_locale":"en_US","og_type":"article","og_title":"NBSP (Non-Breaking Space): Meaning, Code & Copy-Paste (2026)","og_description":"What does nbsp mean? Copy a non-breaking space and get the code for HTML, CSS, JavaScript, Python and PHP, plus fixes for nbsp showing as text.","og_url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html","og_site_name":"Mailercloud Blog","article_publisher":"https:\/\/www.facebook.com\/mailercloud","article_author":"https:\/\/www.facebook.com\/cherikkapoyil.amar","article_published_time":"2025-05-28T10:18:58+00:00","article_modified_time":"2026-10-08T04:47:44+00:00","og_image":[{"width":760,"height":420,"url":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/05\/Frame-3555.jpg","type":"image\/jpeg"}],"author":"Amar","twitter_card":"summary_large_image","twitter_creator":"@mailercloud","twitter_site":"@mailercloud","twitter_misc":{"Written by":"Amar","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#article","isPartOf":{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html"},"author":{"name":"Amar","@id":"https:\/\/www.mailercloud.com\/blog\/#\/schema\/person\/0f3151b32a261b5f5df0a7968fa64945"},"headline":"What Is NBSP? Non-Breaking Space Meaning, Code Examples and Copy-Paste Table (2026)","datePublished":"2025-05-28T10:18:58+00:00","dateModified":"2026-10-08T04:47:44+00:00","mainEntityOfPage":{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html"},"wordCount":1739,"commentCount":0,"publisher":{"@id":"https:\/\/www.mailercloud.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#primaryimage"},"thumbnailUrl":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/05\/Frame-3555.jpg","articleSection":["Email marketing"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html","url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html","name":"NBSP (Non-Breaking Space): Meaning, Code & Copy-Paste (2026)","isPartOf":{"@id":"https:\/\/www.mailercloud.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#primaryimage"},"image":{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#primaryimage"},"thumbnailUrl":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/05\/Frame-3555.jpg","datePublished":"2025-05-28T10:18:58+00:00","dateModified":"2026-10-08T04:47:44+00:00","description":"What does nbsp mean? Copy a non-breaking space and get the code for HTML, CSS, JavaScript, Python and PHP, plus fixes for nbsp showing as text.","breadcrumb":{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#breadcrumb"},"mainEntity":[{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963232"},{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963233"},{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963234"},{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963235"},{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963236"},{"@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963237"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#primaryimage","url":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/05\/Frame-3555.jpg","contentUrl":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/05\/Frame-3555.jpg","width":760,"height":420,"caption":"What is NBSP?"},{"@type":"BreadcrumbList","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.mailercloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"What Is NBSP? Non-Breaking Space Meaning, Code Examples and Copy-Paste Table (2026)"}]},{"@type":"WebSite","@id":"https:\/\/www.mailercloud.com\/blog\/#website","url":"https:\/\/www.mailercloud.com\/blog\/","name":"Mailercloud Blog","description":"Create And Implement Email Marketing Campaigns","publisher":{"@id":"https:\/\/www.mailercloud.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.mailercloud.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.mailercloud.com\/blog\/#organization","name":"Mailercloud Blog","url":"https:\/\/www.mailercloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mailercloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/02\/footer_logo.png","contentUrl":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2025\/02\/footer_logo.png","width":141,"height":30,"caption":"Mailercloud Blog"},"image":{"@id":"https:\/\/www.mailercloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mailercloud","https:\/\/x.com\/mailercloud","https:\/\/www.linkedin.com\/company\/mailercloud\/","https:\/\/www.instagram.com\/mailercloud\/","https:\/\/www.youtube.com\/channel\/UCslSwv-TECN8rLvFM8wRlog"]},{"@type":"Person","@id":"https:\/\/www.mailercloud.com\/blog\/#\/schema\/person\/0f3151b32a261b5f5df0a7968fa64945","name":"Amar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2026\/04\/1547012193070-150x150.jpeg","url":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2026\/04\/1547012193070-150x150.jpeg","contentUrl":"https:\/\/www.mailercloud.com\/blog\/wp-content\/uploads\/2026\/04\/1547012193070-150x150.jpeg","caption":"Amar"},"description":"Amar CP is the Co-Founder and Sales Director at Mailercloud, where he leads partnerships, alliances, and customer growth. With over a decade of experience in application development, database architecture, and scaling web systems, Amar brings a rare blend of engineering depth and go-to-market expertise to email marketing. He writes about email deliverability, marketing automation, and helping small businesses grow smarter with data-driven campaigns.","sameAs":["http:\/\/www.mailercloud.com","https:\/\/www.facebook.com\/cherikkapoyil.amar","https:\/\/www.instagram.com\/amar.cp\/","https:\/\/www.linkedin.com\/in\/amarcp\/"],"url":"https:\/\/www.mailercloud.com\/blog\/author\/amarmailercloud-com"},{"@type":"Question","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963232","position":1,"url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963232","name":"What does &nbsp; mean?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"&nbsp; means \"non-breaking space.\" Mailercloud's guide explains that it's an HTML entity for the Unicode character U+00A0, which looks like a normal space but keeps the words on either side on the same line. Browsers also never collapse it, so several &nbsp; in a row show as several spaces.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963233","position":2,"url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963233","name":"How do I type a non-breaking space?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Mailercloud's guide lists the quickest ways: press Alt + 0160 on Windows or Option + Space on a Mac. In Microsoft Word on Windows, press Ctrl + Shift + Space. In HTML, type &nbsp; or &#160;. You can also copy the character from the table in this guide.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963234","position":3,"url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963234","name":"What is the difference between &nbsp; and a regular space?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"A regular space (U+0020) lets text wrap and collapses when repeated. In Mailercloud's Chrome test, \"Hello World\" wrapped in a narrow box with a regular space but stayed on one line with &nbsp;. Three &nbsp; also stayed three spaces wide, while three regular spaces collapsed into one.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963235","position":4,"url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963235","name":"Why does &nbsp; appear as text on my page or email?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Mailercloud's guide traces this to HTML that was encoded twice, turning &nbsp; into &amp;nbsp;. Find the step that escapes your HTML a second time and remove it, or replace &amp;nbsp; with &nbsp; in the stored content.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963236","position":5,"url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963236","name":"Is &nbsp; outdated?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"No. Mailercloud's guide explains that &nbsp; is part of the current HTML standard and works in every modern browser and major email client. It's only outdated as a layout tool. For spacing and indents, use CSS margin, padding or white-space: nowrap instead.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963237","position":6,"url":"https:\/\/www.mailercloud.com\/blog\/nbsp-non-breaking-space-html#faq-question-1791433963237","name":"Why does \"\u00c2\" appear before spaces?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Mailercloud traced this to a character-encoding mismatch. A non-breaking space is two bytes in UTF-8 (C2 A0), and software that reads it as Latin-1 shows the first byte as \"\u00c2\". Declare UTF-8 in your HTML, email headers and database to fix it.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/posts\/3127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/comments?post=3127"}],"version-history":[{"count":18,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/posts\/3127\/revisions"}],"predecessor-version":[{"id":6220,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/posts\/3127\/revisions\/6220"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/media\/3139"}],"wp:attachment":[{"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/media?parent=3127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/categories?post=3127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mailercloud.com\/blog\/wp-json\/wp\/v2\/tags?post=3127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}