Text Cleaner

Paste text from ChatGPT, a web page or a PDF and clean it in one step: remove zero-width and invisible characters, collapse extra whitespace, normalize line endings, convert tabs to spaces, strip HTML tags, replace smart quotes and em dashes, remove punctuation and delete empty lines. Everything runs in your browser — your text never leaves your device.

Line endings:
Empty lines:
Invisible character types:

How It Works

1

Paste your text

Paste or type the text you want to clean into the input area.

2

Pick the cleanups

Tick the options you need: invisible characters, whitespace, HTML tags, punctuation, smart quotes and more.

3

Copy the result

The cleaned text appears instantly. Copy it with one click.

Frequently Asked Questions

What are invisible characters?

They are characters such as zero-width spaces, zero-width joiners, soft hyphens and byte order marks that take no visible space but are often left behind in text copied from AI chatbots, websites and documents.

Does it change my formatting?

Only the options you enable. By default it removes invisible characters, normalizes line endings, trims each line and collapses repeated spaces. Smart quotes, HTML and punctuation are left alone until you tick them.

Does punctuation removal work for other languages?

Yes. It keeps letters, digits and combining marks from any script and removes everything else that is not whitespace.

Is my text sent to a server?

No. All processing happens in your browser using JavaScript. Your text never leaves your device.

Related Tools