Digit Two

2

Shortcodes

Copy and paste codes for Digit Two symbol 2 to use in your websites, apps, blogs, and more.

Unicode
U+0032
Alt Code
50
HTML Code
2
HEX Code
2
CSS Code
\032
JS/JSON
\u0032
Unix/C/PHP/JAVA
0x32
URL-encode
2
copied

Customize Digit Two Symbol

Customize 2 symbol as you like and download Digit Two as SVG or PNG or copy its HTML code to use in your projects.

Preview helps customize symbol. Downloaded image and HTML code may have size/spacing differences.
2

                        
                    

How to type Digit Two symbol 2 ?

Using Digit Two Alt Code:

You can type the Digit Two symbol 2 using your keyboard by using the Alt Code for Digit Two. Before you begin, ensure that your Num Lock is turned on, and use the Numpad to type the code. Then, follow these simple steps:

  1. Hold down the Alt key on your keyboard.
  2. Type the number 50 using the Numpad.
  3. Release the Alt key.

This will make the 2 appear on your screen.

How to add Digit Two symbol in HTML, CSS, and JS?

Insert 2 Digit Two using HTML

1. Copy-paste Digit Two directly:
<span>2</span>
2. HTML Decimal Code:
<span>&#50;</span>
3. Hexadecimal Code:
<span>&#x0032;</span>
Preview: 2

Add Digit Two symbol with CSS

.digit-two::before {
    content: '\\032';
}
Preview: Digit Two

Digit Two JavaScript Code

1. Direct Symbol:
document.querySelector('.digit-two').textContent = '2';
2. Unicode Escape for 2:
document.querySelector('.digit-two').textContent = '\u0032';
Preview: 2