Minus Sign Unicode Code Point
The true minus sign is U+2212, not the keyboard hyphen-minus U+002D. Learn when to substitute it, how to enter it, and where it breaks copying, parsing and search.
The Unicode minus sign is U+2212 MINUS SIGN. It is a different character from the hyphen on a standard keyboard, which is U+002D HYPHEN-MINUS. Both can look like a short horizontal stroke, but software stores, parses and announces them differently. This review covers what swapping one for the other changes and when the swap is worth making.
Short answer: is substituting U+2212 suitable for your use?
Use U+2212 for text that people read as mathematics or typeset numbers, such as published tables, formulas in prose, temperature readings and financial figures in finished documents. Its main benefit is typographic. In fonts that design it to match the plus sign, it sits at the right height and width next to digits, and it signals clearly that the value is negative.
The main tradeoff is machine compatibility. Programming languages, spreadsheets, CSV imports, form validators and command-line tools commonly expect the ASCII hyphen-minus as the negative sign. If text will be copied into a calculator, code, a data pipeline or a search box, plain U+002D is usually the safer choice.
What the substitution actually changes
Replacing a hyphen-minus with U+2212 is a stored character change, not a visual effect. The underlying code point in the file or clipboard is different, so every program that reads the text sees a different character. Changing a font or a CSS style is different: it only alters how the existing hyphen-minus is drawn, and the stored text stays the same.
The two characters have different Unicode properties. U+002D is classified as dash punctuation (general category Pd) and serves as both hyphen and minus for historical ASCII reasons. U+2212 is classified as a math symbol (general category Sm) and sits in the Mathematical Operators block. In the Unicode line-breaking rules, U+2212 is treated as a numeric prefix, so conforming layout engines avoid separating it from the number that follows. A hyphen-minus is a permitted break point in some contexts.
Words like "reverse", "mirror" or "font" do not apply here. The minus sign is not mirrored in right-to-left text, and no reversal is involved. A "minus sign font" usually means one of two things: a font's glyph for U+2212, or a tool that replaces hyphens with U+2212. Only the second changes the stored text.
Identifying the minus sign and its lookalikes
Several code points can pass for a minus at a glance. An inspection tool that shows the code point of each character is the reliable way to tell them apart.
| Code point | Name | Typical use |
| U+2212 | MINUS SIGN | Mathematical subtraction and negative values in typeset text |
| U+002D | HYPHEN-MINUS | Keyboard hyphen; the negative sign most software parses |
| U+2010 | HYPHEN | Unambiguous hyphen in compound words |
| U+2012 | FIGURE DASH | Dash the width of a digit, used inside numbers such as phone numbers |
| U+2013 | EN DASH | Ranges, and sometimes used as a minus substitute |
| U+2014 | EM DASH | Sentence punctuation |
| U+207B | SUPERSCRIPT MINUS | Raised minus in exponents such as 10⁻³ |
| U+208B | SUBSCRIPT MINUS | Lowered minus in subscripts |
| U+FE63 | SMALL HYPHEN-MINUS | Compatibility character for small form variants |
| U+FF0D | FULLWIDTH HYPHEN-MINUS | Full-width forms in East Asian typography |
| U+2796 | HEAVY MINUS SIGN | Dingbat, often shown as an emoji |
The en dash is the most common stand-in for a true minus because it is easier to type on some systems. It is still a separate character with its own meaning, and it carries the same parsing problems as U+2212.
Encodings and ways to enter U+2212
In UTF-8, U+2212 is stored as the three bytes E2 88 92. In UTF-16 it is the single unit 2212. The hyphen-minus takes one byte in UTF-8, which is one reason byte counts and length checks can differ between two strings that look the same.
HTML named entity: −
HTML numeric: − or −
CSS content: content: "\2212";
JavaScript / JSON: "\u2212"
Python: "\u2212" or "\N{MINUS SIGN}"
LaTeX (math mode): $-5$ (the hyphen renders as a minus)
- Microsoft Word on Windows: type 2212, then press Alt+X to convert it.
- macOS: open the Character Viewer and search for "minus". Option+hyphen produces an en dash, not a minus.
- Linux desktops using GTK or IBus input: press Ctrl+Shift+U, type 2212, then press Space or Enter.
- Any platform: copy the character from a code point inspection tool after confirming it reads U+2212.
Will it stay readable and usable after copying or sharing?
Copy and paste keeps U+2212 intact in most modern Unicode-aware applications, because the code point itself is copied. The risk lies in what the destination does with it next. Common problems include:
- Parsing: a number written with U+2212 may be read as text, rejected as invalid, or give an error in software that only recognizes the hyphen-minus as a negative sign. Test the specific spreadsheet, language or form before relying on it.
- Search and find: searching for -5 typed with a keyboard hyphen will not match −5 written with U+2212 unless the search tool normalizes the two. Whether a given search engine or editor does so was not verified for this review.
- Editing and data cleaning: scripts, regular expressions and validators written for ASCII may skip or mangle the character.
- Font coverage: most current system fonts include U+2212, but an older or minimal font may display a fallback glyph or an empty box.
- Legacy encodings: systems limited to ASCII or some single-byte code pages cannot represent U+2212 and may substitute a question mark.
For accessibility, screen readers generally announce characters according to their own pronunciation dictionaries and verbosity settings. U+2212 may be read as "minus", while the hyphen-minus may be read as "dash", "hyphen" or "minus", or skipped, depending on the screen reader and settings. No specific screen reader was tested for this review, so check the assistive technology your audience uses. If spoken meaning matters, phrasing like "negative five" or a math markup format such as MathML is more dependable than relying on either character.
When plain text is preferable
Keep the ASCII hyphen-minus wherever text is meant to be computed or matched rather than just read. That includes source code, configuration files, spreadsheet cells meant for calculation, CSV and JSON data, command-line arguments, URLs and form fields. If a document has to serve both purposes, keep the plain-text version as the source and apply U+2212 only to the typeset output. Some typesetting systems and CSS-driven layouts can do this at display time without changing the stored data.
Evidence gaps
This review relies on the published Unicode character properties and general encoding rules. It includes no hands-on tests of particular applications, search engines or screen readers. Behavior in any named destination should be confirmed by a scoped test before you depend on it.