copied = false, 2000)"
@keydown.enter="navigator.clipboard.writeText('2'); copied = true; setTimeout(() => copied = false, 2000)"
:class="copied ? 'border-green-400 bg-green-50 dark:bg-green-950' : ''">
2
DIGIT TWO
Overview
2 (DIGIT TWO) is the Unicode character at code point U+0032. It belongs to the Basic Latin block, in the Decimal Number (Nd) general category.
On this page
Encoding Table
| Format | Value | Copy |
|---|---|---|
| Code point | U+0032 |
|
| Decimal | 50 |
|
| HTML decimal | 2 |
|
| HTML hex | 2 |
|
| CSS | \0032 |
|
| JavaScript | \u{32} |
|
| Python | \u0032 |
|
| Java | \u0032 |
|
| Go | \u0032 |
|
| Ruby | \u{32} |
|
| Rust | \u{32} |
|
| C / C++ | \u0032 |
|
| URL-encoded | 2 |
|
| UTF-8 bytes | 32 |
|
| UTF-16BE bytes | 00 32 |
|
| UTF-32BE bytes | 00 00 00 32 |
How to Use
HTML:
2
CSS:
content: "\0032"
JavaScript:
"\u{32}"
Python:
"\u0032"
Properties
- Block
- Basic Latin
- Script
- Common Zyyy
- Category
- Decimal Number (Nd)
- Bidirectional
- EN
- Combining
- 0
- Mirrored
- No
Frequently Asked Questions
How do I type or copy DIGIT TWO?
Copy 2 directly, or use the HTML entity, UTF-8, and code encodings shown on this page.