Hyphen on Wikipedia: What the Hyphen Is and How It Differs From Dashes
An overview of the hyphen as covered in general references such as Wikipedia: the related Unicode characters, how hyphen and dash conversions behave, and when plain hyphen-minus is safer.
Many people searching for the Wikipedia entry on the hyphen want a quick answer: what the mark is, how it differs from the dashes that look similar, and whether swapping one for another in a document or tool is safe. This review covers those points from the angle of text transformation: what changes when hyphens are converted, substituted or hidden, and when the plain keyboard character is the better choice.
Evidence note: no specific source material about the current Wikipedia page was supplied for this review, so this article does not quote or summarize that page's wording, structure or edit history. The character details below come from the Unicode standard's published character names and code points, which can be checked in any Unicode character reference.
What a hyphen is, and how it differs from dashes
A hyphen joins words or parts of words, as in compound modifiers like well-known, or splits a word across a line break. Dashes do different jobs. The en dash usually marks ranges, such as pages 10–20. The em dash usually sets off a break in thought. The minus sign belongs in mathematics. These marks look alike in many fonts, but they are separate characters with separate meanings, and software treats them as different characters.
The key key on a standard keyboard does not type a true hyphen. It types the hyphen-minus, a legacy character inherited from ASCII that does both jobs. Unicode later added dedicated characters so text can say exactly which mark it means.
The characters involved
| Character name | Code point | Typical role |
| Hyphen-minus | U+002D | Keyboard default; used as hyphen, minus and in code, file names and command options |
| Hyphen | U+2010 | Unambiguous typographic hyphen |
| Non-breaking hyphen | U+2011 | Hyphen that should not allow a line break at that point |
| Soft hyphen | U+00AD | Invisible break opportunity; shown only if a line breaks there |
| Figure dash | U+2012 | Dash matching the width of digits, for example in phone-number layouts |
| En dash | U+2013 | Ranges and some compound relationships |
| Em dash | U+2014 | Parenthetical breaks in a sentence |
| Minus sign | U+2212 | Mathematical subtraction and negative values |
Is converting hyphens and dashes suitable for your use?
For polished prose such as articles, books and typeset reports, converting hyphen-minus to the right dash or hyphen can improve precision and match common style conventions. The main benefit is clarity: a range written with an en dash and a minus sign in an equation each carry their intended meaning.
The deciding tradeoff is that conversion changes the stored characters, not just their appearance. Anything that later processes the text by exact character, such as search, code, data imports, URLs or command lines, may no longer match or work.
Keep plain hyphen-minus in these cases:
- Source code, configuration files and shell commands
- File names, identifiers, product codes and anything typed into a form field
- Text that others will search, filter or compare by exact match
- Content headed for a destination whose font or encoding support you have not checked
- Spreadsheet or data values where a minus sign must be read as a number
What the transformation actually changes
There are two separate things that tools labeled as hyphen or dash converters may do, and it helps to know which one you are using.
Character substitution replaces one stored code point with another, for example U+002D with U+2013. The text is now different data. Copying it, saving it or sending it carries the new character along. Smart punctuation features in word processors and some publishing systems do this automatically as you type, so the substitution may happen without a deliberate step.
Visual hyphenation leaves the stored text mostly unchanged and alters only how lines break on screen or on the page. The CSS hyphens property is an example: with a value of auto, a browser may insert hyphens at line ends based on the declared language, but those hyphens are not part of the text. The soft hyphen sits between these two: it is a real stored character, but it is normally invisible unless a line break falls at its position.
Terms like mirror, reverse or font are not relevant to hyphens in the usual sense. A so-called hyphen font or dash style is still a character choice or a typeface choice, and the two should not be confused: changing the typeface changes how a dash looks, while substitution changes which character it is.
A practical example: commands and code
The clearest failure case is a command copied from formatted text. If a publishing tool has turned a double hyphen-minus into an en or em dash, the command-line program will not recognize it as an option flag.
Works (two hyphen-minus characters, U+002D U+002D):
git log --oneline
Likely fails (en dash, U+2013, substituted by smart punctuation):
git log –oneline
The two lines can look nearly identical in some fonts, which is why this error is easy to miss. Marking commands as code, so the publishing system leaves them unchanged, is the usual safeguard.
Readability and usability after copying or sharing
Copy and paste generally preserves the exact character, so whatever substitution was made travels with the text. Whether it still reads well at the destination depends on that destination, and the points below are general risks rather than tested results for any specific app or site.
- Font coverage: less common characters such as the non-breaking hyphen or figure dash may be missing from some fonts and can appear as a fallback glyph or a blank box.
- Search and find: a search for a word containing hyphen-minus may not match the same word written with U+2010 or a soft hyphen, depending on how the search tool normalizes characters.
- Editing: soft hyphens are invisible, so they can be hard to find and remove, and they may survive into places where they cause unexpected breaks or mismatches.
- Assistive technology: screen readers vary in how they announce dashes and hyphens, and punctuation announcement is often controlled by user settings. No specific screen reader behavior was tested for this review, so check the tools your readers use if it matters.
- Numbers: a minus sign or en dash in front of a figure may not be treated as a negative value by spreadsheets or data tools.
When text has to work in more than one place, such as being both published and pasted into a terminal or database, keep a plain hyphen-minus version as the working copy and apply typographic dashes only in the final, display-only output.
Bottom line
The hyphen and the dashes are distinct characters with distinct roles, and Unicode gives each its own code point. Converting between them is a sound choice for finished prose meant to be read, and a poor one for anything meant to be typed, run, searched or parsed. If you are unsure how a destination handles these characters, test there with the specific text before relying on it, and default to the plain hyphen-minus when exact matching matters.