# حذف فاصله‌های اضافی

> فاصله‌های سفید ابتدا و انتها را حذف کنید، فاصله‌های تکراری را کاهش دهید یا همه آن‌ها را حذف کنید.

[Open tool](https://www.toolcabana.com/fa/remove-spaces) · [متن و نوشتن](https://www.toolcabana.com/fa/category/text-and-writing)

Tool ID: remove-spaces. Requested language: fa. Description language: fa. Complete guide translation: yes.

## Overview (en)

Remove Extra Spaces cleans up whitespace in three ways: collapse repeated spaces and tabs into one, trim spaces from the start and end of each line, or remove every whitespace character. In the default collapse mode, Preserve paragraph breaks keeps your line structure; turning it off folds all whitespace, including line breaks, into single spaces.

## Supported tasks (fa)

فاصله‌های سفید ابتدا و انتها را حذف کنید، فاصله‌های تکراری را کاهش دهید یا همه آن‌ها را حذف کنید.

## Steps (fa)

1. متن خود را بنویسید یا جای‌گذاری کنید، یا یک نمونه بارگذاری کنید.
2. تنظیمات پایه را تغییر دهید یا برای تنظیم دقیق نتیجه، حالت پیشرفته را باز کنید.
3. نتیجه را بررسی و کپی یا دانلود کنید. برای اجرای دستی، نتایج زنده را متوقف کنید. متن ورودی یا هر تنظیمی با بیش از 20,000 نویسه به اجرای صریح نیاز دارد.

## Settings

- حفظ جداسازی بندها (fa; key: preserve; type: checkbox)
- فاصله‌های سفید (fa; key: mode; type: select): تبدیل فاصله‌های سفید تکراری به یک فاصله [fa], حذف فاصله‌های ابتدا و انتهای سطرها [fa], حذف همه فاصله‌های سفید [fa]

## Limitations (fa)

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Example input

```text
Hello world.
A second line.
Café, İstanbul, 日本語, and 👨‍👩‍👧‍👦.
```

## Privacy and connections (fa)

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

## Questions (fa)

### How do I replace double spaces with a single space?

Use the default Collapse repeated whitespace mode. Runs of spaces and tabs become one space and each line is trimmed at both ends, while line breaks stay in place as long as Preserve paragraph breaks is on.

### How do I remove all spaces from a string?

Choose Remove all whitespace. Every space, tab and line break is deleted, so the whole input becomes one continuous string, which helps when cleaning up codes or numbers that were copied with spacing.

### Can I trim leading and trailing spaces on every line?

Yes. Select Trim line edges. Spaces and tabs at the start and end of each line are removed, while the spacing between words and all line breaks are left unchanged.

### متن ورودی من کجا پردازش می‌شود؟

این عملیات، متن ورودی را در مرورگر شما پردازش می‌کند. کپی و دانلود فقط با اقدام شما انجام می‌شوند؛ متن ورودی در حساب یا سابقه ذخیره نمی‌شود.

### محدودیت‌های ورودی چیست؟

عملیات متنی معمولاً تا 2,000,000 نویسه را می‌پذیرند. تجزیه‌گرها، تولیدکننده‌ها و فرمول‌های مختلف محدودیت‌های بیشتری دارند که در کنترل‌های آن‌ها نمایش داده می‌شود.

## Related tools

- [Remove line breaks](https://www.toolcabana.com/fa/remove-line-breaks)
- [Remove accents](https://www.toolcabana.com/fa/remove-accents)
- [Remove punctuation](https://www.toolcabana.com/fa/remove-punctuation)
- [Sort lines alphabetically](https://www.toolcabana.com/fa/sort-lines)
