Clean pasted text by stripping HTML tags, rejoining wrapped lines, removing extra spaces and blank lines, and trimming whitespace. This is not an HTML security sanitizer.
Text copied from PDFs can contain line breaks in the middle of sentences. Use 'Rejoin wrapped lines' as a first pass, then check paragraph boundaries, headings, lists and words split by line-end hyphens against the original.
Forwarded emails accumulate > symbols and extra indentation. Strip HTML tags and then trim lines to get clean, readable plain text ready to paste into a document or CMS.
When pasting text from a web page into Word or Google Docs, hidden formatting and extra paragraph breaks cause chaos. Running it through the cleaner first gives you truly clean plain text.
Clean All applies the available transformations in sequence: strip HTML, remove unsupported control characters, rejoin wrapped prose, collapse extra blank lines and spaces, then trim each line. Review the result before using it.
Paste messy text from PDFs, emails, or web pages and clean it up instantly. Strip HTML, fix double spaces, remove extra blank lines, and trim each line — all in your browser.
PDF text with a sentence wrapped across lines
Rejoin wrapped lines joins ordinary prose within a paragraph; inspect the result against the source
Email with double spaces after punctuation
After 'Remove double spaces': single space throughout
HTML snippet pasted into plain text
After 'Strip HTML': just the readable text content
The concept of 'smart whitespace' handling has been a challenge since the earliest word processors. Early typewriters and typesetters used two spaces after a sentence full stop — a convention carried over from the era of monospaced fonts. Most modern typographers and style guides now recommend a single space, a convention enforced automatically by HTML (which collapses multiple spaces into one).
The available operations can remove extra spaces and blank lines, trim line edges, strip HTML tags, and remove non-printing characters. Different cleanup choices have different consequences: stripping tags removes markup, while trimming changes whitespace. Review the output before replacing your original, especially when spaces or line breaks carry meaning.
No. It can improve common artefacts such as wrapped lines, repeated spaces, and pasted markup, but PDFs can contain columns, headers, footers, ligatures, tables, and reading-order errors that require manual editing or specialised extraction. Use the cleaned result as a draft and compare it with the source document.
The purpose of this tool is to produce plainer text, so styling, links, and some intentional spacing may be lost. Keep the original content until you have checked headings, lists, URLs, code, and paragraph boundaries. If you need rich formatting, use a document editor or an HTML-aware workflow instead of plain-text cleaning.
Review code, fixed-width data, poetry, tables, and copied lists before applying trimming or whitespace collapsing. Make a copy of the source and run one cleanup operation at a time so you can identify which change altered the meaning. Compare the result with the original before exporting or pasting it into another system.