About BEL

Integer ASCII code: 7
Binary code: 0000 0111
Octal code: 7
Hexadecimal code: 07
Group: control
Seq: ^G
C/C++ notation: \a or '\a'

Unicode symbol: , int code: 9223 (html &#9223) hex code: 2407 (html &#x2407)


Initially was used to make a sound of bell on the terminal. Time passed and later it was used in the role of a beep on systems that didn't actually possess a physical bell. The inverse video may also be rapidly turned on and off by it (a visual bell).

A bell code (bell character in some cases) is a device control code initially created to ring a small electromechanical bell on tickers as well as on the other teleprinters and teletypewriters. This was done in order to notify operators at the other end of the line, frequently of a newly received message. Via tickers the bell codes were punched into their tapes. When the bell code is received, printers do not print a character. Bell codes are usually represented by the label "BEL". Since 1870 they were in wide use (the Baudot code was the first one).

Video display terminals (VDTs) have replaced teletypewriters. In order to support backward compatibility, they included speakers or buzzers to realize the same function. The same did the personal computers that were the later followers. Nowadays terminal emulators usually place the warnings to the desktop environment (e.g., the Mac OS X Terminal will make a sound of the system warning). Besides, they frequently offer a function of a visual bell with no sound. It's a short flash on the terminal window.


The character that has a 7 value in ASCII and Unicode is BEL. In caret notation it can be can be related to the control-G or ^G. Unicode has a special character for the visual representation of the bell code, "symbol for bell" (␇) at U+2407.

BEL is also represented in the 5-bit Baudot codes. When in "figures" mode, it has number 11 (0x0B).

Talking about the C programming language (created in 1972), here the bell character can be organized in a string or character constant with \a. ('a' means "alert" or "audible". It was chosen this way \b was already taken for the backspace character.)


input value base type output hash
BEL char MD5 89e74e640b8c46257a29de0616794d5d
BEL char SHA1 5d1be7e9dda1ee8896be5b7e34a85ee16452a7b4
7 dec MD5 8f14e45fceea167a5a36dedd4bea2543
7 dec SHA1 902ba3cda1883801594b6e1b452790cc53948fda
00000111 bin MD5 0cce1b3fbc56acc685344bca4840b85a
00000111 bin SHA1 ebddd481405ebcf4132cb50a235db8ea9825302b
0000 0111 bin MD5 9835bbd3b178d1454573387f817ba8d7
0000 0111 bin SHA1 2117e587406dd97941903cee0d8277a642f3ee4b
7 oct MD5 8f14e45fceea167a5a36dedd4bea2543
7 oct SHA1 902ba3cda1883801594b6e1b452790cc53948fda
07 hex MD5 d72d187df41e10ea7d9fcdc7f5909205
07 hex SHA1 39f193cfd7d0955cc821f3074a82b7d4b89d22bc
0x07 hex MD5 20462e8e656fe3bb216ac0ee6b089124
0x07 hex SHA1 7b524218c065d0fc60c7ae361cb63b947c43484e
Back to ASCII table

 2018 © Dmytro Koshovyi. Ukraine, Mykolayiv.