Remove Blank Lines

Delete blank or whitespace-only rows from logs or lists.

Input

Processed on your device

How to use Remove Blank Lines

Remove empty rows from a list or log while keeping the contents and edge spacing of lines that have text.

  1. Paste the source and run the tool.
  2. Verify that any deliberate paragraph gaps can be removed before copying.
Example input
Invoice-10
Invoice-2

Invoice-2
Invoice-3

Example use

Clean up a pasted list of product IDs with random empty rows between entries.

Output and compatibility

Blank includes lines containing only whitespace. The operation removes those lines; it does not join the contents of nonblank rows.

Troubleshooting

If paragraph separation matters, use Clean Text Whitespace to collapse only repeated blank lines instead.

Use Sort Text Lines after removing empty rows if the list also needs ordering.

Frequently asked questions

Will it trim spaces on lines that contain text?

Those lines keep their content.

Are lines containing only spaces removed?

Yes. They are treated as blank.

Find a tool