Hyphen Notation: What the Symbol Means

What the hyphen means, how it differs from dashes and the minus sign, and when converting hyphens helps or harms copying, search and accessibility.

The hyphen looks like one simple mark, but digital text can contain several different characters that all appear as a short horizontal line. These include the keyboard hyphen-minus, a dedicated hyphen, a non-breaking hyphen, an invisible soft hyphen, the en dash, the em dash and the minus sign. Each has its own meaning and its own Unicode code point. Tools that fix or smarten punctuation replace one of these characters with another. This review explains what each mark signals, what a hyphen or dash transformation actually changes, and when plain text is the safer choice.

What the hyphen signals

In English writing, a hyphen joins things. It links compound modifiers placed before a noun (a well-known author), forms certain compound words (mother-in-law), separates a prefix where needed to avoid confusion (re-sign versus resign), and marks a word split at the end of a line. It also separates digit groups in identifiers such as phone numbers.

Dashes do a different job. The en dash marks ranges and connections (pages 10–20, a New York–London flight). The em dash marks a break or aside within a sentence. The minus sign marks subtraction and negative values. In computing, the single keyboard character called hyphen-minus covers all of these roles at once. It is also used in command-line options, arithmetic, URL slugs and filenames. That overlap is the main reason hyphen transformations can help in one context and cause problems in another.

Telling the look-alike characters apart

Character | Code point and name | Typical use
• | U+002D HYPHEN-MINUS | Keyboard default; compounds, code, commands, URLs, data
‐ | U+2010 HYPHEN | Typographically explicit hyphen in prose
‑ | U+2011 NON-BREAKING HYPHEN | Keeps hyphenated terms or numbers on one line
(invisible) | U+00AD SOFT HYPHEN | Optional break point; shown only if the line breaks there
‒ | U+2012 FIGURE DASH | Digit-width dash between numbers, as in some phone formats
– | U+2013 EN DASH | Ranges and connections
— | U+2014 EM DASH | Breaks and asides in sentences
− | U+2212 MINUS SIGN | Subtraction and negative values

Visual clues help only up to a point. A hyphen is usually shorter than an en dash, an em dash is usually about the width of a capital M, and a minus sign is usually as wide as a plus sign and sits at the same height. These proportions depend on the font, though, and several of these characters can look identical in some typefaces. The reliable way to identify a mark is to check its code point. Useful search terms for a tool that does this are "Unicode character inspector", "show code point" or the official character name, such as "U+2011 non-breaking hyphen". A plain-text editor or developer tool that shows hidden characters is the most direct way to find soft hyphens.

well-known      U+002D HYPHEN-MINUS (standard keyboard)
well‐known      U+2010 HYPHEN
well‑known      U+2011 NON-BREAKING HYPHEN
pages 10–20     U+2013 EN DASH
wait—what?      U+2014 EM DASH
−5              U+2212 MINUS SIGN

Ways to type the alternatives

  • macOS with a US layout: Option+Hyphen types an en dash; Option+Shift+Hyphen types an em dash.
  • Windows: Alt+0150 (en dash) and Alt+0151 (em dash), typed on the numeric keypad with Num Lock on.
  • HTML: named entities include –, —, − and ­. Numeric references such as ‐ (hyphen) and ‑ (non-breaking hyphen) work for the others.
  • Word processors and phone keyboards: many replace typed hyphens with dashes automatically or offer dashes through a long press on the hyphen key. The setting is often labeled smart punctuation or autoformat, but its name and location vary by app and version, so check the app's own autocorrect options.

What a hyphen or dash transformation actually changes

Character substitution changes the stored text. Smart punctuation might turn two typed hyphens into an em dash, or a hyphen between numbers into an en dash. A normalizer does the reverse and converts every dash variant back to hyphen-minus. In both cases the underlying characters change, and every later copy, search and parse sees the new characters.

Soft hyphen insertion also changes stored text, but the result is invisible. U+00AD sits inside a word and appears as a hyphen only if the line breaks at that point. The text looks unchanged, but it no longer matches the original character for character.

Presentation-only hyphenation does not change the text. The CSS hyphens property set to auto lets a browser add hyphens at line breaks. This requires a declared document language and browser support for that language. The visible hyphens come from the layout, not from the source text, so the stored content stays the same.

Reverse and mirror tools barely affect these marks. Hyphens and dashes are horizontally symmetric, so a mirrored glyph looks the same as the original. Reversing a string keeps each hyphen in place relative to its neighbors: well-known becomes nwonk-llew. Reversal does flip the digits around a range, so 10–20 becomes 02–01, which no longer reads as a range. If the hyphenated text contains accented letters built from combining marks, a reversal tool that works code point by code point can separate an accent from its base letter. Tools that reverse by user-perceived character avoid this problem.

"Font" in this context usually means one of two things. It can mean the typeface, which only changes how a hyphen is drawn. Or it can mean a styled-text generator that swaps letters for Unicode look-alikes such as mathematical bold or script characters. Unicode's mathematical alphanumeric ranges cover letters and digits but not hyphens or dashes, so these generators normally leave the punctuation as plain characters.

Will the result stay usable after copying or sharing?

  • Code and commands: an en dash or em dash pasted where hyphen-minus is expected is not treated as an option prefix. A copied flag that has been smartened will typically go unrecognized by the program.
  • Search and find: a plain find-in-page or code search matches exact characters unless the tool normalizes punctuation. A search for a hyphen-minus may miss text that uses U+2010 or U+2011. A word containing a soft hyphen may not match the same word typed normally.
  • Data and spreadsheets: a value written with U+2212 instead of hyphen-minus may be stored as text rather than as a number, depending on the application and its locale settings.
  • Forms, usernames and identifiers: soft hyphens and dash look-alikes can be carried along in a paste and cause mismatches that are hard to spot because the text looks correct.
  • Fonts: some fonts lack glyphs for U+2010, U+2011 or U+2012. The display then falls back to another font or shows an empty box.
  • Presentation-only hyphenation: hyphens added through CSS are not part of the source text, so they generally should not appear in copied text. Copy behavior is browser-specific, so check this in the browsers you care about.
  • Right-to-left and mixed-direction text: dashes and hyphens next to numbers can appear on an unexpected side when the surrounding text runs right to left. Check ranges and negative numbers in the actual destination.

Screen readers can announce these characters differently depending on the product, the language and the punctuation verbosity setting. Depending on that setting, a mark might be read as hyphen, dash or minus, or skipped entirely. Rows of repeated dashes used as decorative dividers may be read aloud character by character. No documentation or test results for specific assistive technologies were available for this review, so test the transformed text with the screen readers your audience uses. Where meaning depends on the symbol, such as a negative value or a range, write it out in words or provide a plain-text equivalent.

Is the transformation suitable for your use?

For published prose read by people, such as articles, books and formatted documents, converting hyphens to the correct dashes and minus signs is a reasonable choice. The main benefit is clarity: readers can tell a compound from a range or an aside. Non-breaking hyphens are worth using selectively to keep terms or numbers from splitting across lines. The decisive tradeoff is that the text is no longer plain ASCII punctuation. Look-alike characters become hidden in it, and anything that parses, searches or matches the text can fail without any visible sign.

Plain hyphen-minus is the better choice when text is meant to be read by software. This includes code, commands, URLs and slugs, filenames, data fields, product codes, form input, and any text pasted into a system you do not control or cannot test. It is also the safer choice when you cannot confirm that the destination font has the needed glyphs. When the same content must serve both readers and machines, keep a normalized plain-text version alongside the typeset one.

  • Decide whether a person or a program is the main reader of the text.
  • Inspect code points in any text that will be pasted into commands, data or forms.
  • Search the result for soft hyphens before reusing it as an identifier or search term.
  • Preview the output in the target font and in any right-to-left context.
  • Test with the screen readers your audience relies on, and spell out meaning-critical symbols in words.

Gaps in this review

This review was not given test results, measurements or documentation for specific apps, browsers, fonts or assistive technologies. Statements about copy behavior, font coverage and screen reader output are general principles, not verified observations of particular products. Confirm them in your own target environment before relying on a transformation.