SPACE vs NO-BREAK SPACE

SPACE
U+0020
View details →
 
NO-BREAK SPACE
U+00A0
View details →
VS

Property Comparison

Property U+0020   U+00A0
Name SPACE NO-BREAK SPACE
Block Basic Latin Latin-1 Supplement
Script Zyyy Zyyy
Category Space Separator (Zs) Space Separator (Zs)
Bidirectional WS CS

Encoding Comparison

Format U+0020 U+00A0
unicode U+0020 U+00A0
decimal 32 160
htmldecimal    
htmlhex    
css \0020 \00A0
javascript \u{20} \u{A0}
python \u0020 \u00a0
java \u0020 \u00A0
go \u0020 \u00A0
ruby \u{20} \u{A0}
rust \u{20} \u{A0}
ccpp \u0020 \u00a0
urlencoded %20 %C2%A0
utf8bytes 20 c2 a0
utf16bebytes 00 20 00 a0
utf32bebytes 00 00 00 20 00 00 00 a0

How to Distinguish

Both characters use the Zyyy script but are in different blocks: SPACE in Basic Latin and NO-BREAK SPACE in Latin-1 Supplement.

Tip: Paste the character into a hex editor or use charCodeAt() in JavaScript to check the actual codepoint.

Related Comparisons

SPACE details   NO-BREAK SPACE details All Comparisons