A blank-line stripper
The tool splits on newlines and keeps every line where `line.trim().length > 0`. That means a line is "empty" if it contains nothing, or only spaces, tabs, or other whitespace. The line is dropped - the item content of non-empty lines is preserved verbatim.
This is the canonical first step in any cleanup pipeline. A paste from Excel / Slack / email often has stray blank lines; dropping them collapses the list to just the data. Chain with trim (before or after) to clean up whitespace inside items too.
The reverse is Find empty items - it reports where the blanks are instead of dropping them, useful for auditing a dataset before you change it.
How to use remove empty items from a list
- 1Paste your list into the input panel
- 2Output is your list with every blank or whitespace-only line dropped
- 3No options to configure - removal is unconditional
- 4Chain with trim to also clean up whitespace inside items
Keyboard shortcuts
Drive ListShift without touching the mouse.
What this tool actually does
One operation, no options.
Drops every empty and whitespace-only line
A line is dropped if `line.trim()` yields an empty string. That catches completely blank lines plus lines containing only spaces, tabs, or mixed whitespace.
Preserves item content verbatim
Non-empty lines are kept exactly as typed - no trimming, no case changes, no reformatting. If you also need whitespace stripped inside items, chain trim.
Collapses runs of blanks
Three consecutive blank lines, one blank line, a blank at the end, a blank at the start - all removed equally. The output has no blank lines anywhere.
Handles Windows CRLF and Unix LF line endings
The splitLines helper normalises `\r\n` and bare `\r` to `\n` before splitting. A Windows paste produces the same output as a Unix paste.
Runs in your browser
Pure client-side. Your list never reaches our servers - useful for internal data with blank rows that would be awkward to paste externally.
Worked example
Three items, four blank (or whitespace-only) lines - all blanks dropped.
Apples Oranges Cherries
Apples Oranges Cherries
Behavior reference
No user options. These are the fixed rules.
| Rule | What it does | Example |
|---|---|---|
| Drop empty lines | Every line where `line.trim() === ""` is dropped | Fully blank lines removed |
| Drop whitespace-only lines | Lines containing only spaces / tabs also count as empty | ` ` (three spaces) removed |
| Preserve item content | Non-empty lines emit verbatim - no trimming | ` Apple ` stays as ` Apple ` (use trim to clean) |
| CRLF normalisation | Windows and Unix line endings handled identically | Same output from either paste source |