Toolman

ASCII code for space

32

Space —

Decimal32
Hexadecimal0x20
Octal0040
Binary00100000
HTML entity 

What it is

Space is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 32, which is why ASCII text is also valid UTF-8.

The full entry

ASCII 32 in full — the code point page, with what sits either side of it and how the character is encoded elsewhere.

Frequently asked questions

What is the ASCII code for space?

The ASCII code for space is 32 in decimal, 0x20 in hexadecimal and 0040 in octal.

What is space in binary?

00100000 — eight bits, though ASCII only defines seven, so the top bit is always zero.

Is space a printable character?

Yes. Space is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.

Other characters

Every character by name · The ASCII table · Text to binary converter