Skip to content
ASCII World
&

Ampersand

PrintableASCII 38 | Hex 0x26 | U+0026
Ampersand (ASCII 38) began as a ligature of the Latin word "et" (meaning "and") and was historically considered the 27th letter of the English alphabet. In HTML, & starts character entity references (&, <, >), and an unescaped ampersand in HTML content is technically invalid. URL query strings use & to separate multiple parameters (key1=val1&key2=val2). In C and C++, && is the logical AND operator and & is both the bitwise AND and the address-of operator.

ASCII Code

Decimal
38
Hexadecimal
0x26
Octal
46
Binary
0010 0110
URL Escape
%26

Unicode

Code Point
U+0026
Escape
\u0026
UTF-8 Hex
0x26
UTF-8 Binary
00100110
UTF-16
0x0026
UTF-32
0x00000026

HTML Entities

Numeric
&#38;
Hex
&#x26;
Named
&amp;

How to Type

Windows Alt CodeAlt + 38
HTML Entity
&#38;
Unicode InputU+0026

Source Code Representations

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

Frequently Asked Questions

What is ASCII code 38?
ASCII code 38 represents the Ampersand character. In hexadecimal it is 0x26, in binary 0010 0110, and in octal 46. It is a printable character that appears as "&" in text.
How do I type ASCII 38 on a keyboard?
On Windows, hold Alt and type 38 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity &#38; or &#x26;.