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 − 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 type Minus Sign symbol − ?

  • You can try inserting Minus Sign symbol using these system tools:
    • Mac Character Viewer (Control + Command + Space)
    • Windows Emoji/Symbol Picker (Win + .)
    • Windows Character Map (charmap.exe)
  • Note: These tools may not include all Unicode symbols
  • Copy and paste the − symbol directly from this website.
  • Use provided codes for Minus Sign symbol where they are supported.

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

HTML Methods:

1. Direct Symbol:
<span>−</span>
2. HTML Decimal Code:
<span>&#8722;</span>
3. Hexadecimal Code:
<span>&#x2212;</span>
Preview:

CSS Method:

.symbol::before {
    content: '\\2212';
}
Preview: Symbol

JavaScript Methods:

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