Skip to content

Text Cleaner

Fix text copied from PDFs, emails and web pages. Remove extra spaces, collapse or delete line breaks, trim lines, strip HTML tags, turn smart quotes and dashes into plain ASCII, delete invisible characters and remove list numbering, all at once and entirely in your browser.

Runs in your browserFreeNo sign-up

Processed on your device. Files and text stay in your browser and are not uploaded to our servers. How privacy works

How to use the text cleaner

  1. Paste the messy text on the left. The cleaned version updates on the right immediately.
  2. Switch the cleaning steps on or off: extra spaces, line breaks, trimming, HTML tags, smart punctuation, non-printable characters, numbering and bullets.
  3. Check the before/after character, word and line counts to see what changed.
  4. Copy the clean text or download it as a .txt file.

Features

  • Collapse runs of spaces and tabs into a single space
  • Keep line breaks, collapse blank lines, or join everything into one paragraph
  • Strip HTML tags and decode entities like & and  
  • Convert curly quotes, en/em dashes, ellipses and non-breaking spaces to ASCII
  • Remove zero-width characters, control characters and byte-order marks
  • Remove 1. 2. a) - • numbering and bullets from list lines
  • Before and after statistics for characters, words and lines

Where messy text comes from

PDF viewers insert a line break at the end of every visual line, so pasted paragraphs arrive chopped into short pieces. Word processors replace straight quotes with curly ones and double hyphens with dashes, which breaks code, CSV files and search queries. Web pages carry HTML tags, non-breaking spaces and invisible zero-width characters that survive copy and paste and cause mysterious mismatches later.

Choose “Remove all” line breaks to rebuild paragraphs from PDF text, “Collapse blank lines” to tidy double-spaced documents, and “Plain quotes and dashes” before pasting into code or a terminal.

What counts as non-printable

Control characters (except tab and line break), the C1 control range, zero-width spaces and joiners, word joiners, soft hyphens and the byte-order mark. These are invisible but can break string comparisons, URLs and passwords.

Frequently asked questions

Will it remove the line breaks between paragraphs?

Only if you choose “Remove all”. The default keeps every line break, and “Collapse blank lines” reduces several empty lines to one while keeping paragraph boundaries.

Does stripping HTML keep the visible text?

Yes. Tags are removed, block elements such as paragraphs and list items become line breaks, script and style blocks are dropped entirely, and entities such as & are decoded to their characters.

Why would I convert smart quotes to plain ones?

Curly quotes and long dashes are fine in prose but break source code, JSON, shell commands, CSV imports and many search fields. Converting them to straight quotes and hyphens makes the text safe to paste anywhere.

Is anything uploaded?

No. Cleaning runs in your browser and the text never leaves your device.

Other tools people use alongside Text Cleaner.

You might also like

Something useful from another corner of VoltKit.