textscrubr
Home / Blog / Punctuation

How to Replace Em Dashes With Commas Automatically

Punctuation2 min readUpdated 2026-10-25
To replace em dashes with commas automatically, paste your text into a cleaner set to convert dashes to commas. It swaps every em dash at once, handles the en dash too, and keeps number ranges like 2010-2020 as hyphens. Find-and-replace works for one document but misses en dashes.

Replacing em dashes by hand is tedious and easy to miss. Here is how to do it automatically and correctly.

The fastest way: a cleaner with a dash setting

Paste your text into a tool that lets you choose what an em dash becomes, and pick comma. A good cleaner will:

textscrubr does this: turn on Normalize punctuation, choose the comma option, and review the list of replacements. Commas are only used between words, number ranges become hyphens, and nothing that could change meaning is applied until you approve it.

Find and replace (one document at a time)

If you would rather use your editor:

  1. Copy an em dash character from your text.
  2. Open find-and-replace.
  3. Paste the em dash into the search field.
  4. Replace with , (comma plus a space).

Two things to watch:

Should it always be a comma?

A comma is the most natural replacement when the em dash is setting off a parenthetical aside, which is how chatbots use it most. But check each case:

If you want one consistent rule applied to a whole document fast, the comma is the safest default, and an automatic cleaner applies it everywhere in seconds while leaving your lists and code untouched.

See what is hidden in your text

textscrubr shows every invisible character, removes the ones with no job, and keeps your lists, headings, links and code intact. Em dash cleanup is one optional toggle. Free, and it runs entirely in your browser.

Inspect and clean my text free →

Work inside Claude or ChatGPT? The same engine is available there for a one-time $29.

Frequently asked questions

How do I replace all em dashes at once?

Paste the text into a cleaner set to convert dashes to commas, which swaps every em dash in one pass. In an editor, copy an em dash into find-and-replace and replace it with a comma.

Will replacing em dashes break my number ranges?

With a good cleaner, no. It keeps ranges like 2010-2020 as hyphens. With manual find-and-replace, review ranges by hand so they do not turn into commas.

Does replacing em dashes also fix en dashes?

Only if your tool handles both. Many find-and-replace passes miss the en dash. A dedicated cleaner converts both the em dash and the en dash together.