Hyphens and Dashes with Numbers
How hyphens, en dashes, figure dashes and minus signs differ with numbers, what dash conversion really changes, and when plain hyphens are the safer choice.
Numbers attract several dash-like characters: the ordinary keyboard hyphen, the en dash used for ranges, the figure dash meant for digit groups, and the true minus sign. Punctuation tools that convert one into another can make figures look more polished, but they also change the underlying characters. This review covers what that conversion changes, where it helps, and where a plain hyphen is the safer choice.
Is dash conversion suitable for your numbers?
Converting hyphens to typographic dashes suits finished, human-read text such as articles, reports, printed material and typeset documents. The main benefit is clarity: a range like 10–20 reads as a span, and a minus sign in −5 is easier to tell apart from a hyphen than the short keyboard mark.
The decisive tradeoff is machine usability. Each converted character is a different code point. Software that expects the keyboard hyphen may stop recognizing the value as a number, a range, or a search match.
Keep the plain hyphen-minus when:
- The text will be pasted into code, formulas, command lines, CSV files or data-entry fields.
- The numbers must be calculated, sorted or validated by software you have not tested.
- The value is an identifier, such as a part number, phone number pattern, account reference or ISBN, that others will copy and search for.
- Your house style calls for the hyphen. Some news styles, for example, use a hyphen for ranges rather than an en dash.
- You cannot confirm that the destination font and software handle the substituted characters.
What the transformation actually changes
A hyphen or dash tool replaces stored characters. It does not apply a font, style or visual effect. That distinguishes it from presentation-only changes such as CSS styling, which alter appearance while leaving the text itself unchanged. Words like 'font', 'mirror' or 'reverse' do not apply here. Nothing is flipped, reordered or restyled; one character is swapped for another with a different code point and different meaning.
The characters most often involved with numbers are:
| Character | Code point | Typical use with numbers |
| Hyphen-minus (-) | U+002D | Keyboard default; required by most programming languages and formula syntaxes for subtraction and negative values |
| Hyphen (‐) | U+2010 | An unambiguous hyphen, rarely needed for numbers |
| Non-breaking hyphen (‑) | U+2011 | A hyphen intended to prevent a line break at that point |
| Figure dash (‒) | U+2012 | Separating digit groups, intended to match the width of a digit |
| En dash (–) | U+2013 | Ranges such as pages 10–20 or the years 1990–1995; scores |
| Em dash (—) | U+2014 | Sentence punctuation, not normally used inside numbers |
| Minus sign (−) | U+2212 | Negative values and subtraction in typeset text |
Illustrative before-and-after pairs, each with only the dash character changed:
pages 10-20 -> pages 10–20 (U+002D -> U+2013)
-5 degrees -> −5 degrees (U+002D -> U+2212)
NNN-NNNN -> NNN‒NNNN (U+002D -> U+2012)
A reliable tool has to decide which hyphens to convert. A hyphen between two numbers may mark a range, a subtraction, a date, a code or a phone number. A leading hyphen may be a minus sign or a list marker. Automatic conversion based on pattern matching alone can choose wrongly, so review the output rather than assuming each substitution reflects the intended meaning.
Some conventions to check when reviewing converted ranges:
- Do not pair a dash with 'from' or 'between'. Write 'from 10 to 20' or 'between 10 and 20', not 'from 10–20'.
- Ranges involving negative values are clearer in words: '−10 to −5' rather than '−10–−5'.
- No character substitution is needed when the meaning is already carried by words.
Will the result stay readable and usable after copying or sharing?
Because the change lives in the characters, it travels with copy and paste. That is useful when the text arrives in a word processor or publishing system, and a problem when it arrives somewhere that expects a keyboard hyphen. No destination-specific test results were supplied for this review, so the points below describe general behavior and known risks rather than confirmed results for any particular application.
Calculation and data
Most programming languages expect the hyphen-minus for subtraction and negative numbers. A minus sign or en dash in source code will usually cause an error or be read as an unexpected symbol. Spreadsheets and data imports may treat a value such as −5 written with U+2212 as text rather than a number. Test with your specific application before relying on converted values in any calculated field.
Search and matching
A search for 10-20 typed with a keyboard hyphen may not find 10–20 written with an en dash. Some search systems normalize dash variants and others do not. If readers are likely to search for or paste a number, such as a model number, reference code or date range, the plain hyphen is the more predictable choice.
Assistive technology
Screen readers can announce these characters differently. Depending on the product and its punctuation settings, a mark may be read as 'minus', 'dash', 'hyphen' or skipped. A true minus sign is semantically clearer for negative values, but no scoped testing with specific screen readers was available for this review. Check the announcements in the assistive technology your audience uses. Where a skipped dash would change the meaning, writing ranges in words, such as '10 to 20', is the most robust option.
Line breaks and display
Line-breaking rules differ between these characters and between renderers. A range or negative number can be split across lines in some layouts, separating the sign from its digits. The non-breaking hyphen is designed to prevent a break, but it is still a hyphen rather than a minus sign or dash. Fonts also vary. Some do not include the figure dash or minus sign, or draw them in a way that is hard to tell apart from a hyphen, which removes the visual benefit.
In right-to-left text, these characters have different bidirectional properties. A range written with an en dash may therefore display in a different order than one written with a hyphen-minus. Anyone preparing Arabic or Hebrew content with numeric ranges should check the rendered result directly.
When a plain-text equivalent is needed
If the same numbers serve both readers and software, keep two versions. Use typographic dashes and minus signs in the display copy, and keep the hyphen-minus in data files, code samples, form values and anything users are told to type. Where that is impractical, write ranges in words and use the keyboard hyphen for negative values. This gives up some typographic precision but avoids ambiguity.
Evidence gaps
This review draws on the Unicode character definitions and general typographic conventions. It does not include tested results for specific tools, spreadsheets, search engines, fonts or screen readers. It also does not cover how any dash conversion tool handles your data or what it retains. Treat compatibility statements as risks to verify in your own environment, not as confirmed outcomes.