Skip to content
utilnest

Text cleaner

Turn messy pasted text into clean, plain text, with no stray spaces, hidden characters or broken lines.

  • Works in your browser
  • No sign-up
  • Free to use

How to use Text cleaner

  1. 1

    Paste the messy text into the Input box.

  2. 2

    Tick the fixes you need, such as hidden characters, repeated spaces, empty lines or joining broken lines.

  3. 3

    Copy or download the clean text. The counter shows how many characters were removed.

What this tool does

The text cleaner fixes the formatting mess that copying and pasting leaves behind. Text from PDFs, web pages, Word documents, emails and chat apps often carries double spaces, lines that break mid-sentence, piles of blank lines, non-breaking spaces and invisible characters. Clean it in one step before you paste it into a document, a form, a spreadsheet or code.

Features

  • Invisible characters. Removes zero-width spaces, joiners, byte-order marks, soft hyphens and direction marks.
  • Spaces. Converts no-break and other special spaces, trims each line, collapses repeated spaces, and optionally turns tabs into spaces.
  • Lines. Limits blank lines to one, removes all empty lines, or joins lines broken in the middle of paragraphs.
  • Punctuation. Turns curly quotes into straight ones and en or em dashes into hyphens.
  • HTML. Strips tags, scripts and styles and decodes common entities.

Limits

  • "Join broken lines" relies on blank lines between paragraphs. If the source has none, the whole text becomes one paragraph.
  • "Strip HTML tags" is a quick clean-up for snippets, not a full HTML parser. For whole web pages, copy the text from the browser instead.
  • Formatting such as bold, links and tables is not kept, because the result is plain text.

Where your text is processed

This tool works in your browser: what you paste is processed on your own device, so it isn't sent to our server for this tool. Some other tools on UtiloNest do use our server, and their pages say so.

Frequently asked questions

What are hidden characters?

Characters you can't see but that are really there, such as zero-width spaces, byte-order marks, soft hyphens and text-direction marks. They come along when you copy from websites, PDFs and chat apps, and they break searches, spreadsheets, passwords and code. "Remove hidden characters" deletes them.

How do I fix text copied from a PDF that breaks in the middle of sentences?

Tick "Join broken lines". Lines inside a paragraph are joined with a space, while blank lines between paragraphs stay, so the text flows again.

What's the difference between "At most one blank line" and "Remove all empty lines"?

The first shrinks any run of empty lines to a single blank line, so paragraphs stay separated. The second removes every empty line, leaving one line of text after another.

Will it change my words?

No. The cleaner only changes spacing, line breaks, invisible characters and, if you choose, quote marks, dashes and HTML tags. Your words and spelling stay as they are.

Where is my text processed?

In your browser. The cleaning runs on your own device, so the text you paste isn't sent to our server.

Was this tool helpful?