What counts as an empty line
An empty line has nothing between two line breaks. Lines that hold only spaces or tabs look empty too, even though they contain invisible characters. With the default setting, both kinds are removed. Turn the option off to remove only lines that are completely empty and keep space-only lines, which can matter in code or preformatted text.
In the example, the shopping list has 10 lines: a title, four items, and five blank lines, one of which holds three spaces. Removing them leaves the title and four items, so the result has 5 lines and the tool reports 5 empty lines removed.
Line endings are handled for you
Different systems mark the end of a line differently. Windows uses a carriage return followed by a line feed, older Mac software used a carriage return alone, and Linux and macOS use a line feed. The tool converts all of them to standard line breaks first, so a blank line is recognized no matter where the text came from.
A line break at the very end of your text creates an empty final line, and it is removed along with the others. The result never ends with a blank line, which makes it ready to paste into a form, a spreadsheet column or a list field.
Keeping paragraphs readable
Removing every empty line joins paragraphs into one continuous block. That is what you want for lists and data, but for prose you may prefer to keep one blank line between paragraphs. The remove extra spaces tool has an option that keeps at most one empty line in a row instead of removing them all.
Text inside each line is never changed. Spaces, tabs, punctuation and capital letters stay exactly as they were. If the remaining lines have stray spaces at their ends or repeated items, follow up with the remove extra spaces or remove duplicate lines tools.
Common uses
People use this to tidy addresses and lists copied from documents, to prepare items for import into another program, to clean up text extracted from a PDF, and to compact log output before sharing it. The counts make it easy to confirm how much was removed.
Up to 200,000 characters can be processed at once. Nothing is uploaded or saved, so you can use it with private notes and internal data. Close the page or press Reset to clear your text.