Text Cleaner
Clean pasted text in your browser. Trim lines, collapse stray spacing, drop blank lines and de-duplicate; nothing is uploaded.
What this text cleaner does
Each line is trimmed and runs of spaces or tabs become one space, so alignment pasted out of a PDF or a terminal collapses to readable text. Blank lines are dropped unless kept, and de-duplication compares whole lines after cleaning, keeping the first occurrence in order.
How to use it
Text Cleaner: paste the Text into the box above, set Whitespace at line edges (default "lines"), Runs of spaces or tabs (default "yes"), Blank lines (default "remove") and Repeated lines (default "no"), and press Run to get the Cleaned text below.
Worked example
Input:
hello world
foo bar
hello world
Output:
hello world
foo bar
hello world
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads Text and returns Cleaned text; reloading the page discards both.
Each line is trimmed and runs of spaces or tabs become one space, so alignment pasted out of a PDF or a terminal collapses to readable text. Blank lines are dropped unless kept, and de-duplication compares whole lines after cleaning, keeping the first occurrence in order.
Clean pasted text in your browser. Trim lines, collapse stray spacing, drop blank lines and de-duplicate; nothing is uploaded.
How to use it
Text Cleaner: paste the Text into the box above, set Whitespace at line edges (default "lines"), Runs of spaces or tabs (default "yes"), Blank lines (default "remove") and Repeated lines (default "no"), and press Run to get the Cleaned text below.
Why it runs in your browser
The conversion happens on this page with JavaScript. Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere. The page reads Text and returns Cleaned text; reloading the page discards both.
What to Expect
Best for
- Converting Text to Cleaned text when the data is already on screen.
What this tool keeps
- Your input is not posted to a server, so it works offline after the page loads and nothing is retained anywhere.
Sample input
hello world foo bar hello world
Sample output
hello world foo bar hello world
Frequently asked questions
How do I use the text cleaner?
Text Cleaner: paste the Text into the box above, set Whitespace at line edges (default "lines"), Runs of spaces or tabs (default "yes"), Blank lines (default "remove") and Repeated lines (default "no"), and press Run to get the Cleaned text below.
Is my input uploaded?
No. The text is parsed on this page with JavaScript and is never posted to a server.
Is there a size limit?
Yes: 5 MB per run. Larger input is refused with a message rather than freezing the tab.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.