About this tool
Trim each line, convert tabs to spaces and drop blank lines.
Whitespace Cleaner does three fixed things to pasted text: it replaces every tab with a single space, trims leading and trailing whitespace from each line, and deletes lines that are empty once trimmed. The cleaned text appears as you type and rejoins the surviving lines with standard newlines, so Windows CRLF line endings come out as plain LF. It is for anyone pasting text out of a PDF, spreadsheet, email or chat log that arrives padded with stray tabs, indentation and blank rows.
Open Whitespace Cleaner on AltFTool — it loads instantly in your browser.
Paste text into the Input panel, or press 'Load sample' to see the transform run on padded, tabbed and blank lines.
The Result panel updates on every keystroke: each tab becomes one space, every line is trimmed and lines left empty are dropped.
Press Copy on the Result panel to take the cleaned text, or Clear to empty the input and start over.
Tab conversion, per-line trimming and blank-line removal happen in a single pass, so there is nothing to configure and nothing to run twice.
Because each line is trimmed, a stray carriage return from Windows CRLF text is stripped and the output uses plain newlines throughout.
The result recomputes on every keystroke, so you can see exactly which lines survived before you copy anything.
Neither — each tab becomes exactly one space. If you need code-style indentation of 2 or 4 spaces per level, use a code formatter instead, because this tool also trims leading whitespace and would remove that indentation anyway.
Yes. Every line that is empty after trimming is dropped, including deliberate paragraph breaks, so a double-spaced document comes out single-spaced. Keep your original if those breaks matter.
No. Only leading and trailing whitespace on each line is removed — a run of several spaces between two words is left exactly as it is. Use a find-and-replace or a regex tool if you need internal runs collapsed.
No. The whole transform is a few lines of JavaScript running in your browser tab, so the text never leaves your device and nothing is stored after you close the page.