U+0032

Digit Two2

Digit Two is a monochrome text character from the Unicode Basic Latin block, listed here under Basic Latin (ASCII). Copy it with one click, or use the hex, octal, decimal and HTML entity codes below to embed it in web pages, code, and documents. It is often searched for as "number", "digit", "numeral", "ascii".

Quick facts

Unicode
U+0032
Decimal
50
Hex
0x0032
Octal
0o62

Unicode identity

FormatValueCopy
Code pointOfficial Unicode notationU+0032
Official nameUnicodeData.txt, Unicode 18.0.0DIGIT TWO
DecimalBase 1050
HexadecimalBase 160x0032
OctalBase 80o62
BinaryBase 20000000000110010
General categoryNumber, decimal digitNd
Unicode blockU+0000–U+007FBasic Latin
PlaneBasic Multilingual Plane (BMP, Plane 0)

HTML & CSS

FormatValueCopy
HTML entity (decimal)2
HTML entity (hex)2
CSS content escapeUse inside content: "…"\0032
URL encodedPercent-encoded UTF-82

Programming languages

FormatValueCopy
JavaScript / TypeScript\u0032
JSONUTF-16 surrogate pairs\u0032
Python\u0032
Java / C# / Kotlin\u0032

Byte encodings

FormatValueCopy
UTF-81 byte32
UTF-16 (BE)0032
UTF-32 (BE)00000032

How to type Digit Two

  • Windows

    Hold Alt and type +32 with the hex numeric keypad option enabled, or type 32 then press Alt+X in Word and most Office apps.

  • macOS

    Enable the Unicode Hex Input keyboard, hold Option, and type 0032. Or open Character Viewer (Control+Command+Space) and search "Digit Two".

  • Linux

    Press Ctrl+Shift+U, type 32, then press Space or Enter in GTK apps. IBus and most terminals support the same sequence.

  • HTML, CSS & code

    Paste the character directly, or use the escapes above: 2 in HTML, \0032 in CSS, and \u0032 in JavaScript.

Official Unicode reference

Character name
DIGIT TWO
Block
Basic Latin (U+0000–U+007F)
General category
Nd — Number, decimal digit

Data from the Unicode Character Database, version 18.0.0. See the official code chart for the Basic Latin block: U0000.pdf (PDF, unicode.org).

Frequently asked questions

How do I copy the Digit Two symbol?

Click the Copy button at the top of this page, or select 2 and press Ctrl+C (Cmd+C on Mac). It is plain Unicode text, so it pastes into documents, chats, code, and design tools.

What is the Unicode code point for Digit Two?

Digit Two is U+0032 (decimal 50, hexadecimal 0x0032, octal 0o62). It lives in the Basic Latin block (U+0000–U+007F) of the Basic Multilingual Plane (BMP, Plane 0).

What is the official Unicode name of Digit Two?

The Unicode Standard (version 18.0.0) names this character "DIGIT TWO". Its General_Category is Nd (Number, decimal digit).

What is the HTML code for Digit Two?

Use 2 or 2. In CSS, use content: "\0032".

How do I type Digit Two in code?

JavaScript: "\u0032". Python: "\u0032". JSON and Java: "\u0032". The UTF-8 byte sequence is 32.

Is Digit Two an emoji?

No. Digit Two is a text symbol and renders as a monochrome glyph in the current font. Some platforms may offer an emoji variant when U+FE0F is appended.

View all basic latin (ascii)