Text Cleaner

Strip extra whitespace, smart quotes and hidden control characters from any text.

Clean up messy text in one click. Toggle options to collapse multiple spaces, trim each line, drop blank lines, normalise newlines, swap smart quotes for regular ones and strip non-printable control characters. Useful for tidying copied PDFs, AI output and pasted Word documents before publishing.

Common use cases

  • Tidy text copied from PDFs, Word docs or AI chat before publishing
  • Normalise CRLF/LF newlines before piping into a CLI or build script
  • Replace curly “smart” quotes and em-dashes with plain ASCII equivalents
  • Remove invisible control characters that break JSON, CSV or YAML files

Frequently asked questions

Does it modify my text without permission?
No — every transformation is opt-in via a checkbox, so you choose exactly what gets cleaned.
What counts as 'non-printable'?
ASCII control characters in U+0000–U+001F (excluding \n and \t) and the DEL character U+007F. These often sneak in from email clients and PDF copy-paste.
Will it break Markdown formatting?
Trimming and collapsing spaces can affect Markdown indentation. If you're editing Markdown, leave 'Trim lines' off and use the find-replace tool instead.

Related tools