ASCII code for double quote
34
Double quote — "
| Decimal | 34 |
| Hexadecimal | 0x22 |
| Octal | 0042 |
| Binary | 00100010 |
| HTML entity | " |
| String escape | \" |
What it is
Double quote 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 34, which is why ASCII text is also valid UTF-8.
The full entry
ASCII 34 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 double quote?
The ASCII code for double quote is 34 in decimal, 0x22 in hexadecimal and 0042 in octal.
What is double quote in binary?
00100010 — eight bits, though ASCII only defines seven, so the top bit is always zero.
How do I write double quote in a string?
Most languages accept the escape \". Writing the raw character instead works in some contexts and breaks in others, which is what the escape exists to avoid.
Other characters
- ASCII code for hash — 35
- ASCII code for dollar sign — 36
- ASCII code for percent sign — 37
- ASCII code for ampersand — 38
- 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
Every character by name · The ASCII table · Text to binary converter