Text Cleaner

Text copied from PDFs, websites and chat apps often carries broken line breaks, double spaces and invisible characters. Tick the clean-ups you need and the result updates live.

Runs entirely in your browser. Your input and files are not uploaded to any server.

How to use

  1. Paste the text you want to clean.
  2. Choose the clean-up options. The output updates immediately.
  3. Copy the clean text or download it as a file.

Examples

Text copied from a PDF

Enable “Join broken lines” and “Collapse spaces” to turn hard-wrapped lines back into normal paragraphs.

Arabic text for search

Remove tashkeel (diacritics) and tatweel so that “مُحَمَّــد” becomes “محمد”.

When to clean text before you use it

Text copied from a PDF often has a line break at the end of every visual line, text from websites can carry extra spaces, and chat apps may add invisible characters. These problems are easy to miss and can break searches, spreadsheet imports, passwords or code.

Start with the options you actually need, then read the output before you copy it. If a clean-up removes more than you expected, untick it and the result updates immediately.

Privacy

Your files and text stay in your browser while you use this tool, and ads or anonymous visit statistics do not receive them. Only your favorites and recent tools are saved on your device. Privacy policy

Want proof? Check it with your browser’s Network tab: How to check that a tool does not upload your files

Frequently asked questions

What are invisible characters?

Zero-width spaces, joiners, byte-order marks and directional marks. They are invisible but can break searches, passwords and code. The tool removes them while keeping normal Arabic letter joining intact.

Is HTML executed when removing tags?

No. Tags are removed with a parser that never runs scripts or loads images.

Case ConverterConvert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case and more with one click.
Line Counter & Line ToolsCount total, empty and unique lines, then add line numbers, sort alphabetically, reverse or shuffle lines.
Word CounterCount words, characters, sentences and paragraphs as you type, with reading and speaking time estimates.
Character CounterCount characters with and without spaces, letters, digits, emoji-aware graphemes and UTF-8 bytes.
Search tools