Remove Blank Lines

Remove Blank Lines deletes blank lines from text, collapses runs of blank lines into one or removes all line breaks to join the text into a single line. Your text never leaves your device.

Result
—

How it works

  1. 1Paste the text into the left box.
  2. 2Pick a mode: remove blank lines, keep a single blank line or remove line breaks.
  3. 3Copy the result with "Copy".

Frequently asked questions

Do whitespace-only lines count as blank?+

Yes, lines that contain only spaces or tabs are treated as blank.

What if I want to keep paragraph gaps?+

"Keep a single blank line" squeezes runs of blank lines into one so paragraphs stay separated.

Do words stick together when line breaks are removed?+

No, lines are joined with a single space.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/text/remove-blank-lines/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Remove Blank Lines · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Text Editing Guide →

Command Palette

Search for a command to run…