textscrubr
Home / Blog / Punctuation

How to Replace Em Dashes With Commas Automatically

Punctuation2 min readUpdated 2026-06-23
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 exactly this. Choose the comma option and the whole document is converted at once, with ranges handled correctly.

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.

Scrub this text in one click

textscrubr strips the hidden characters, em dashes, and double spaces, and keeps your lists, headings, and code exactly where you put them. Free, and it runs entirely in your browser.

Clean my text free →

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.