What Is the Double Hyphen Called?

The double hyphen (--) is usually called a double dash and most often stands in for an em dash. Learn how it differs from a single hyphen and when converting it is safe.

Two hyphens typed together (--) have no single official name in everyday writing. Most people call them a double hyphen or a double dash. In prose, the pair is almost always a plain-keyboard substitute for the em dash (—). In software, the same two characters can mean something else entirely. Which name and treatment applies depends on where the characters appear and whether they should stay as two hyphens or become a true dash.

The short answer

In writing, a double hyphen is an improvised em dash. The convention comes from typewriters and plain-text environments that lacked a dedicated dash key. Style guides generally prefer the real em dash in finished, typeset text. Unicode also defines a separate character named DOUBLE HYPHEN (U+2E40, ⹀), but that is a specialized symbol. It is not what people mean when they type two hyphens in a sentence.

Single hyphen vs double hyphen

Form | Typical name | Common role in writing
• | Hyphen | Joins compound words (well-known), splits words at line ends, and often stands in for a minus sign or en dash in plain text
-- | Double hyphen or double dash | Stands in for an em dash to mark a break, aside or interruption
— | Em dash | The typeset mark the double hyphen imitates
– | En dash | Ranges and connections (pages 10–20); sometimes produced by editors from spaced hyphens

A single hyphen connects. A double hyphen separates. In "a well-known author," the hyphen binds two words into one modifier. In "the author--who rarely gave interviews--agreed," the double hyphen sets off an interruption, which is exactly the em dash's job.

What a double dash means outside of prose

The same two characters carry fixed technical meanings in several contexts. In those places, they must not be changed into a dash:

  • Command-line tools: long options are written with two hyphens (--help, --version). A bare -- often marks the end of options, so that anything after it is treated as an argument.
  • Programming languages: in C-family languages, -- is the decrement operator.
  • SQL and some other languages: -- begins a line comment.
  • Email and Usenet: a line containing dash, dash, space ("-- ") is a long-standing convention for marking where a signature begins.
rm -- -strange-filename
grep --ignore-case "term" notes.txt
SELECT name FROM users; -- comment

If any of these lines had their hyphens converted to an em dash, they would stop working or change meaning.

What converting a double hyphen actually changes

Turning -- into — is a character substitution, not a visual effect. The stored text changes from two characters (two HYPHEN-MINUS, U+002D) to one (EM DASH, U+2014). This is different from styling or font changes, which alter only how existing characters look. Once the substitution happens, the result is a different string. It searches, sorts, copies and gets read aloud as the new character.

Editors that perform the conversion automatically do not all behave the same way. Depending on spacing and the application, two hyphens may become an em dash, while spaced hyphens may become an en dash instead. Check the output rather than assuming which dash was produced.

Will the result stay readable after copying or sharing?

Converted dashes are standard Unicode characters. Modern Unicode-aware apps, websites and documents generally display them. The practical risks come from context:

  • Code and commands: copying a command from a document that converted -- to — is a common way to end up with a command that fails. Keep code in plain text or code formatting so autocorrect leaves it alone.
  • Search and find: searching for -- will not match a converted —, and the reverse is also true. Search for both forms when working with mixed text.
  • Plain-text or legacy systems: fields restricted to basic ASCII may reject the em dash or show a placeholder. In those destinations, the double hyphen is the safer form.
  • Screen readers: how a screen reader handles — or -- depends on the software and its punctuation verbosity setting. One may announce "dash," pause, or skip the character. No scoped test is supplied here, so do not assume one behavior applies everywhere. If the dash carries meaning, consider rewording with commas, parentheses or a colon.

Where to find the setting or character

To produce a true em dash from two hyphens, look in your editor's autocorrect, AutoFormat or "smart punctuation" settings. Many word processors and operating systems have an option that replaces hyphens with dashes as you type, often paired with smart quotes. Labels and menu locations vary by application and version, so search the settings or help for "smart dashes" or "replace hyphens with dash." To stop unwanted conversions in technical writing, turn the same option off.

For the specialized Unicode characters, use a character map or emoji/symbol picker and search by name. Relevant names include "double hyphen" (U+2E40), "double oblique hyphen" (U+2E17) and "katakana-hiragana double hyphen" (U+30A0). Font support for these varies, so confirm the character displays where you plan to use it.

Should you convert the double hyphen?

For finished prose meant for publication, converting -- to an em dash is usually worthwhile. It matches typographic conventions and reads cleanly. The deciding tradeoff is that the stored text changes. Leave the double hyphen as plain text when it is part of code, commands, comments or email signatures, or when the destination only accepts basic ASCII. Also keep it when you need text that is searchable in a predictable way. When unsure, a consistent double hyphen is better than a mix of both forms.

Evidence note: no tool tests, measurements or destination-specific results were supplied for this article. Behavior in particular apps, fonts and screen readers is described in general terms and should be checked in the environment you actually use.