CharacterCodes.net

The Complete Guide to Dashes

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!
guide to dashes

There are at least seven distinct dash characters in Unicode—and most people use only one of them, the humble hyphen-minus. It’s the default, the easy choice, and often, the wrong one. Whether you’re trying to indicate a range of numbers or a sudden break in thought, using the correct horizontal stroke is a mark of a writer who knows their craft. But with so many variations, which is which? Here’s what they all do, when to use each, and why the “wrong” dash is more than just a typo.

Hyphen-MinusU+002D
HyphenU+2010
En DashU+2013
Em DashU+2014
Horizontal BarU+2015
Figure DashU+2012
Swung DashU+2053

A Brief History of the Dash

Before digital typography, printers had a set of physical metal type pieces for dashes. Each piece had a specific width, purpose, and name drawn from the typeface’s em — the fundamental unit of measurement equal to the point size of the font. An em in a 12pt font is 12 points wide; an en is half that, 6 points.

The problem began with the typewriter. To keep things simple, typewriter designers gave typists a single key: the hyphen-minus (-). It was a compromise character that stood in for hyphens, minus signs, en dashes, em dashes — everything. This habit carried over to early computers, where keyboard real estate was precious.

⚠️
The Hyphen-Minus Problem
The - key on your keyboard is technically called a hyphen-minus (U+002D). It is a multi-purpose compromise character — not a real hyphen, not a real minus sign, and definitely not an em or en dash. Using it for everything is technically incorrect, though widely accepted in informal writing.

Unicode changed the game by assigning dedicated code points to every typographic character that ever existed. Today, you have access to the full arsenal — if you know where to look.


The Hyphen-Minus

Hyphen-Minus
U+002D HTML: - or – CSS: \002D
Width Narrow (about ¼ em) — varies by font
Usage Keyboard default; used in programming, URLs, command-line flags, and informal writing
Example git push origin main --force

The hyphen-minus is the most common character on a keyboard and the most frequently misused dash in existence. It is not a true hyphen, not a minus sign, and it carries no specific semantic meaning beyond “some kind of horizontal stroke.”

Its advantage is ubiquity: it appears on every keyboard on Earth, it works in every programming language, URL, and command-line interface, and no one will complain if you use it in casual writing. Its disadvantage is that it means nothing specific — the reader (and software) must infer meaning from context.

💡
When to use it
Use the hyphen-minus freely in code, filenames, URLs, terminal commands, and informal digital text. When writing prose for publication or professional documents, prefer the semantically correct character instead.

The True Hyphen

Hyphen
U+2010 HTML: ‐ CSS: \2010
Width Narrow — similar to hyphen-minus, but typographically distinct
Usage Joining words and compound modifiers; line-break hyphenation
Examples well‐known fact, mother‐in‐law, twenty‐three

The true hyphen (U+2010) is semantically unambiguous — software knows it is specifically a hyphen and not a minus sign or dash. It looks nearly identical to the hyphen-minus but carries proper meaning.

When to hyphenate

Hyphens connect words that function together as a single modifier before a noun. Once the noun appears, the hyphen usually disappears:

✓ Correct
a well‐known author
a two‐year‐old child
a high‐speed train
✗ No hyphen needed
the author is well known
a child who is two years old
the train travels at high speed
📝
The Non-Breaking Hyphen
Unicode also defines a non-breaking hyphen (U+2011). It looks identical to the true hyphen but tells line-wrapping algorithms “do not break the line here.” Use it for phone numbers, compound names, or any hyphenated word that should never be split across lines.

The En Dash

En Dash
U+2013 HTML: – or – CSS: \2013
Width Exactly one en (½ em) — twice the width of a hyphen
Usage Ranges (dates, pages, times, scores); complex compound adjectives
Examples pp. 12–45, 1939–1945, the London–Edinburgh train, 3–1 score

The en dash is the workhorse of ranges. Its primary job is to mean “to” or “through” when connecting two values, dates, times, or places. It is wider than a hyphen — approximately the width of the letter “n” in the font — and narrower than the em dash.

Ranges: dates, pages, times, scores

Whenever you are expressing a span from one value to another, the en dash is correct. No spaces around it in this usage:

en dash ranges
# Dates
The First World War (1914–1918) changed everything.
# Page numbers
See chapter 3, pp. 87–112.
# Times
Office hours: 9:00–17:00.
# Sports scores
England won 3–1 against France.
# Train / flight routes
The London–Paris Eurostar departs at 08:32.
❌ Using hyphens instead:
1914-1918  (technically wrong, widely accepted)

Complex compound adjectives

When one element of a compound adjective is itself a multi-word phrase or a proper noun, use an en dash instead of a hyphen. The en dash signals that the relationship is between larger units:

✓ En dash (complex compound)
a post–World War II economy
a New York–based company
a Nobel Prize–winning scientist
✗ Hyphen (too weak here)
a post-World War II economy
a New York-based company
a Nobel Prize-winning scientist
ℹ️
Spaces around en dashes
For ranges (dates, pages, scores), write the en dash with no spaces: 1939–1945. Some style guides (particularly British) allow spaced en dashes as a substitute for the em dash in parenthetical statements, but Chicago and most American guides prefer the unspaced em dash for that purpose.

The Em Dash

Em Dash
U+2014 HTML: — or — CSS: \2014
Width Exactly one em — the full width of the font’s point size
Usage Parenthetical asides, abrupt breaks, emphasis, attribution
Examples She left—without a word. The result—surprising to all—was remarkable.

The em dash is the most dramatic punctuation mark in English prose. It is twice as wide as an en dash, and it carries real expressive weight — a pause, a pivot, an interruption. Used well, it creates tension and rhythm. Used poorly, it becomes a verbal tic — appearing everywhere — making the text feel breathless — and hard to read.

Four main uses

1. Parenthetical aside — a stronger, more emphatic alternative to parentheses or commas:

The report — all 400 pages of it — landed on her desk at midnight.

2. Abrupt break or interruption — the sentence stops suddenly:

He was about to reveal the answer — but then the lights went out.

3. Amplification or explanation — a colon’s dramatic cousin:

There was only one thing she wanted — the truth.

4. Interrupted speech in fiction:

“I just wanted to say—”
“Save it,” he said.
⚠️
Don’t overuse it
The em dash works through contrast and surprise. When every other sentence contains one, the effect evaporates. As a rough rule: aim for no more than one or two em dashes per paragraph. If you find yourself using three or four, rewrite some as commas, parentheses, or separate sentences.

Spaces: American vs British style

American style (Chicago, AP, MLA)
No spaces around the em dash—like this—in American publishing.
British style (spaced en dash)
British publishing often uses a spaced en dash – like this – instead of the em dash.
💡
Two hyphens as a fallback
In plain-text environments (email, legacy systems), -- (two consecutive hyphen-minuses) is a widely understood stand-in for the em dash. Word processors typically auto-correct -- to as you type.

The Figure Dash

Figure Dash
U+2012 HTML: ‒ CSS: \2012
Width Same width as a digit (0–9) in tabular-figure fonts
Usage Phone numbers, catalog numbers, any dash that sits alongside figures in a table
Example +1‒800‒555‒0199

The figure dash is a niche character with a very specific purpose: it is the same width as a numeral in fonts that use tabular (fixed-width) figures. This means columns of numbers align perfectly, even when some cells contain a dash where a number might otherwise appear.

It is also the typographically correct choice for phone numbers. A hyphen-minus in a phone number will subtly mis-align digits in a table; a figure dash will not.

📝
When it matters
For most body text, the difference between a figure dash and a hyphen-minus in a phone number is invisible. The figure dash becomes important in financial tables, data-heavy publications, and anywhere precise numeric alignment is critical. In CSS, you can also achieve this with font-variant-numeric: tabular-nums.

The Horizontal Bar

Horizontal Bar
U+2015 HTML: ― CSS: \2015
Width One em — similar to em dash, but positioned differently in some fonts
Usage Dialogue dash (European fiction), quotation attribution, list delimiters
Example ― I am not afraid, said the old man.

The horizontal bar (also called a quotation dash or dialogue dash) is used extensively in French, Greek, Russian, Spanish, and many other languages to introduce direct speech in fiction — where English would use quotation marks.

― Shall we go? she asked.
― It is too late now, he replied.

In some typographic traditions, the horizontal bar is also used to introduce an attribution below a quoted passage — functioning like a visual underscore to the quotation.

ℹ️
Em dash vs horizontal bar
Visually, U+2015 and U+2014 (the em dash) are nearly identical in most fonts. The key difference is semantic: U+2015 is specifically designated for dialogue and quotation attribution, while U+2014 is the all-purpose English em dash. If you are typesetting a translation of a French or Russian novel, U+2015 is the more correct choice.

Other Notable Dash Characters

Unicode contains a handful of additional dash-like characters worth knowing:

Character Name Code Use Frequency
Superscript Minus U+207B Scientific notation, math superscripts Rare
Subscript Minus U+208B Chemical subscripts, math Rare
Minus Sign U+2212 Mathematics — the true minus, not a dash Common
Swung Dash U+2053 Dictionary definitions, “approximately equal to” Specialised
Wave Dash U+301C CJK text, Japanese ranges, decorative Specialised
Non-Breaking Hyphen U+2011 Hyphen that prevents line breaks Common
Two-Em Dash U+2E3A Omitted word or letters in formal texts Rare
Three-Em Dash U+2E3B Repeated author name in bibliographies Rare
💡
The minus sign is not a dash
The minus sign (U+2212) looks like a dash but is mathematically distinct. It is slightly longer than a hyphen-minus and aligned differently. In equations, always use U+2212 rather than a hyphen-minus. Proper math typesetting (LaTeX, MathML) handles this automatically; in web content you may need to insert it explicitly.

How to Type Each Dash

None of the “true” dashes appear directly on standard keyboards. Here’s how to insert each one across different systems:

Dash macOS Windows HTML Word processor
En dash – ⌥ + – Alt + 0150
(numpad)
– Auto: type word-space-word
Em dash — ⌥⇧ + – Alt + 0151
(numpad)
— Auto: type -- then space
True hyphen ‐ Insert special char Alt + 8208
(numpad)
Via character map
Figure dash ‒ Insert special char Alt + 8210
(numpad)
Via character map
Minus sign − Insert special char Alt + 8722
(numpad)
− Via character map
copy-paste reference
Hyphen-Minus U+002D (on your keyboard)
True Hyphen U+2010
Figure Dash U+2012
En Dash U+2013
Em Dash U+2014
Horizontal Bar U+2015
Minus Sign U+2212
📝
Linux / Unicode input
On Linux with GTK applications, press Ctrl + Shift + U, release, then type the hex code point (e.g. 2013), then press Enter. This inserts the character directly. Most terminal emulators and text editors also support Unicode escape sequences.

TL;DR Cheat Sheet

Char Name Code Plain-English Use
Hyphen-Minus U+002D Code, URLs, casual text — the keyboard default
Hyphen U+2010 Joining words: well‐known, mother‐in‐law
Non-Breaking Hyphen U+2011 Hyphen that prevents line breaks
Figure Dash U+2012 Phone/catalog numbers; width equals a digit
En Dash U+2013 Ranges: 1939–1945, pp. 12–45, 3–1
Em Dash U+2014 Parenthetical breaks, emphasis, abrupt pauses
Horizontal Bar U+2015 Dialogue in non-English fiction; quotation attribution
Minus Sign U+2212 Mathematics — not a dash, but often confused with one
🎯 The one-paragraph summary

The hyphen-minus (-) is what your keyboard gives you — use it freely in code and casual writing. The true hyphen (‐) joins compound words. The en dash (–) expresses ranges and complex compounds. The em dash (—) adds drama, parenthetical force, or interruption to prose. The figure dash (‒) lines up with numerals in tables. The horizontal bar (―) opens dialogue in many non-English traditions. And the minus sign (−) belongs in maths, not prose.

Most readers will never notice the difference — but professional editors, typographers, and anyone whose work will be typeset in print absolutely will.

If this site has been useful, we’d love your support! Consider buying us a coffee to keep things going strong!