Remove empty lines
Remove empty and blank lines from any text, or collapse runs of blank lines into one. Trim whitespace and keep everything in your browser.
Text & Lists In your browser
Text & lists
Clean up messy whitespace: collapse runs of spaces and tabs into one, trim each line, remove extra blank lines and strip blank lines from the start and end of the document. Your text stays in this browser.
Private by design: no text is uploaded or stored.
Private by design: no text is uploaded or stored.
Try an example
Updates when you normalize or change an option.
· space · → tab · ¶ line break · ⍽ no-break space · ␣ zero-width character. Hover a marker for its name.
Collapsing spaces turns any run of spaces and tabs into a single space. Trimming lines removes spaces at the start and end of each line. Collapsing blank lines keeps at most one empty line between blocks of text. Removing blank lines at the start and end trims the whole document. Combine the options to get exactly the spacing you want — nothing else in your text is changed.
0:24
Video · 0:24
Double spaces, tabs and blank lines break your CMS.
Remove empty and blank lines from any text, or collapse runs of blank lines into one. Trim whitespace and keep everything in your browser.
Text & Lists In your browser
Strip zero-width spaces, the BOM, soft hyphens and other invisible Unicode that sneaks in when you copy text. Normal spaces and line breaks are kept.
Text & Lists In your browser
Turn HTML into clean, readable plain text. Tags are removed, the contents of script and style blocks are dropped, and common HTML entities are decoded. Runs in your browser.
Text & Lists In your browser
Convert accented and special Latin letters to plain ASCII: café becomes cafe, zażółć becomes zazolc, naïve becomes naive. Handy for slugs, filenames and legacy systems. Runs in your browser.
Text & Lists In your browser
Count lines, words, Unicode characters, UTF-8 bytes, paragraphs and reading time locally in your browser.
Text & Lists In your browser
Remove duplicate lines from any list, with optional case-insensitive and whitespace-trimmed matching. Works entirely in your browser.
Text & Lists In your browser
We value your privacy
We would like to use optional analytics cookies to understand how the site is used and improve it. Nothing is loaded until you choose, and you can change your decision at any time. Privacy policy