U+0034
Digit Four4
Digit Four 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+0034
- Decimal
- 52
- Hex
- 0x0034
- Octal
- 0o64
Unicode identity
| Format | Value | Copy |
|---|---|---|
| Code pointOfficial Unicode notation | U+0034 | |
| Official nameUnicodeData.txt, Unicode 18.0.0 | DIGIT FOUR | |
| DecimalBase 10 | 52 | |
| HexadecimalBase 16 | 0x0034 | |
| OctalBase 8 | 0o64 | |
| BinaryBase 2 | 0000000000110100 | |
| General categoryNumber, decimal digit | Nd | |
| Unicode blockU+0000–U+007F | Basic Latin | |
| Plane | Basic Multilingual Plane (BMP, Plane 0) |
HTML & CSS
| Format | Value | Copy |
|---|---|---|
| HTML entity (decimal) | 4 | |
| HTML entity (hex) | 4 | |
| CSS content escapeUse inside content: "…" | \0034 | |
| URL encodedPercent-encoded UTF-8 | 4 |
Programming languages
| Format | Value | Copy |
|---|---|---|
| JavaScript / TypeScript | \u0034 | |
| JSONUTF-16 surrogate pairs | \u0034 | |
| Python | \u0034 | |
| Java / C# / Kotlin | \u0034 |
Byte encodings
| Format | Value | Copy |
|---|---|---|
| UTF-81 byte | 34 | |
| UTF-16 (BE) | 0034 | |
| UTF-32 (BE) | 00000034 |
How to type Digit Four
Windows
Hold Alt and type +34 with the hex numeric keypad option enabled, or type 34 then press Alt+X in Word and most Office apps.
macOS
Enable the Unicode Hex Input keyboard, hold Option, and type 0034. Or open Character Viewer (Control+Command+Space) and search "Digit Four".
Linux
Press Ctrl+Shift+U, type 34, 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: 4 in HTML, \0034 in CSS, and \u0034 in JavaScript.
Official Unicode reference
- Character name
- DIGIT FOUR
- 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 Four symbol?
Click the Copy button at the top of this page, or select 4 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 Four?
Digit Four is U+0034 (decimal 52, hexadecimal 0x0034, octal 0o64). 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 Four?
The Unicode Standard (version 18.0.0) names this character "DIGIT FOUR". Its General_Category is Nd (Number, decimal digit).
What is the HTML code for Digit Four?
Use 4 or 4. In CSS, use content: "\0034".
How do I type Digit Four in code?
JavaScript: "\u0034". Python: "\u0034". JSON and Java: "\u0034". The UTF-8 byte sequence is 34.
Is Digit Four an emoji?
No. Digit Four 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.