Toolman

ASCII code for bell

7

Bell — a control character, not printable

Decimal7
Hexadecimal0x07
Octal0007
Binary00000111
HTML entity
String escape\a

What it is

Rang the physical bell on a teletype. Terminals still beep or flash on receiving it, which is why printf "\\a" makes a noise and why a stray byte in a binary file can make your terminal chirp.

The full entry

ASCII 7 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 bell?

The ASCII code for bell is 7 in decimal, 0x07 in hexadecimal and 0007 in octal.

What is bell in binary?

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

How do I write bell in a string?

Most languages accept the escape \a. Writing the raw character instead works in some contexts and breaks in others, which is what the escape exists to avoid.

Other characters

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