عالميمجاني

منظّف المسافات

أزل المسافات في أطراف الأسطر والمسافات المتكررة مع الحفاظ على فواصل الأسطر.

تبقى مدخلاتك في علامة التبويب هذه. لا نتلقى ملفاتك أو النصوص الملصقة أو قيم الحسابات.

المدخلات

تلميح: اضغط Ctrl + Enter للتشغيل

نتيجتك

ستظهر نتيجتك هنا.

المساعدة المفصلة أدناه متاحة بالإنجليزية فقط حاليًا.

حول هذه الأداة

Text copied from PDFs, emails and web pages often carries double spaces, spaces at the ends of lines and indentation that breaks formatting when pasted elsewhere. This cleaner trims both ends of every line and collapses runs of spaces into a single space, while keeping the line breaks you had, so lists and paragraphs keep their shape.

Tabs are left alone so tab-separated data is not damaged; convert tabs separately if you need to.

طريقة الاستخدام

  1. Paste the messy text.
  2. Run the cleaner.
  3. Copy the result and paste it where you need it.
  4. If you also need to remove blank lines, delete them in the result or use remove duplicate lines on a list.

كيف يعمل الحساب

Each line is trimmed of leading and trailing spaces, and sequences of two or more spaces inside a line become one space. Line breaks and tab characters are preserved.

مثال تطبيقي

A form pasted from an email reads " Name: John Smith ", then two blank lines, then " City: Toronto ". After cleaning, the lines are "Name: John Smith" and "City: Toronto", with the two blank lines between them left in place. If the gaps had been tab characters, they would have been kept.

مثال على الإدخال والنتيجة

a    b → a b

القيود

  • Does not reflow text or join lines broken by a PDF.
  • Tabs and non-breaking spaces are kept.
  • Up to 100,000 characters.

آخر تحديث:

الأسئلة الشائعة

Does it remove blank lines?

No. Line breaks are preserved so paragraphs stay separate.

Why are tabs not removed?

Tabs often separate columns in copied tables. Keeping them avoids merging columns.

Does it remove non-breaking spaces?

Only ordinary spaces are collapsed; non-breaking spaces from web pages may remain.

استكشاف الأخطاء وإصلاحها

Lines from a PDF are still broken mid-sentence.

PDF line breaks are real line breaks. Join them in a text editor or retype the paragraph.

Spaces still look doubled.

They may be non-breaking spaces. Use find and replace to replace them with ordinary spaces.

Indentation in code disappeared.

Leading spaces are trimmed. Do not use this tool on code where indentation matters.

الخصوصية & مجاني

هل تُخزَّن مدخلاتي؟

تبقى مدخلاتك في علامة التبويب هذه. لا نتلقى ملفاتك أو النصوص الملصقة أو قيم الحسابات.

هل هذه الأداة مجانية؟

نعم. لا يلزم تسجيل أو دفع.

تتم المعالجة في متصفحك

خطوات تالية مفيدة