Skip to content

ChatGPT Space Remover

If your text has spaces that behave oddly (search will not match them, lines break in the wrong place, a CSV import collapses), this fixes them.

0 chars

Your text is processed in memory and never stored. See the full list of characters this removes.

Sixteen characters that all look like a space

Unicode has a lot of spaces. Most are for typesetting: thin spaces between numbers, an em space for indentation, a figure space that lines digits up in a table. They render at different widths, and several of them prevent a line break where an ordinary space would allow one.

When one of them lands where an ordinary space was meant to be, nothing looks wrong and several things stop working.

CharacterCodepointWhere it usually comes from
Narrow no-break spaceU+202FAI output, French typography
Non-breaking spaceU+00A0HTML  , word processors, web copy-paste
Em spaceU+2003Typeset documents, PDFs
En spaceU+2002Typeset documents
Thin spaceU+2009Number formatting
Ideographic spaceU+3000CJK text and CJK keyboards
Figure spaceU+2007Aligning digits in tables

What breaks, concretely

These are the symptoms that bring most people here.

  • Ctrl+F does not find a phrase you can plainly see on the page
  • A CSV import puts several columns into one, or splits one into several
  • Python raises IndentationError or a non-printable character error on a line that looks fine
  • A URL slug generated from a title contains a stray dash or an encoded character
  • Two strings that look identical fail an equality check
  • A line refuses to wrap where you expect, leaving a long overflow on mobile

Folded, not deleted

Every exotic space becomes one ordinary space (U+0020) rather than being removed. Deleting them would run words together, which is a worse problem than the one you started with.

FAQ

Frequently asked questions

Why does my text have a narrow no-break space?
Usually because it was generated by a model that produced one, or because it was copied through a web page or word processor that inserted one. In French typography it is also correct before certain punctuation, so it is not always a mistake.
Does this remove ordinary double spaces?
No. It converts non-standard space characters to the ordinary one. It does not reformat your writing or collapse repeated spaces.
Will this fix my Python indentation error?
If the error is caused by a non-breaking or narrow no-break space in the indentation, yes. Paste the file in, and any exotic space in the leading whitespace becomes an ordinary one.

Last reviewed .