# Free text cleaner

> Paste messy text from a PDF, an email or a web page, choose what to clean up, and copy the result. Each option shows how many changes it made.

Source: https://correctme.com/tools/text-cleaner/
Updated: 2026-11-26

This free tool is made by CorrectMe, an AI keyboard app for iPhone by Teleprompter LLC. It removes extra spaces, line breaks, smart quotes and invisible characters from pasted text in your browser, and shows how many changes each option made.

## What each option does

The options run in this order, each on the result of the one before. The number next to an option is how many changes it made.

| Option | What it changes | Counted as |
| --- | --- | --- |
| Remove invisible characters | Removes zero-width spaces, zero-width non-joiners, word joiners, byte order marks (BOM), soft hyphens and stray zero-width joiners. Turns no-break spaces (normal, narrow and figure) into ordinary spaces. | One per character |
| Straighten smart quotes | Turns ‘ ’ ‚ ‛ and ′ into ' and “ ” „ ‟ and ″ into ". | One per quote |
| Strip trailing spaces | Removes spaces and tabs at the end of each line. | One per line |
| Remove line breaks | Joins all lines into one paragraph, with a single space where each break was. Off unless you turn it on. | One per break or run of breaks |
| Collapse blank lines | Turns two or more empty lines in a row into one. | One per run |
| Trim and collapse spaces | Removes spaces and tabs at the start and end of lines, turns runs of spaces and tabs inside a line into one space, and removes empty lines at the very start and end. | One per run |

Turn an option off and its count shows "off". Press **Copy cleaned text** to copy the result; Windows line endings (CR LF) become plain line breaks.

## Where messy text comes from

- **PDFs and scanned documents** keep a line break at the end of every printed line and often a soft hyphen where a word was split.
- **Web pages and word processors** use smart quotes and no-break spaces, which some forms, code editors and spreadsheets do not expect.
- **Copied chat messages and social posts** can carry zero-width spaces, sometimes added on purpose to break up links or tag text.
- **Files saved on Windows** can start with an invisible byte order mark that confuses scripts and CSV imports.

## Limits

- Smart quotes are always replaced with English-style straight quotes. Guillemets (« ») are left alone.
- Left-to-right and right-to-left marks are kept, because removing them can scramble mixed-direction text.
- Tabs used for indentation become single spaces and the indentation is removed when Trim and collapse spaces is on. Turn it off for code.

## Private

The text is cleaned by this page in your browser. Nothing is sent to a server or saved.

## On your iPhone

The CorrectMe keyboard has no text cleaner. For text you are writing rather than pasting, its [autocorrect](/features/autocorrect/) fixes typos as you go, in 9 languages, and is free.

## Questions

### Why does text from a PDF have line breaks in the middle of sentences?

PDFs store text line by line, so copying keeps a break at the end of every printed line. Turn on Remove line breaks to join everything into one paragraph.

### Will it break my emoji?

No. Emoji such as families and professions are built with an invisible joiner between emoji, and the cleaner keeps a joiner there. It removes joiners only between ordinary letters.

### Should I remove invisible characters in Persian or Hindi text?

Be careful. The zero-width non-joiner is a real part of spelling in Persian and some Indic scripts. Turn Remove invisible characters off for those texts.

### Is my text sent anywhere?

No. The cleaning happens in your browser and nothing is sent or saved.
