Free online tool
Free Online Text Cleaner & Transformer
Clean and transform text online for free. Dedent code blocks, strip ANSI escape codes, remove blank lines, sort, reverse, and collapse whitespace — chain any combination in sequence. 100% client-side.
01How it works
Paste your text
Paste any text into the input area — terminal output, log files, code snippets, or any plain text you need to clean up.
Click a transform
Click any of the 9 transform buttons. The result appears in the output area instantly. Click another button to chain further transforms.
Copy or download
Copy the cleaned text to clipboard with one click, or download it as a .txt file.
FAQ
Frequently asked questions
What does the Dedent operation actually do?
Dedent removes the common leading whitespace from all non-empty lines. If every line starts with at least 4 spaces, those 4 spaces are stripped from each line. It is the go-to fix for terminal output and code snippets copied from indented function bodies.
How do I chain multiple transforms?
Click multiple transform buttons in order. Each button applies its operation to whatever is currently in the output area. So you can click Dedent, then Strip ANSI, then Remove blank lines — each step chains onto the last result.
Why would I need to strip ANSI escape codes?
ANSI escapes are control sequences terminals use to add colour and formatting (e.g. bold red text). When you copy a terminal session or a coloured log file into a document, those invisible characters travel along. Strip ANSI removes them, leaving clean plain text.
What is the difference between the character count and byte count?
The live counts show characters (Unicode code points), words (whitespace-separated tokens), lines (newline-separated), and bytes (UTF-8 encoded). Bytes will exceed characters for any text containing accented letters, emoji, or CJK characters because UTF-8 uses 2–4 bytes per non-ASCII code point.
Need AI-powered document extraction?
This tool uses client-side processing. anyrow uses AI to extract structured data from PDFs, images, and scanned documents with 99% accuracy. 150 free extractions/month — no credit card required.