Toolman

ASCII 7

ASCII 7 is Bell — the control character BEL.

Every representation

CharacterBEL (not printable)
NameBell
Decimal7
Hexadecimal0x07
Octal0007
Binary00000111
HTML entity
Escape sequence\\a
UnicodeU+0007
KeyboardCtrl+G
GroupControl character

What it is for

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.

Where the number comes from

Codes 0 to 31 were reserved for control: instructions to a teleprinter rather than characters to print. Code 7 is Ctrl+G because the Ctrl key was originally wired to clear the top two bits of whatever you typed, mapping the letter G at 71 down to 7.

Frequently asked questions

What is ASCII 7?

Bell (BEL), a control character. In hexadecimal it is 0x07, in octal 0007, and in binary 00000111.

How do I type ASCII 7?

Press Ctrl+G in a terminal. In a string literal you can write it as \\a or \\x07 in most languages.

Is ASCII 7 printable?

No. Codes 0 to 31 and 127 are control characters — they were instructions to a teleprinter rather than marks on paper, and most terminals show nothing for them.

Nearby codes

Full ASCII table · Text to binary converter · Number base converter