أدوات النصوص

إزالة الأسطر الفارغة

أزل الأسطر الفارغة والمسافات الزائدة.

إزالة الأسطر الفارغة

بدعم من UtilBrix

تبقى بياناتك في متصفحك. لا حاجة إلى حساب. Character counts use Unicode code points. Reading: 200 words/minute. Speaking: 130 words/minute.

الطرق التفصيلية والأمثلة متاحة باللغة الإنجليزية.

Step-by-step instructions (English)

  1. Paste the text and choose removal or collapse mode.
  2. Decide whether whitespace-only lines should count as empty and whether line edges should be trimmed.
  3. Run the cleanup and check that paragraph or record boundaries remain clear.

الصيغة والطريقة

Remove empty lines drops only lines containing no characters. Remove whitespace-only lines also drops spaces or tabs. Collapse mode retains one blank separator from a sequence of blank lines. Optional trimming applies to each line first.

مثال عملي

A paragraph followed by three blank lines and another paragraph can be reduced to a single blank separator with Collapse multiple empty lines.

When this tool is useful

Tidy pasted text with excessive blank separators, or prepare a line-based list for another tool. Collapse mode is useful for prose because it keeps one separator instead of joining all paragraphs together.

Common mistakes and limitations

  • An apparently empty line can contain spaces or tabs, so basic empty-line removal may leave it intact.
  • Trimming can remove indentation that matters in source code or structured text.

Practical questions about this tool (English)

How is collapse different from removing all empty lines?

Collapse retains one blank separator from a consecutive group. Removal drops the matching lines entirely, bringing the surrounding content together.

Will this remove spaces inside sentences?

No. The optional trim affects line edges, while the selected mode handles empty or whitespace-only lines. Internal sentence spacing is not a general normalization target.

Put this tool into practice

أدوات أخرى مفيدة

تثبيت UtilBrix

افتح أدواتك من الشاشة الرئيسية.

  1. افتح قائمة المتصفح (⋮).
  2. اختر «تثبيت التطبيق» أو «إضافة إلى الشاشة الرئيسية».
  3. أكّد إضافة UtilBrix إلى الشاشة الرئيسية.

إذا لم يظهر الخيار، افتح الصفحة في Chrome على Android.

البحث عن أدوات

↑ ↓ Navigate · Enter Open · Esc Close