ASCII code for ampersand
38
Ampersand — &
| Decimal | 38 |
| Hexadecimal | 0x26 |
| Octal | 0046 |
| Binary | 00100110 |
| HTML entity | & |
What it is
Ampersand is one of the 95 printable ASCII characters, the set every text encoding in common use still agrees on. UTF-8 encodes it as the single byte 38, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 38 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 ampersand?
The ASCII code for ampersand is 38 in decimal, 0x26 in hexadecimal and 0046 in octal.
What is ampersand in binary?
00100110 — eight bits, though ASCII only defines seven, so the top bit is always zero.
Is ampersand a printable character?
Yes. Ampersand is in the printable range, codes 32 to 126, which is everything ASCII can put on a screen.
Other characters
- ASCII code for apostrophe — 39
- ASCII code for left parenthesis — 40
- ASCII code for right parenthesis — 41
- ASCII code for asterisk — 42
- ASCII code for plus sign — 43
- ASCII code for comma — 44
- ASCII code for hyphen — 45
- ASCII code for period — 46
- ASCII code for forward slash — 47
- ASCII code for the digit 0 — 48
- ASCII code for the digit 1 — 49
- ASCII code for the digit 2 — 50
Every character by name · The ASCII table · Text to binary converter