Skip to content
Toolbento

Text cleaner

Trim spaces, remove blank and duplicate lines, sort lines, straighten quotes and strip HTML from messy text.

Everything stays on this device

Text cleaner runs in your browser. The text and files you add are worked on by this device and are never uploaded, to us or to anyone else.

  • No uploads. The page is blocked from sending data to any other server.
  • No account, cookies, ads or tracking.
  • Fonts and scripts come from toolbento.app itself, so the page makes no requests to other companies.
  • Closing the tab clears your text and files from memory.

Read the full details on the privacy page.

Clean
Blank lines
Blank lines
Sort lines
Sort lines

9 lines in, 7 lines out: removed 2 blank lines.

Missing a feature or found a bug in Text cleaner? Tell me on X (@_andrewtran) or by email.

How to use Text cleaner

  1. Paste the text to clean.
  2. Tick what to clean, and choose what happens to blank lines and the order of lines.
  3. Copy or download the cleaned text. The line under the options says what changed.

Questions and answers

Is my data sent anywhere?

No. Everything runs in your browser on this device. Nothing you paste is uploaded or stored.

How does it sort numbers?

As a person would: "item 2" comes before "item 10". Ignore case makes "Apple" and "apple" sort and count as the same.

What are invisible characters?

Zero-width spaces, byte order marks and soft hyphens, which often come along when text is copied from web pages or documents and break searches. Non-breaking spaces become ordinary ones.

Esc

Loading tools