Free Text Cleaner

Paste messy text from a PDF, Word or the web and get it back clean, with every fix switchable.

0 words · 0 characters
Ctrl/⌘ + Enter
Your result appears here. Changed words are highlighted green.

Your text is never stored. Core features free forever.

Summary

The AdeptWrite Text Cleaner removes the clutter that comes with copy-and-paste: double spaces, spaces at the end of lines, runs of blank lines, hidden zero-width characters, odd non-breaking spaces and, if you choose, curly quotes. You can also join lines broken by a PDF. Paste your text, switch the options you want and copy the result. It runs in your browser, so your text is never uploaded.

How to use Text Cleaner

  1. Paste your text into the editor.
  2. Leave the default fixes on (extra spaces, blank lines, hidden formatting, trimming) or switch options on and off.
  3. Turn on join broken lines for text copied from a PDF, or straight quotes for code and plain-text files.
  4. Check the before and after character counts, then copy the clean text.

Before & after

BEFORE
The meeting is moved to Friday. Please confirm your “attendance” by noon.
AFTER
The meeting is moved to Friday. Please confirm your “attendance” by noon.

Note: Default options: double spaces collapse to one, four line breaks become one blank line, trailing spaces are trimmed. The curly quotes stay because the quotes option is off by default.

Features & modes

  • Extra spaces and tabs — Runs of spaces or tabs become one space, and spaces left at the start or end of a line are removed.
  • Blank lines under control — Three or more line breaks in a row collapse to a single blank line, so paragraphs stay separate without big gaps.
  • Hidden characters — Zero-width characters, soft hyphens, byte-order marks, control characters and exotic spaces such as the non-breaking space are stripped or turned into normal spaces.
  • Join broken lines — An optional setting joins single line breaks inside a paragraph, which fixes text copied from a PDF. Blank lines between paragraphs are kept.
  • Straight quotes on request — Curly single and double quotes can be converted to straight ones, useful for code, spreadsheets and plain-text systems.
  • Private and instant — The cleaning is done by code in your browser. Nothing is sent to a server, and there is no account or length wall.

Made for

Students
Tidy notes pasted from a lecture PDF or an e-book before they go into an essay, a Google Doc or a reference manager.
Office and admin work
Fix a Word document or email thread that arrives with double spacing and stray line breaks before it goes into a report or CMS.
Web and content editors
Remove invisible characters and no-break spaces that sneak into WordPress or Shopify fields from copied text.
Developers and data work
Convert curly quotes and strip control characters from text before it goes into a CSV, a config file or a script.

What does a text cleaner remove?

Text copied from PDFs, web pages, Word and chat apps often carries formatting residue that you cannot see but that causes real trouble: double spaces that fail a style check, line breaks in the middle of sentences, and invisible characters that break search, sorting and form fields. The Text Cleaner finds these and removes them in one pass.

The options, one by one

OptionWhat it doesDefault
Extra spacesCollapses runs of spaces and tabs to one space and removes spaces at line endsOn
Extra blank linesTurns three or more line breaks into one blank lineOn
Hidden formattingRemoves zero-width characters, soft hyphens, BOM and control characters; turns non-breaking and other special spaces into plain spacesOn
TrimRemoves whitespace at the very start and end of the textOn
Join broken linesJoins single line breaks inside a paragraph into spaces; blank lines are keptOff
Straight quotesConverts curly quotes to straight quotesOff

How to remove line breaks from copied text

PDFs usually break a line at the end of every printed line, not at the end of a paragraph. Switch on join broken lines: single line breaks become spaces, and the blank lines between paragraphs survive. If your whole text then needs one paragraph, remove the blank lines with the Find and Replace tool using a regular expression.

What it does not do

The cleaner changes whitespace and invisible characters only. It does not fix spelling, grammar or wording, and it does not remove bold, italics or links as such, because plain text in the editor has none. For mistakes in the words themselves, run the Spell Checker or the Grammar Checker afterwards. If a hyphen at a line end is a real hyphen, the tool leaves it; only the invisible soft hyphen is removed.

Limits and privacy

All cleaning runs in your browser with a small script, so there is no upload and no fixed length wall; very large pastes are limited only by your device. The Before and After figures count characters, so you can see how much was removed. Always read the result once before you submit it, because joining lines can merge a heading with the paragraph below it.

Frequently asked questions

How do I remove extra spaces from text online?

Paste the text into the Text Cleaner and leave the extra spaces option on. Runs of spaces and tabs become one space, and spaces at line ends are removed. Then copy the result. It happens instantly in your browser and nothing is uploaded.

How do I remove line breaks from text copied from a PDF?

Switch on the join broken lines option. Single line breaks inside a paragraph become spaces, while blank lines between paragraphs are kept. Check the result for headings that may have merged with the next line, then copy it.

Does the Text Cleaner remove hidden characters?

Yes. The hidden formatting option removes zero-width characters, soft hyphens, byte-order marks and control characters, and replaces non-breaking and other special spaces with normal spaces. These are common in text copied from web pages and PDFs.

Will it change my words or fix my grammar?

No. It only touches whitespace, invisible characters and, if you choose, quote shapes. Your words stay exactly as typed. To fix mistakes, use the Spell Checker or Grammar Checker on the cleaned text.

Is my text uploaded or stored?

No. The cleaning script runs in your browser, so your text is never sent to our servers or stored. That makes it safe for drafts, but you should still avoid pasting passwords or confidential records into any web page.

Can it turn curly quotes into straight quotes?

Yes, with the straight quotes option, which is off by default. Curly single and double quotes become straight ones. This helps when text goes into code, a CSV file or a system that rejects typographic quotes.

Try the Text Cleaner for free
Paste text, pick a mode, done. No sign-up.
Clean text