Remove blank lines from text
Delete empty lines from pasted text without changing the words on the remaining lines. This browser-based blank line remover is useful for cleaning copied lists, notes, and document text.
Why remove blank lines?
Extra empty lines often appear when text is copied from documents, email threads, spreadsheets, or websites. Removing them by hand is slow and makes it easy to accidentally delete a useful line. Paste the text below to remove lines that contain only spaces or tabs while preserving the order and content of all other lines.
When this tool is useful
Tidy copied lists
Remove gaps between names, URLs, or list items before pasting them into another app.
Clean notes and drafts
Collapse accidental empty rows in notes while keeping each sentence and paragraph line intact.
Prepare text for spreadsheets
Remove empty rows from one-item-per-line text before importing or processing it.
Example
Before
Apples Oranges Pears
After
Apples Oranges Pears
Lines that contain no text (including whitespace-only lines) are removed; non-empty lines stay in their original order.
Frequently asked questions
Does this remove spaces inside a line?
No. It removes only lines that contain no text or contain whitespace only. Words and spacing on non-empty lines are left unchanged.
Will it remove every empty line?
Yes. Empty lines and lines made only of spaces or tabs are removed from the pasted text.
Is my text uploaded?
No. The tool processes the text in your browser and does not send it to a text-processing server.
Can I use it for a long list?
Yes. Paste the list into the editor, remove the blank lines, and copy the result. Processing happens locally in your browser.