How to Remove Email Addresses from Text Online

How to Remove Email Addresses from Text Online

Paste your text into an email remover, and every address comes out while the rest of the sentence stays put. “Contact jane@example.com for details” becomes “Contact for details” — the words survive and the address is gone.

An email address is not one shape. It can be plain — jane@example.com — or it can carry a plus tag, like jane+newsletter@example.com. It can sit inside angle brackets, like <jane@example.com>, or behind a display name, like “Jane Smith” <jane@example.com>. A tool that only looks for a simple name@domain pattern will miss some of these, and a tool that is too eager will strip a web address you wanted to keep or eat the full stop at the end of your sentence.

Key takeaways

  • Removing email addresses deletes addresses only. Words, numbers, punctuation, web links and phone numbers stay.
  • Pick the mode first: delete every address, replace each one with a placeholder like [email], or keep only the addresses and drop the rest of the text.
  • Addresses come in more shapes than name@example.com — plus tags, subdomains, angle brackets and display names all count, and a good tool catches all of them.
  • An email address is not a URL. name@example.com has no http in front of it, and a remover that treats it like a link will get the wrong thing.
  • Watch the punctuation. A full stop, comma or closing bracket right after an address is part of your sentence, not part of the email.
  • Removing an address does not remove the spaces around it. Expect double spaces where an address sat between two words.
  • Word, Google Docs and Excel can remove hyperlinks from an address, but that is not the same as removing the address itself.

What counts as an email address?

Before running anything, it helps to know what you are asking the tool to find. The standard that defines how email addresses are written is RFC 5322, and in practice an address in ordinary text shows up in a handful of shapes. At its simplest it is a local part, an @ sign, and a domain: jane@example.com. The domain can hold subdomains: jane@mail.example.co.uk is one address, not three.

Plus-addressing is the shape people miss most. jane+newsletter@example.com and jane+orders@example.com are both the same mailbox with a tag after a plus sign. A matcher that stops at the plus sign will cut the address in half, leaving “+newsletter@example.com” behind in the text.

Then there are the wrapped shapes. An address inside angle brackets — <jane@example.com> — is the standard way email clients show a sender. A display name in front of it — “Jane Smith” <jane@example.com> — is the same address with a person’s name attached.

What is not an email address matters just as much. A web link like https://example.com/page is not an email address, even though it contains a domain. An @mention on social media, like @janesmith, has no domain after it and is not an email address.

Choose the mode before you paste anything

Most email removers offer more than one operation, and they are not interchangeable. The table below is the decision to make first, because the same text gives a different result under each one.

ModeWhat it doesUse it when
Delete all addressesEvery email address is removed and nothing takes its placeCleaning a caption, a product description or a spreadsheet column
Replace with placeholderEach address becomes [email], [EMAIL] or a word you chooseSharing a log, ticket or AI prompt where the reader should know an address was there
Keep only addressesEverything except the addresses is deleted, leaving a list of emailsPulling every address out of a long document to build a contact list
Mask partiallyjane@example.com becomes j***@example.comShowing which mailbox is meant without showing the full address

Delete-all is the default most people want. The placeholder mode earns its place when the sentence depends on the address. Keep-only is an extraction, not a cleanup — pick it when the addresses themselves are what you want.

How to remove email addresses from text online

The whole job takes under a minute with a browser tool, and nothing needs to be uploaded anywhere — the text never leaves your own browser.

First, copy the text that contains the addresses and paste it into the tool’s input box. Choose the mode: delete all, replace with a placeholder, keep only the addresses, or mask them. If the tool has a checkbox for angle brackets or display names, decide now whether the brackets and the name should survive. Some tools also offer a “tidy spaces” option — turn it on, because it collapses the double spaces left behind. Click the remove button, read the result, and copy it out.

Before you paste the result into the place it is going, read it once. The check takes ten seconds and it catches the two most common mistakes: an address the tool missed, usually a plus-tagged address or one inside angle brackets, and a full stop the tool ate.

The angle-bracket and display-name trap

This is the single most common way email removal goes wrong. Consider this line from a forwarded message: “Jane Smith” <jane@example.com> wrote:. The address is inside the angle brackets, and the name sits in front of them. A tool that only matches the bare address will leave you with “Jane Smith” <> wrote: — empty brackets and a name that no longer points at anything.

The right result depends on what you want. If the whole sender line is clutter, the tool should take the name, the brackets and the address together. If the name matters — say the text is “Ask Jane Smith <jane@example.com> for the report” — then keeping “Ask Jane Smith for the report” is the result you want. Most tools do not offer that choice; they either take the address alone or take everything, so check which one yours does before running it on a long export.

The same problem shows up with Markdown mailto links. [email Jane](mailto:jane@example.com) contains two things at once: visible words and a hidden address. Drop the whole thing and you lose the words “email Jane” as well as the address. Keep the label and you get plain readable text: “email Jane”. The exception is a link whose label is itself the address, like [jane@example.com](mailto:jane@example.com), where keeping the label keeps the address you were trying to remove.

Emails are not URLs — do not confuse the two

An email address and a web link look alike at a glance. Both contain a domain, and both can sit in the middle of a sentence. But they are different things, and a tool that confuses them will do the wrong job in both directions.

An email address has an @ sign and no scheme: jane@example.com. A URL has a scheme or a www and no @ sign: https://example.com/page or www.example.com/page. Run a URL remover over text full of email addresses and most of the addresses will survive, because there is no http for it to match. Run an email remover over text full of links and the links will survive, because there is no @ sign for it to match. If your text has both — a copied email thread usually does — you need two passes, one for each. The URL side of the job is covered in the guide to removing URLs from text.

The trailing-punctuation trap

Consider this sentence: “Write to jane@example.com.” The full stop after “com” belongs to the sentence. But to a simple pattern matcher, the address could be “jane@example.com.” — with the dot included — because dots are legal inside email addresses. The same problem shows up with commas and closing brackets: “Contact jane@example.com, then call the office” has a comma that is not part of the address, and “Email (jane@example.com) for help” has a closing bracket that is not part of it.

A careful tool treats sentence punctuation as separate from the address, and stops matching before a trailing full stop, comma or closing bracket. Test a tool on one sentence with an address followed by a full stop. If the stop survives, the tool handles this correctly. If the text also has stray punctuation to clean up, that is a separate job — see the guide to removing special characters from text.

What happens to the spaces

Removing an email address does not remove the spaces around it. “Contact jane@example.com for details” has one space before the address and one after it. Delete the address and both spaces remain: “Contact for details”. Two spaces where there should be one — visible in every cleaned-up paragraph if you do not deal with it.

The fix is a second pass that collapses repeated spaces into one. Most email tools offer this as a “tidy whitespace” or “collapse spaces” option — turn it on and the problem goes away in the same run. If the tool does not offer it, the same cleanup is one step in any text tool: it is the same operation as removing spaces that appear twice in a row.

Removing email addresses in Word, Google Docs and Excel

Word, Google Docs and Excel can all remove hyperlinks from an email address. What they cannot do is remove the address itself from plain text.

In Word, right-clicking a linked address and choosing “Remove Hyperlink” takes away the clickability and the blue underline, but the words stay. Word’s Find and Replace can search for a pattern with wildcards, but it cannot reliably match every shape of email address in one pass.

Google Docs is in the same position. Removing a link takes away the hyperlink; the address stays. Docs has no built-in “remove all email addresses” command, and its Find and Replace has no email pattern. Excel is similar again: right-click and “Remove Hyperlink” leaves the cell’s contents untouched, and there is no built-in way to strip addresses out of cell contents.

Doing it in code: Python and JavaScript

If the same cleanup runs every day — a daily export, a support queue, a feed — doing it by hand stops making sense. Two short patterns cover most cases.

In Python, the standard library’s re module does the work in a few lines:

import re

def remove_emails(text):
    text = re.sub(r'[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}', '', text)
    return re.sub(r' {2,}', ' ', text).strip()

That pattern matches plain addresses, plus-tagged addresses and subdomains. It is a starting point, not a finished product: it will not take the angle brackets or a display name with the address, and it can catch a string that looks like an address but is not one.

In JavaScript, the same idea is just as short:

function removeEmails(text) {
  return text
    .replace(/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g, '')
    .replace(/ {2,}/g, ' ')
    .trim();
}

Both snippets collapse double spaces as part of the same pass. If the job also involves Markdown mailto links, handle those before the general pattern: replace \[([^\]]+)\]\(mailto:[^)]+\) with the captured label first. Order matters — run the general pattern first and the Markdown link is already broken apart.

Why people remove email addresses at all: sharing safely

Most of the time, an email address in a block of text is just clutter. But there is a second reason people run this job: the address belongs to a real person, and the text is about to be shared somewhere that person never agreed to.

Support tickets, chat exports, log files and screenshots all carry addresses, and they get pasted into public forums, shared with vendors, or fed into AI assistants. Once an address is in a public post or a third-party system, it cannot be taken back. Removing it before sharing is the simple version of redaction: the address is gone, the rest of the text still makes sense. The placeholder mode is the honest version of this — [email] tells the reader an address was there without showing it.

Do it carefully rather than quickly. A tool that misses one address in a long log has not done the job, and a tool that uploads the text to a server to clean it has created the very exposure it was meant to prevent. Use a tool that runs in the browser, and check the result by searching it for “@” before you share it. If “@” or “mailto” shows up, something was missed.

When keeping the email addresses is the better call

Not every address in a block of text is clutter. Sometimes the addresses are the point, and removing them makes the text worse rather than cleaner. A contact list is the clearest case: if the document is a list of people to reach, deleting the addresses deletes the document’s purpose.

Instructions are another case. “Email the form to the address below” is useless if the address below is gone. And in a spreadsheet, a column of addresses is data, not decoration. The question to ask before running the tool is simple: if someone reads this text after the addresses are gone, will they still be able to do what the text asks them to do?

Frequently asked questions

What about emails in angle brackets like <name@example.com>?

A good tool removes the address and leaves the brackets behind, so “Jane Smith” <jane@example.com> becomes “Jane Smith” <>. Some tools take the brackets too. Either way, check the result — empty brackets are the most common leftover from this job.

Can I keep the name and remove only the address?

Yes, if the tool handles display names. “Jane Smith” <jane@example.com> should become “Jane Smith” — the name survives, the brackets and the address go.

Does removing an email leave double spaces?

Yes, almost always. The spaces on either side of the address stay behind. Turn on the tool’s “tidy spaces” option, or run a second pass that collapses repeated spaces.

Can Word remove all email addresses at once?

No. Word can remove hyperlinks — the clickability goes, the address stays — but it has no command to delete every email address from a document. For plain text, use a browser tool.

What is the difference between removing and redacting an email address?

Removing deletes the address and leaves nothing in its place. Redacting replaces it with a marker like [email] or [REDACTED], so the reader knows an address was there. Redaction is the right choice when the text is being shared; removal is the right choice when the address is simply clutter.

Closing

Removing email addresses from text stays a small job as long as three things are decided up front: what counts as an email address, which mode you are running, and what happens to the spaces afterwards. Pick delete-all for cleaning, a placeholder when the text is being shared, and keep-only when the addresses are the thing you want. Test the tool on one line with a plain address, a plus-tagged address and an address in angle brackets — and search the result for “@” before you share it.