Remove Special Characters

Strip punctuation and symbols from text, keeping only letters, numbers and optionally spaces.

65Characters in
39Letters
6Digits

Everything you type here is processed on your own device. No input is sent to a server, logged, or stored.

What the Remove Special Characters tool does

This remove special characters tool will strip punctuation and symbols from text, keeping only letters, numbers and optionally spaces. Paste your text in, pick the options you need, and copy the result straight back out. It is most often used for preparing text for a field that rejects symbols. A related tool on this site is the duplicate line finder.

How to use it

  1. Paste the text.
  2. Choose what to keep — letters and numbers, letters only, or basic punctuation as well.
  3. Decide whether spaces survive.
  4. Copy the cleaned text.

How it works

The character classes used here are ASCII-only: A-Z, a-z and 0-9. That means accented letters are removed along with the symbols, which is the right behaviour for generating an identifier and the wrong behaviour for cleaning up prose in French or Polish.

If you want to keep accented letters as their base forms rather than lose them, remove the accents first with the accent remover, then strip symbols. Doing it in that order turns "café" into "cafe" rather than "caf".

For slugs and filenames, this is usually a step in a sequence rather than the whole job: lowercase, remove accents, strip symbols, collapse spaces to hyphens. The slug generator does all four.

When to use it

  • Preparing text for a field that rejects symbols.
  • Cleaning up data before import.
  • Generating an identifier from a label.
  • Removing formatting characters from pasted text.

Common mistakes to avoid

  • Running it on accented text, which loses the letters rather than simplifying them.
  • Stripping symbols from text where they carry meaning, like a price or a code.
  • Using it on code, where punctuation is syntax.

Frequently asked questions

Does this remove accented letters?

Yes — the character classes are ASCII only. Remove accents first if you want é to become e rather than disappear.

How do I keep basic punctuation?

Pick the third option, which keeps full stops, commas, question marks, exclamation marks, apostrophes and hyphens.

What counts as a special character?

Anything that is not a letter or a digit, under the mode you pick. That includes punctuation, symbols, currency marks and emoji.

Related tools

See all text & writing tools →