About
Use this text tool to eliminate all lines in a text that contain only white space (spaces or tabs). You can also enable trimming to remove leading and trailing spaces.
Related Tools
- Remove Spaces - Locate identical lines in a document and delete duplicates.
- Remove Duplicate Lines - Get rid of all the lines in a text that only consist of white space (spaces or tabs).
Delete blank lines, including lines that contain only spaces or tabs. Make a copied list compact without joining its populated rows.
How to use
Paste the text and remove empty lines. Check paragraph spacing before copying the result; blank lines used as separators are removed too.
Example
Apple, a blank line, and Pear become two consecutive populated lines.
FAQ
Does it remove spaces inside text?
No. It filters blank rows. Use the space cleanup tool when you need to change spacing within populated lines.
A practical task
Check if blank rows serve as separators before deleting them. A compact product list benefits from removal, but a poem or a grouped address book can lose structure. Save the grouped source when the blank line carries meaning.
Another useful question
Can the tool distinguish an empty paragraph from a deliberate pause?
No. It removes rows by their characters, not their editorial role. Keep deliberate spacing in a separate formatted source.
Details for interpreting the result
| Detail | Explanation |
|---|---|
| Order and sorting | Reversing changes the existing order from end to start. Sorting calculates a new order from values. A reversed list is only sorted if its previous arrangement and the chosen ordering rule happen to make that true. |
| Natural sorting | Natural sorting compares numeric parts as numbers. Character sorting compares their symbols. Labels containing 2 and 10 can therefore switch places between the two methods even when their text is unchanged. |
| Case sensitivity | Case sensitive matching distinguishes capital and lowercase letters. Ignoring case merges some of those distinctions, but it does not turn different spellings or word forms into the same term. |
| Trimming and content | Trimming removes characters from an edge rather than the middle. Whole text trimming differs from trimming every line. Preserve indentation in code or structured text when it carries meaning. |
| Whitespace characters | An ordinary space, a tab, a nonbreaking space, and a zero width space are different characters. They can look similar or invisible. Choose the exact kind of cleanup instead of treating all blank looking input as equivalent. |
| Line endings | A line break can use LF or CRLF. They look similar in an editor but contain different characters. Byte comparisons and checksums depend on the exact representation, including a final line break. |