How to Stop Microsoft Word from Automatically Converting Hyphens to Em Dashes

Microsoft Word includes an automated typography feature that converts double hyphens (--) surrounded by text into longer en dashes (–) or em dashes (—). While useful in formal prose and published manuscripts, this automatic substitution creates major formatting headaches when drafting code snippets, terminal command syntax, technical documentation, or plain-text formulas where exact hyphen characters are strictly required.

Disabling Automatic Dash Replacement in Word on Windows

You can turn off automatic hyphen-to-dash conversions across all future documents in Word for Windows through AutoCorrect Options:

  1. Open Microsoft Word on your Windows computer.
  2. Click on the File menu in the upper-left corner and select Options at the bottom of the navigation bar.
  3. In the Word Options dialogue box, click on Proofing in the left pane.
  4. Click the button labelled AutoCorrect Options… near the top.
  5. In the dialogue box that appears, click on the AutoFormat As You Type tab.
  6. Under the Replace as you type section, locate the checkbox labelled Hyphens (–) with dash (—).
  7. Untick the checkbox for Hyphens (–) with dash (—).
  8. Click OK, then click OK again in the main Options window to save your preferences.

Word will no longer replace consecutive hyphens with typographic dashes as you type.

Disabling Automatic Dash Replacement in Word on macOS

If you use Microsoft Word on a Mac, configure your AutoCorrect settings through Word Preferences:

  1. Open Microsoft Word on your Mac.
  2. Click on Word in the top menu bar (next to the Apple icon) and select Preferences… (or press Cmd + ,).
  3. Under the Authoring and Proofing Tools section, click on AutoCorrect.
  4. Select the AutoFormat As You Type tab.
  5. Under the Automatically as you type heading, untick the box labelled Hyphens (–) with dash (—).
  6. Close the preferences dialogue window.

Quick Workaround: Reverting Individual Converted Dashes

If you prefer keeping automatic dash formatting enabled overall but occasionally need to preserve literal double hyphens in a technical command (e.g., --verbose or --help):

  • Undo Shortcut: Immediately after Word converts your double hyphen into a dash, press Ctrl + Z on Windows or Cmd + Z on Mac. The dash will instantly revert to two individual hyphens while allowing you to keep typing.
  • Backspace Reversion: Pressing Backspace immediately after an automatic correction also undoes the dash replacement on modern builds of Word.

Differentiating Hyphens, En Dashes, and Em Dashes

Understanding the typographic purpose of each horizontal line character ensures accurate document styling:

Character Name Visual Symbol Standard Usage Keyboard Input (When AutoFormat Disabled)
Hyphen – Compound words (e.g., well-known), phone numbers, and code flags. Press the standard hyphen key (-).
En Dash – Spans of numbers, dates, or times (e.g., pages 10–25, 9:00–17:00). Ctrl + Minus on numeric keypad (or Option + Hyphen on Mac).
Em Dash — Parenthetical sentence breaks or dramatic pauses—like this. Ctrl + Alt + Minus on numeric keypad (or Option + Shift + Hyphen on Mac).

Disabling automatic dash replacement gives you total control over punctuation, preventing corrupted command-line parameters and maintaining typographic accuracy throughout technical writing.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.