Minus Sign

Shortcodes

Copy and paste codes for Minus Sign symbol − to use in your websites, apps, blogs, and more.

Unicode
U+2212
HTML Code
−
HEX Code
−
CSS Code
\2212
JS/JSON
\u2212
Unix/C/PHP/JAVA
0x2212
URL-encode
%E2%88%92
copied

Customize Minus Sign Symbol

Customize − symbol as you like and download Minus Sign 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.

                        
                    

How to add Minus Sign symbol in HTML, CSS, and JS?

Insert − Minus Sign using HTML

1. Copy-paste Minus Sign directly:
<span>−</span>
2. HTML Decimal Code:
<span>&#8722;</span>
3. Hexadecimal Code:
<span>&#x2212;</span>
Preview:

Add Minus Sign symbol with CSS

.minus-sign::before {
    content: '\\2212';
}
Preview: Minus Sign

Minus Sign JavaScript Code

1. Direct Symbol:
document.querySelector('.minus-sign').textContent = '−';
2. Unicode Escape for −:
document.querySelector('.minus-sign').textContent = '\u2212';
Preview: