Skip to content
ASCII World
"

Double quotes (or speech marks)

PrintableASCII 34 | Hex 0x22 | U+0022
Paired quotation marks at ASCII 34 delimit string literals in C, JSON, HTML attributes, and CSV fields. JSON requires double quotes exclusively, rejecting single quotes as invalid syntax. In CSV parsing, a literal double quote inside a quoted field must be escaped by doubling it (""). Unicode added distinct left and right curly quotes (U+201C and U+201D), but ASCII 34 remains the only quote character valid in most programming contexts.

ASCII Code

Decimal
34
Hexadecimal
0x22
Octal
42
Binary
0010 0010
URL Escape
%22

Unicode

Code Point
U+0022
Escape
\u0022
UTF-8 Hex
0x22
UTF-8 Binary
00100010
UTF-16
0x0022
UTF-32
0x00000022

HTML Entities

Numeric
"
Hex
"
Named
"

How to Type

Windows Alt CodeAlt + 34
HTML Entity
"
Unicode InputU+0022

Source Code Representations

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

Frequently Asked Questions

What is ASCII code 34?
ASCII code 34 represents the Double quotes (or speech marks) character. In hexadecimal it is 0x22, in binary 0010 0010, and in octal 42. It is a printable character that appears as """ in text.
How do I type ASCII 34 on a keyboard?
On Windows, hold Alt and type 34 on the numeric keypad. On Mac, you can use the Character Viewer (Edit > Emoji & Symbols). In HTML, use the entity " or ".