Digit Two is the Unicode character 2 at codepoint U+0032 in the Basic Latin block of the Basic Multilingual Plane (BMP). Click the character above to copy it to your clipboard — or use one of the
encodings below to embed it in HTML, CSS, JavaScript, Python or plain text.
Technical Reference
| Unicode Codepoint | |
| Decimal | |
| UTF-8 (hex) | |
| UTF-16 (hex) | |
| HEX Entity | |
| HTML Entity | |
| CSS (\xxxx) | |
| JavaScript | |
| Python |
How to Use Digit Two
To use the Digit Two symbol (2) in HTML, insert the
entity 2 directly into your markup. The decimal entity 2 works in any HTML-serialised document.
In CSS pseudo-elements use content: '\32';.
In JavaScript and TypeScript the escape '\u0032' evaluates to 2. In Python source, write '\u0032'.
The character encodes to 32 as UTF-8 bytes and 0032 as UTF-16 code units. Its decimal codepoint is 50.
This is a text-based Unicode character. It will render in the current font on most platforms. If a font lacks this glyph, the browser may show a placeholder or fall back to a system font.