ZeroFee Tools

Home › Blog › Copy Paste Cleaner: Fix Messy Pastes Free

Copy paste cleaner tool guide cover illustration

How to Clean Up Messy Copy-Paste Text in One Pass (Free)

Copy-paste is supposed to be simple, but the clipboard carries baggage. Paste from a website and you get HTML tags and   entities. Paste from a PDF and the whitespace falls apart. Paste into a code editor and smart quotes break the syntax. Paste from a document with encoding issues and you get mojibake like "’" where apostrophes should be. Invisible zero-width characters sneak in and corrupt searches. The free copy paste cleaner fixes all six problems in a single pass: it strips HTML, decodes entities, straightens smart quotes, removes invisible characters, repairs mojibake and normalizes whitespace, without touching your actual words.

It is the tool you reach for before pasting into a CMS, a code editor, a form, a ticket or a document where formatting artifacts cause real damage. For spacing-only jobs, the whitespace remover is faster. For hunting invisible characters specifically, the invisible character detector shows you exactly where they hide.

What paste problems does the cleaner fix?

Six common ones: leftover HTML tags from web copy, HTML entities like   from CMS editors, smart quotes and dashes that break code and forms, invisible zero-width characters that corrupt searches, mojibake artifacts like "’" from encoding mismatches, and ragged whitespace from PDFs. Each fix has its own toggle.

The six fixes map to the six ways pastes go wrong. HTML tags and entities: copying from a web page or CMS editor leaves

tags and   sequences in the text; the cleaner strips the tags and decodes the entities into normal characters. Smart quotes and dashes: word processors use curly quotes and em dashes that break code and some forms; the cleaner converts them to straight quotes and plain hyphens. Invisible characters: zero-width spaces and direction-control marks that you cannot see but that corrupt searches and comparisons get removed.

Then the two trickier ones. Mojibake: garbled clusters like "’" caused by reading bytes in the wrong encoding get mapped back to their intended characters. Ragged whitespace: the collapsed spacing and stray line breaks that PDF copies produce get normalized into clean, even spacing. Each fix has its own checkbox, so the tool is really six independent cleaners sharing one button. A developer pasting a code snippet can straighten quotes and strip invisible characters without touching whitespace; a writer pasting from a PDF can normalize whitespace and fix mojibake without touching quotes.

A typical rescue looks like this: you copy a product description from a supplier website and it arrives with span tags,   entities and curly quotes. One run strips the tags, decodes the entities and straightens the quotes, and the description is ready for your store with no manual cleanup.

What is mojibake and how is it repaired?

Mojibake is garbled text caused by reading bytes in the wrong encoding, so an apostrophe can show up as a strange symbol cluster. The tool maps the most common sequences back to their intended characters, like garbled apostrophes to a plain apostrophe and garbled accented letters to their proper forms.

Mojibake is what happens when text is decoded with the wrong character encoding: the bytes are fine, but they are read as if they were written in a different encoding, so one character becomes a cluster of wrong ones. A curly apostrophe becomes "’", an opening quote becomes "“", an accented e becomes "é". It shows up most often when copying between systems, from old documents, or from pages that declare the wrong encoding.

The cleaner maps the most common mojibake sequences back to their intended characters: garbled apostrophes to a plain apostrophe, garbled quotes to straight quotes, garbled dashes to a hyphen, and garbled accented letters to their proper forms. This is a targeted repair, not a full re-encoding: it fixes the stray artifacts that appear in otherwise fine pastes. If your entire document is mojibake, the right fix is to re-open the original file in the correct encoding rather than patching the paste. For encoding-adjacent messes in pasted text, the unicode cleaner handles the broader family of odd characters.

You can usually tell mojibake apart from other problems by its look: clusters of odd characters appearing exactly where punctuation or accented letters should be, while the surrounding words read normally. When the whole document looks wrong instead of just a few spots, re-open the source file in the correct encoding rather than patching the paste.

Will it change my words or rewrite anything?

No. It only touches formatting artifacts: markup, entities, quote styles, invisible characters, encoding glitches and whitespace. Smart quotes become straight quotes and mojibake becomes readable characters, but your words are never rewritten or reworded. Each fix is independent and optional.

No. The tool only touches formatting artifacts: markup, entities, quote styles, invisible characters, encoding glitches and whitespace. Your words, numbers and punctuation meaning stay exactly as you pasted them. Smart quotes become straight quotes and mojibake becomes readable characters, but nothing is rewritten, reworded or reordered. That guarantee is what makes it safe to run on anything: contracts, code, data, prose.

The independence of the six fixes reinforces this. Untick any option you do not want and that aspect of your text passes through byte-identical. Straightening quotes will never merge your paragraphs; normalizing whitespace will never touch your HTML entities unless you ask it to. If a paste needs only spacing fixes, the whitespace remover does that one job with the same no-rewriting promise.

How to clean a messy paste in 4 steps

  1. Paste your text. Copy the messy text from the web, PDF, CMS or document and paste it into the input box.
  2. Tick the fixes you need. HTML tags, entities, smart quotes, zero-width characters, mojibake and whitespace each have a checkbox.
  3. Click Clean paste. All selected fixes run together in a single pass.
  4. Copy the result. The cleaned text is ready for your CMS, code editor, form or document.

6 practical tips for clean pastes

  • Straighten quotes before pasting code. Curly quotes are the classic reason a pasted snippet fails to compile.
  • Use spacing-only mode for simple jobs. If whitespace is the only problem, the whitespace remover is the faster tool.
  • Inspect invisible characters first. The invisible character detector shows exactly where zero-width marks hide.
  • Untick fixes you do not need. Each toggle is independent, so keep full control over what changes.
  • Fix mojibake at the source for whole documents. Re-open badly encoded files in the correct encoding instead of patching.
  • Run it before CMS pastes. Clean text going in means no mystery formatting in your published articles.

Frequently asked questions

Is this copy paste cleaner free?

Yes, free and unlimited. Clean as many pastes as you like with no account, no signup and no limits on text length. All six fixes can be toggled independently on every run, so each paste gets exactly the repairs it needs.

What are zero-width characters?

Characters like zero-width spaces that are invisible on screen but live in the text. They break searches, corrupt form input and cause mysterious mismatches where two identical-looking strings compare as different.

Does it remove HTML tables?

The tags are stripped but the text inside the cells stays, so the content survives while the grid layout is lost. For real tables you need to paste into an app that keeps formatting, like a spreadsheet.

Can I run only some of the fixes?

Yes. Each of the six fixes has its own checkbox, so you can straighten quotes without touching whitespace, or normalize whitespace without touching HTML entities, for example. Unticked fixes leave that aspect of your text completely unchanged.

Is my text uploaded anywhere?

No. Everything runs in your browser, so your pasted text never leaves your device. Nothing is uploaded, nothing is stored on a server, and clearing the page wipes it all.

Ready to try it yourself? It's free, no signup required.

Try the free Copy Paste Cleaner →