Text Cleaner
Trim, dedupe, unwrap, and normalize messy text in one pass — right in your browser.
Paste messy text, tick the cleanups you want, and watch the result update live: trim each line, collapse runs of spaces, delete empty lines, remove duplicate lines, join everything into one paragraph, strip HTML tags, remove emojis, straighten smart quotes, and sort lines A→Z or Z→A. Before-and-after line and character counts show exactly what changed.
It shines on text copied from PDFs and emails, where hard line breaks chop every sentence; on lists exported from spreadsheets full of blanks and duplicates; and on content scraped from web pages with leftover tags and curly quotes that break code and CSV files. Everything runs locally in your browser — your text is never uploaded.
How to clean up text
- 1
Paste your messy text into the input box.
- 2
Tick the cleanup options you need — the preview and before/after stats update live.
- 3
Copy the cleaned text, download it as .txt, or apply it back to the input for another pass.
Why use Nofolo’s text cleaner?
One-pass pipeline
Combine up to nine cleanup operations and apply them together in a sensible order.
Duplicate & empty line removal
Deduplicate a list while keeping first occurrences, and drop blank lines in the same pass.
Unwrap hard line breaks
Join PDF- or email-wrapped text back into flowing paragraphs with one checkbox.
Strip HTML & emojis
Remove tags (decoding common entities like &) and delete emoji characters from the text.
Straighten smart quotes
Convert curly “quotes” and ‘apostrophes’ to straight ones — essential for code and data files.
Sort, copy, download
Sort lines A→Z or Z→A, then copy the result or download it as a .txt file.
Frequently asked questions
How do I remove duplicate lines from a list?
Enable “Remove duplicate lines”. The cleaner keeps the first occurrence of each line and deletes later repeats — combine it with “Trim lines” so entries that differ only by stray spaces are treated as the same line.
Can it fix text copied from a PDF?
Yes — that is the most common use. PDFs insert a hard line break at the end of every visual line; enable “Remove all line breaks” to join the text back into one paragraph, and “Collapse spaces” to tidy the joins.
What are smart quotes and why straighten them?
Word processors replace straight quotes (' and ") with curly “smart” versions. They look nice in prose but break source code, JSON, and CSV imports. The cleaner converts every curly quote and apostrophe back to its straight ASCII form.
Does stripping HTML also decode entities?
Yes. After removing tags, common entities are decoded — & becomes &, < becomes <, becomes a space — so you get readable plain text rather than leftover codes.
Is my text uploaded anywhere?
No. All cleaning happens in your browser with JavaScript — nothing is transmitted, stored, or logged, so it is safe for internal documents, customer lists, and unpublished writing.
Related tools
Word Counter
Count words, characters, sentences, and reading time — live, as you type.
Case Converter
Switch text between UPPERCASE, lowercase, Title Case, camelCase, and six more — live.
Text Diff Checker
Compare two blocks of text and see every added and removed line highlighted.
Slug Generator
Turn titles into clean, SEO-friendly URL slugs — accents and stop words handled.