Skip to content
ASCII World

Space

PrintableASCII 32 | Hex 0x20 | U+0020
Space character (ASCII 32) is the first printable character in the ASCII table and the most frequently occurring character in English text. In programming, debates over spaces versus tabs for indentation have persisted for decades, with Python's PEP 8 explicitly mandating 4 spaces. URL encoding represents spaces as %20 in path segments and as + in form-encoded query strings. In HTML, consecutive whitespace characters collapse into a single space during rendering unless the white-space CSS property is set to pre or pre-wrap.

ASCII Code

Decimal
32
Hexadecimal
0x20
Octal
40
Binary
0010 0000
URL Escape
%20

Unicode

Code Point
U+0020
Escape
\u0020
UTF-8 Hex
0xE2 0x90 0xA0
UTF-8 Binary
111000101001000010100000
UTF-16
0x0020
UTF-32
0x00000020

HTML Entities

Numeric
 
Hex
 

How to Type

Windows Alt CodeAlt + 32
HTML Entity
 
Unicode InputU+0020

Source Code Representations

C / Java
"\u0020"
CSS
\0020
JavaScript
"\u0020"
Perl
\x{0020}
Python 2
u"\u0020"
Python 3
\u0020
Ruby
\u{0020}

Frequently Asked Questions

What is ASCII code 32?
ASCII code 32 represents the Space character. In hexadecimal it is 0x20, in binary 0010 0000, and in octal 40. It is a printable character that appears as " " in text.
How do I type ASCII 32 on a keyboard?
On Windows, hold Alt and type 32 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity   or  .