How it works
Checks each line after trimming whitespace and drops it only when nothing remains. Lines with text keep their original leading and trailing spaces; internal spacing is untouched.
Remove blank lines while preserving other line breaks.
alpha beta
alpha beta
Checks each line after trimming whitespace and drops it only when nothing remains. Lines with text keep their original leading and trailing spaces; internal spacing is untouched.
Clean pasted notes that gained blank or whitespace-only rows without collapsing the separation inside sentences. The lines A, blank, spaces-only, B reduce to A and B on separate lines.
A row containing tabs or spaces is treated as empty and removed. If you want to keep a paragraph gap, add the desired line break back after processing.
No. Trimming is used only to decide whether a line is empty. A line that contains text is copied unchanged, including its indentation.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy