Skip to content
ASCII World
BEL

Bell, Alert

ControlASCII 7 | Hex 0x07 | U+0007
BEL (code 7) triggers an audible alert on the receiving terminal. Writing \a or the literal byte 0x07 to a terminal still produces a beep (or a visual flash if the terminal is configured for visible bell). The X Window System and most modern terminal emulators support BEL, though many users disable the sound. In shell scripts, printf '\a' is a common way to signal task completion. BEL also triggers notification badges in some terminal multiplexers like tmux and screen.

ASCII Code

Decimal
7
Hexadecimal
0x07
Octal
7
Binary
0000 0111

Unicode

Code Point
U+0007
Escape
\u0007
UTF-8 Hex
0xE2 0x90 0x87
UTF-8 Binary
111000101001000010000111
UTF-16
0x0007
UTF-32
0x00000007

HTML Entities

Numeric

Hex


How to Type

HTML Entity

Unicode InputU+0007

Source Code Representations

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

Frequently Asked Questions

What is ASCII code 7?
ASCII code 7 represents the Bell, Alert character. In hexadecimal it is 0x07, in binary 0000 0111, and in octal 7. This is a non-printable control character used for device signaling and data transmission control.
How do I type ASCII 7 on a keyboard?
Control characters are typically entered using Ctrl key combinations. For example, Ctrl+G produces ASCII 7 in most terminal emulators. You can also use the HTML entity  in web pages.