Text transform
Text Cleaner
Fix messy pasted text: extra spaces, broken line breaks, smart quotes, empty lines, and leftover HTML tags.
Text is processed in your browser. DocumentMage does not upload it to our servers.
Examples
Email paste
A forwarded email with hard line breaks and double spaces becomes a single readable paragraph.
PDF copy
Text copied from a PDF often includes stray line breaks at every visual line. Removing wrap breaks restores sentences.
How to use it
- Paste the messy text.
- Enable only the cleanup steps you need.
- Copy or download the cleaned result.
Limits
- The cleaner does not OCR images or repair scanned PDFs.
- HTML stripping is a convenience for leftover tags, not a security sanitizer.
Questions
What does collapse spaces do?
It turns runs of spaces or tabs into a single space without deleting paragraph breaks unless you also remove empty lines.
Will this destroy a poem or code?
It can. Turn off the options you do not want. Code and poetry often need their original spaces.
Does HTML stripping execute scripts?
No. Tags are removed with a text replacement. This is not an HTML sanitizer for untrusted web pages.
Related tools
Text transform
Text Compare
Compare two versions of a document and highlight lines that were added, removed, or kept.
Text transform
Case Converter
Convert a heading, sentence, or identifier into the case you need, including title case and programming cases.
Text analysis
Word Counter
Paste any draft and get a live word count, character count, sentence count, and reading-time estimate.
Text transform
Lorem Ipsum Generator
Generate classic placeholder copy for layouts, invoices, and design mockups without visiting a cluttered generator.