Remove Empty Lines Online
Paste any text or list below to delete all empty lines and blank rows in one click. You can also remove duplicate lines and extra spaces at the same time.
How to remove empty lines
- Paste your text or list in the box above.
- All blank lines are removed instantly, including lines that only contain spaces or tabs.
- Optional: tick Remove duplicate lines, then click Copy.
Example
Beforeapple
banana
cherry
Afterapple
banana
cherry
When you need to remove blank lines
- Cleaning lists of emails, keywords, names or URLs before pasting into Excel or Google Sheets
- Fixing code or CSV files with empty rows
- Tidying text copied from websites, PDFs or AI chatbots that adds a blank line after every line
Want everything on one line instead? Use Join Lines or the main Remove Line Breaks tool.
Frequently asked questions
Does it remove lines that contain only spaces?
Yes. A line with only spaces or tabs counts as empty and is removed.
Can I remove duplicate lines too?
Yes. Tick "Remove duplicate lines" and only the first copy of each line is kept.
How do I remove empty lines in Notepad++?
Go to Edit, Line Operations, Remove Empty Lines. This online tool does the same thing on any device, including phones, without installing anything.
Is there a size limit?
No fixed limit. Very large texts (millions of characters) depend on your device's memory, but normal documents and lists work instantly.