Em Dashes: Definition, Usage, and Typing Guide

An em dash shortcut lets you insert the em dash (—) quickly without copying and pasting symbols. Most operating systems and writing tools—including macOS, Windows, Microsoft Word, and Google Docs—offer simple keyboard shortcuts and auto formatting options.

This guide explains what an em dash is and shows the fastest em dash shortcuts you can use across devices to write more clearly and efficiently.

Common Em Dash Shortcuts

The table below shows the most common ways to insert an em dash using keyboard shortcuts and autoformatting across popular platforms and applications.

Platform / App Em Dash Shortcut
Mac Option + Shift + –
Windows Alt + 0151 (numeric keypad)
Microsoft Word Type two hyphens between words
Google Docs Type three hyphens (—)
Em dash shortcut on Mac and Windows keyboards

Em Dash Shortcut: How to Type an Em Dash on Any Device

Em Dash Shortcut on a Mac

On a Mac, press Option + Shift + Dash (-) to type an em dash. To type an en dash, press Option + Dash (-).

Em Dash Shortcut on Windows

On Windows, hold the Alt key and type 0151 on the numeric keypad to create an em dash, or 0150 for an en dash. You can also press Windows + Period (.) to open the symbols panel and insert an em dash from the Symbols section.

How to Type an Em Dash in Microsoft Office

In Microsoft Office applications such as Word and Outlook, typing two hyphens between words (like–this) automatically converts them into an em dash. To create an en dash, type a single hyphen with spaces on both sides, and the application will convert it for you.

What Is an Em Dash?

An em dash is a punctuation mark shown as — that creates a strong break in a sentence. It is used in writing to control sentence structure, guide text flow, and add clear emphasis where a pause or interruption is needed. Because it is highly versatile, the em dash adapts easily to different contexts and tones.

What Punctuation Can an Em Dash Replace?

An em dash can replace other punctuation marks such as commas, colons, and parentheses. Instead of using multiple commas, it creates a more impactful break and adds flexibility when you need to separate clauses. This is especially useful in technology, computing, programming, and communications, where writers often want to simplify complex ideas without losing clarity.

Em Dash vs. En Dash: Differences and When to Use Each

Editors often point out the difference between an em dash and an en dash, especially when accuracy matters.

An em dash (—) is used to separate additional information or mark a strong break in a sentence. For example, a list like notebook, pen, and laptop—items included in the welcome kit—adds extra detail without starting a new sentence.

An en dash (–) is used to mark ranges, such as Monday–Friday, to show a span of time or values. In some style guides, it is also used in compound adjectives like San Francisco–based restaurant, where it clarifies meaning and prevents ambiguity.


When and How to Use an Em Dash

How Do I Correctly Format an Em Dash?

In general writing and technical documentation, an em dash is usually formatted without spaces on either side. This keeps text clean and visually connected. For example:

Variables—like these—can simplify code.

Here, the em dashes tightly connect the inserted phrase to the main sentence, improving readability and clarity.

That said, formatting rules vary by style guide and organization. Always check the relevant guidelines before publishing or sharing technical content.


Inserting Dashes in Various Contexts

Google Docs

Google Docs includes autoformatting features that make inserting dashes easy. Typing three hyphens (—) creates an em dash, while two hyphens (–) create an en dash.

This behavior differs from Microsoft Word and can confuse users. If you customize these shortcuts, you may lose the ability to quickly insert en and em dashes using hyphens.

Microsoft Word

Microsoft Word automatically formats dashes based on context. Typing two hyphens between words converts them into an em dash. A single hyphen with spaces on both sides is converted into an en dash.

If you use a numeric keypad, you can also rely on shortcuts such as Ctrl + Alt + – for an em dash or Ctrl + – for an en dash.


Using Multiple Em Dashes and Lists in a Sentence

You can use multiple em dashes in a single sentence to set off elements, items, or lists—especially when explaining complex ideas. This technique is common in technical writing because it helps clearly separate parts of a sentence while keeping the explanation readable.

However, moderation is essential. Overusing em dashes can clutter text and reduce clarity, so balance matters.


How Em Dashes Affect Readability and Communication

An em dash can enhance readability by breaking up long sentences and emphasizing key phrases. When used correctly, it makes complex information easier to digest and improves overall text flow.

Effective use of em dashes strengthens written communication by highlighting important details and guiding the reader through dense material. Overuse, however, can disrupt rhythm, confuse readers, and weaken an otherwise clear message—even in carefully written documents.



Creating Em Dashes with AutoReplace Software

Windows does not offer a quick, universal shortcut for inserting em dashes, so many writers rely on text expansion or autoreplace tools. While copying and pasting works, text expanders are faster and more efficient for frequent writing.

Tools like PhraseExpress—free for personal use on Windows and Mac—allow you to assign trigger characters, such as two hyphens, to automatically insert em or en dashes in any application. If you primarily write in Google Docs, its built-in autoreplace feature works just as well without requiring system-wide setup.


Using Em Dashes in Technical and Digital Content

Using Em Dashes in Technical Documentation and Technology Blogs

In technical documentation and technology blogs, em dashes are useful for separating clauses and emphasizing critical information. They help highlight warnings, notes, or clarifications so important details stand out clearly.

In blog posts, em dashes also break up dense text and make explanations more engaging, improving readability and reader focus when communicating complex ideas.


Using Em Dashes in Code and Inline Comments

From practical experience, using em dashes in code comments can add clarity and emphasis when standard punctuation feels insufficient. They are especially useful for highlighting notes or warnings when coding standards allow it.

For example:

// Calculates the sum of two numbers—will be optimized in the next release

Used correctly, em dashes improve readability and developer communication without affecting code functionality.


Em Dashes in Programming Code and Variable Names

Em dashes should not be used directly in variable names or identifiers. Most programming languages do not support them as valid syntax, which can cause errors and reduce compatibility.

Instead, em dashes work best in comments and documentation. For naming variables and functions, use underscores or camelCase, which align with established conventions and ensure clean, maintainable code.


Using Em Dashes in UI Text, Error Messages, and Chat Apps

In user interface text, em dashes can add emphasis and separate information in tooltips, notifications, and error messages. They help distinguish the problem from the action required, making messages easier to understand.

For example:

Error—file not found. Please check the file path and try again.

While em dashes are less common in casual chat, they are effective in professional communication tools when clarity and focus are important.


Can an Em Dash Be Used in URLs or Email Addresses?

An em dash should not be used in URLs or email addresses. These formats require specific, universally recognized characters—such as hyphens and underscores—to function correctly.

Using em dashes can break links, cause errors, and reduce compatibility. Following standard formatting ensures links remain readable, reliable, and accessible across systems.ible across systems.