top of page

Text Cleaner

Tidy pasted text in a few clicks: remove extra spaces and line breaks, rejoin wrapped lines, fix quotes and dashes, and strip hidden characters. You see what changed, and nothing leaves your browser.

How to use it

  1. Paste your text into the box.
  2. Switch on the clean-ups you need, such as joining lines or removing blank lines.
  3. Check the change counts, then copy or download the cleaned text.

Frequently asked questions

Is my text uploaded anywhere?

No. The cleaning runs in your browser and your text never leaves your device.

How do I fix text copied from a PDF?

Turn on Join lines into paragraphs. It joins the wrapped lines of each paragraph with a space and keeps blank lines as paragraph breaks. If words are split with a hyphen at the end of a line, also turn on Rejoin words split by a hyphen.

Which invisible characters are removed?

Zero-width spaces, soft hyphens, byte order marks, word joiners and control characters. The joiners that hold emoji together and that some scripts such as Persian need are kept, so those texts are not broken.

Is Strip HTML tags safe for untrusted code?

It removes anything that looks like a tag and decodes common entities, but it is meant for tidying text, not for making unsafe HTML safe. Your text is only treated as plain text here and is never run as HTML.

How does Straight to curly work?

Quotes after a space, bracket or at the start of a line become opening quotes and the rest become closing quotes or apostrophes. Odd cases such as ’tis can come out the wrong way, so read the result.

Can I undo a clean-up?

Your original stays in the first box, so change the switches and the result updates. Nothing is saved, so copy what you need before you close the page.

More free tools

Sort Lines | Remove Duplicate Lines | Find and Replace | Case Converter

bottom of page