Input
Output
Frequently Asked Questions
What counts as an empty line?
Any line that contains only whitespace characters (spaces, tabs) or is completely blank is considered empty and will be removed by this tool.
Does this tool preserve line order?
Yes, the tool maintains the original order of non-empty lines, simply eliminating the empty lines between them.
Will this tool affect lines with spaces?
Lines that contain only spaces or tabs are considered empty and will be removed. Lines with actual content but containing spaces between words will be preserved.
Can this be used for code formatting?
Yes, this tool is commonly used to clean up code files by removing extra blank lines. However, be aware that some coding styles intentionally use multiple blank lines for organization.