Bulk Text Cleaner
Strip the invisible characters and formatting damage that copied text carries, in one pass.
Need this done properly for your business?
Radiatus delivers secure cloud, DevOps & compliance engineering.
The characters you cannot see
Text copied from PDFs, web pages and word processors arrives carrying non-breaking spaces, zero-width spaces, soft hyphens, byte order marks and directional marks. They look like nothing, or like ordinary spaces, and they break string comparisons, defeat search, corrupt CSV imports and cause database lookups to fail against data that appears identical. A cleaner's most valuable job is removing what you cannot see.
Non-breaking spaces are the usual offender
U+00A0 renders exactly like a normal space and is inserted constantly by word processors and web content. Two strings differing only by one are not equal, which produces the maddening bug where a value visibly matches and the comparison returns false. It also survives most naive trimming, since trim functions typically strip only ASCII whitespace.
Smart quotes and dashes
Word processors substitute curly quotes for straight ones and em dashes for double hyphens as you type. That is correct for prose and fatal for code, CSV and anything parsed: a curly quote is not a string delimiter, and pasting such code produces a syntax error whose cause is invisible in most editors. Converting them back to ASCII equivalents is standard practice before using copied text as data.
Line endings differ by platform
Windows ends lines with carriage return plus line feed, Unix and macOS with line feed alone. Mixed endings in one file cause diffs to show every line as changed, break shell scripts with a trailing carriage return in the shebang, and confuse parsers. Normalising to one convention is usually the right first step for any file that has travelled between systems.
PDF text carries hard line breaks
Copying a paragraph from a PDF gives one line break per rendered line, plus hyphens where words were split across lines. Re-joining requires removing breaks inside sentences while keeping genuine paragraph breaks, and rejoining hyphenated fragments. Doing it by hand across a long document is tedious; doing it wrong merges paragraphs that should stay separate.
Clean before you compare, not after
Cleaning is most valuable applied at the point data enters a system. Cleaning after a mismatch has already been investigated wastes the investigation, and cleaning inconsistently across two datasets you intend to join guarantees they will not match.
Frequently Asked Questions
Privacy & Security
Cleaning done locally.
About This Tool
This tool runs entirely in your browser. No data is sent to any server, ensuring complete privacy. Simply use the interface above to get started — no registration or login required.
Disclaimer: This tool is provided "as is" without warranty of any kind. Results are for educational and utility purposes.
Related Tools
User Agent Parser
UtilityParse a User-Agent string into browser, engine, operating system and device. Explains why UA strings are unreliable and what to use instead.
QR Code Generator
UtilityGenerate QR codes for URLs, text, Wi-Fi and contact details. Adjustable error correction and size, produced entirely in your browser.
Credit Card Validator
UtilityValidate a card number with the Luhn algorithm and identify the issuing network from its prefix. Runs locally, nothing is transmitted.