RevealTheme logo

پاک‌کننده متن

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

نحوه استفاده از این ابزار

  1. 1

    Paste your messy text into the input box.

  2. 2

    Toggle the options you want: trim lines, collapse spaces, remove line breaks, replace tabs, and fix smart quotes.

  3. 3

    Read the cleaned result in the lower box, which updates live as you type or change options.

  4. 4

    Click 'Copy clean text' to copy the result to your clipboard.

پاک‌کننده متن چیست؟

متنی که از PDF، وب‌سایت‌ها یا Microsoft Word جای‌گذاری می‌شود معمولاً با مصنوعات پنهانی همراه است: گیومه‌های تایپوگرافیک (خمیده)، خط تیره‌های بلند، خط تیره‌های نرم، فاصله‌های دوگانه، فاصله‌های انتهایی و ترکیبی از تب‌ها و فاصله‌ها. این ابزار همه آن‌ها را به متن ساده و تمیز یکسان‌سازی می‌کند، آماده برای جای‌گذاری در ویرایشگرهای کد، فرم‌های CMS یا سایر محیط‌های سخت‌گیرانه.

موارد استفاده رایج

  • Cleaning a quote pasted from a Word document before dropping it into source code, where curly apostrophes would cause syntax errors.

  • Flattening multi-line text copied from a PDF into a single line for a spreadsheet cell or search field using the remove-line-breaks toggle.

  • Removing the trailing spaces and tab-indented lines that sneak in when copying from a chat app or rendered web page.

  • Normalizing en-dashes and em-dashes to plain hyphens so a CSV or plain-text export stays ASCII-safe.

  • Tidying marketing copy pasted into a CMS field so double spaces after sentences collapse to single spaces.

  • Preparing a code comment or commit message by stripping the smart quotes and ellipses an editor auto-inserted.

پرسش‌های متداول

چرا گیومه‌های تایپوگرافیک بد هستند؟
آن‌ها نحو کد را خراب می‌کنند، خروجی‌های CSV را به هم می‌ریزند و در برخی محیط‌ها به‌درستی نمایش داده نمی‌شوند. برای اسناد مشکلی ندارند؛ برای محتوای فنی، آن‌ها را جایگزین کنید.

ابزارهای مرتبط