Text Formatter
Text Formatter cleans pasted plain text in your browser by trimming line edges, merging spaces and tabs, normalizing line endings, compressing or removing blank lines, and optionally reflowing wrapped paragraphs.
Input Text
Characters
0 / 50,000
Quick Start
Common Scenarios
Web copy cleanup
remove extra spaces and blank lines while keeping paragraphs readable
Forwarded emails
tidy stray indentation and repeated blank lines before replying
Office/PDF paste
clean copied plain text in the editor.
API/log text
normalize line endings and trailing blanks before diffing
Markdown pre-cleanup
avoid space merging on code blocks, lists, and tables
Cross-platform newlines
convert CRLF/CR to LF before sharing text
Tables/lists prep
remove redundant blank lines before manual alignment
Pre-submit normalization
tidy spaces and newlines before publishing or archiving
Formatting Rules & Options
Formatting Boundaries
Usage Advice
Limitations & Compatibility
Privacy & Security
FAQ
“Merge spaces/tabs” collapses consecutive spaces and tabs and also trims line edges. “Trim line spaces” only removes leading/trailing blanks on each line. Use both carefully when indentation matters
Keep a source copy before replacing text. You can disable certain options and format again, or use the browser/editor undo history when it is still available
It can clean pasted Markdown as plain text, but it does not protect code blocks or render Markdown. Prefer “Normalize line endings” and “Compress extra empty lines”, then double-check indentation
Paste copied PDF text into the editor. This page cleans plain text; OCR and PDF repair are outside this tool.