Clean copied text with rules you control
Use this online text cleaner to organize copied paragraphs, lists, or HTML text. Choose only the transformations your document needs, then compare the separate output with the source. It does not correct grammar or preserve a web page's visual layout.
How to clean text
Paste your text
Keep the original and paste a working copy into the input box.
Select cleanup rules
Enable the rules you need and click Clean text. For code or Markdown, leave whitespace and punctuation changes off unless intended.
Review and copy
Check the output before copying. Changes to the source or options clear the previous result, so run the cleaner again.
What the cleanup rules change
Whitespace and lines
Trim line edges, remove indentation, collapse spaces, or adjust blank lines only when selected. Deduplication compares complete lines after character cleanup and keeps the first match. Line-break removal runs last, after line deduplication.
Character normalization
NFC combines equivalent Unicode sequences. Optional rules convert full-width ASCII characters, quotes, dashes, or ellipses. Punctuation spacing adjusts existing horizontal spaces; it does not insert missing spaces or merge paragraphs. Zero-width cleanup preserves joiners.
Extract text from HTML
HTML extraction removes markup and script or style content. It separates blocks with line breaks, table cells with tabs, and uses image alt text when available. It produces plain text, not sanitized HTML or Markdown.
Content removal
Remove common HTTP links, email addresses, hashtags, mentions, or emoji when selected. Links and emails are protected from hashtag and mention removal. These rules are not a complete personal-data anonymizer; review unusual addresses and names manually.
Text cleaning examples
Trim and deduplicate a list
Enable Trim each line and Remove duplicate lines. Matching is case-sensitive; Alpha and alpha remain different.
Input
Alpha
Alpha
BetaOutput
Alpha
BetaNormalize quotes and ellipses
Enable Normalize quotes and Normalize ellipses. Other punctuation and line structure stay unchanged unless another rule is selected.
Input
“Wait…”Output
"Wait..."Text cleaner FAQ
Will cleaning change numbers, links, or code?
Defaults leave spacing and punctuation unchanged. Optional rules can alter text, especially indentation, full-width characters, or removed content. Punctuation spacing protects detected URLs and emails, but this tool is not a code formatter.
Does zero-width cleanup break joined emoji?
It removes U+200B, U+FEFF, and U+2060 while retaining U+200C and U+200D joiners. Emoji removal is separate and removes whole grapheme clusters. If segmentation is unavailable, it reports an error instead of deleting arbitrary Unicode characters.
How can I preserve all original whitespace?
Leave every whitespace and line rule off. There is no unconditional trimming. Turn all options off for an unchanged input; textarea line endings may already be normalized by the browser.