Arabic Rewriterالعربية

Remove Extra Spaces

Collapse double spaces and tabs, trim lines and reduce runs of empty lines in Arabic or English text, without touching letters, diacritics or punctuation.

0 characters

How it works

Text copied from PDFs, chats and websites often carries doubled spaces, tabs and long gaps between paragraphs. This tool turns any run of spaces or tabs into a single space, trims spaces at the start and end of each line, reduces three or more line breaks to one empty line and trims the whole text. Paragraph breaks are kept, and letters, tashkeel and punctuation are never changed. It shows how many characters were removed and runs in your browser.

  1. Paste the text.
  2. Press Remove extra spaces.
  3. Copy the cleaned text.

Example

Input

   هذا    نص		فيه   مسافات  زائدة   



  وسطر   آخر  

Output (Actual output: 21 characters removed)

هذا نص فيه مسافات زائدة

وسطر آخر

Frequently asked questions

Will it delete my paragraph breaks?

No. Single empty lines between paragraphs are kept; only runs of three or more line breaks are reduced.

Does it remove invisible characters like zero-width spaces?

No. Use Remove Hidden Characters for zero-width spaces, RLM/LRM marks and BOM, or Clean Arabic Text for a full cleanup.

More free Arabic tools