رفتن به محتوا
WriteWithin

مجموعه ابزارهای خط

خطوط را در یک ابزار مرورگر خصوصی تمیز، مرتب کنید، بپیوندید و فیلتر کنید - از جمله خطوط خالی که فقط خالی به نظر می رسند.

تنظیمات از پیش تعیین شده

خالی و خالی

خطوط فیلتر

منحصر به فرد و سفارش

بپیوندید و تقسیم کنید

ترتیب پردازش ثابت است: انتهای خط → جابجایی خالی → فیلتر → منحصر به فرد → مرتب سازی/معکوس → پیوستن/تقسیم/روی مجدد.

چرا این ابزار متفاوت است

  • مجموعه کامل در یک مکان - مرتب‌سازی، فیلتر کردن، پیوستن و حذف بدون ابزارهای پرش
  • خطوط «خالی» فقط با فاصله خالی را بگیرید
  • خطوط منحصر به فرد پایداری که نظم اولین مشاهده را حفظ می کند
  • خطوط حاوی متن را نگه دارید یا حذف کنید - مانند یک grep کوچک در مرورگر
  • پردازش خصوصی در مرورگر به 16 زبان

نحوه حذف خطوط خالی

برای رها کردن ردیف‌های خالی، حذف خطوط خالی را روشن کنید. برای حذف خطوطی که خالی به نظر می‌رسند، اما حاوی فاصله‌ها یا برگه‌ها هستند، Treat space-only را به‌عنوان خالی فعال کنید.

پیوستن و تقسیم خطوط

خطوط پیوستن هر ردیف را با جداکننده شما ادغام می کند (فضا، کاما یا سفارشی). حذف خط شکستگی ها به فضاها مسطح می شود. حالت‌های تقسیم متن را به جملات، عرض ثابت یا یک جداکننده سفارشی تقسیم می‌کنند. Reflow برای پاراگراف‌های قابل خواندن، شکست‌های خطی را اضافه می‌کند.

مرتب سازی و معکوس کردن خطوط

A→Z یا Z→A را بر اساس حروف الفبا مرتب کنید. وقتی مرتب‌سازی «Apple» و «apple» را با هم انجام می‌دهد، از حروف کوچک‌تر صرف نظر کنید. خطوط معکوس بدون مرتب‌سازی از بالا به پایین می‌چرخند.

خطوط تکراری را حذف کنید / خطوط منحصر به فرد را حفظ کنید

خطوط منحصر به فرد (اول حفظ شود) هم «حذف موارد تکراری» است و هم «فقط خطوط منحصر به فرد را حفظ کنید». اولین باری که یک خط ظاهر می شود باقی می ماند. نسخه های بعدی حذف می شوند و نظم حفظ می شود.

خطوط حاوی متن را فیلتر کنید

خطوط حاوی قطرات هر ردیفی که با کلمه کلیدی شما مطابقت دارد را حذف کنید. خطوط حاوی خلاف این کار را نگه دارید. وقتی حروف مهم است از حروف حساس استفاده کنید.

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

پاک‌کننده فاصله · پاک‌کننده نویسه‌های متن · شمارنده خط · تبدیل حروف · پاک‌کننده لینک

Why line-level text tools matter

Lists are where copy-paste chaos peaks. A Word bullet list becomes plain lines without bullets. Meeting notes repeat the same action item three times. Server logs arrive as thousands of rows and you only need errors. CSV exports include blank rows that break imports. A paragraph copied from a PDF sits as one long line — or fifty short ones — and neither shape fits your editor.

WriteWithin Line Tools handles structure: blank lines, duplicates, sorting, filtering, joining, splitting, and reflowing. Everything runs in your browser with no upload. Pair it with the Whitespace Cleaner when spacing inside each line also needs fixing.

What Line Tools does

Blank lines vs whitespace-only blanks

A truly blank line contains no characters at all. A whitespace-only line looks empty but holds spaces or tabs — common after HTML paste or sloppy CSV export. Turn on Treat whitespace-only as blank to catch both kinds. Remove blank lines drops them; for collapsing runs of empty rows without deleting every gap, use the Whitespace Cleaner’s collapse blank lines option on intra-line spacing workflows.

Stable unique lines

Unique lines (keep first) removes duplicate rows while preserving the order of first appearances. Unlike sort-then-unique approaches that scramble your list, stable dedupe keeps “Alice” before “Bob” exactly as you pasted them. This is the fastest way to clean email lists, tag clouds, SKU exports, and chat action-item dumps before sharing.

Filter: keep or remove containing text

Remove lines containing drops every row that matches your keyword — like a mini grep in the browser. Keep lines containing does the opposite, which is ideal for pulling ERROR rows from a log. Toggle case sensitive when letter case matters (HTTP vs http). Leave filter text empty to skip this step entirely.

Sort, reverse, and order

Sort A→Z or Z→A alphabetically. Ignore case when sorting groups “Apple” and “apple” together. Reverse lines flips top to bottom without alphabetical sorting — useful when a chat export arrived newest-first and you want chronological reading order.

Join, split, and reflow

Join lines merges every row with your separator — space, comma, semicolon, or a custom string. Remove line breaks flattens to spaces for prose cleanup. Split modes break text into sentences, fixed character widths, or a custom delimiter. Reflow (add line breaks) wraps long paragraphs at a chosen width — the Prose preset uses 72 characters for readable email copy.

Processing order (fixed pipeline)

Line Tools applies options in a fixed sequence:

  1. Normalize line endings for internal processing
  2. Remove blank lines (optionally treating whitespace-only rows as blank)
  3. Filter lines by keep/remove keyword match
  4. Deduplicate with stable first-seen order
  5. Sort alphabetically or reverse line order
  6. Join lines, remove breaks, split, or add soft wraps
  7. Restore your chosen line-ending style (preserve, LF, or CRLF)

Because filter runs before dedupe, you can keep only ERROR lines and then remove duplicates among them in one pass.

Presets for common jobs

  • Email paste — remove blank and whitespace-only lines
  • List cleanup — dedupe, sort A→Z ignoring case, LF endings
  • CSV prep — dedupe without sorting, LF endings
  • Prose reflow — join hard breaks, then wrap at 72 characters
  • Log filter — remove blanks, keep lines containing your keyword (case insensitive)

Presets are starting points. Add a filter keyword or switch sort direction after applying one.

Line Tools vs Whitespace Cleaner and Line Counter

The Whitespace Cleaner fixes spacing inside each line: double spaces, NBSP, zero-width characters, PDF mid-sentence joins, tab conversion. It can collapse or remove blank lines, but it does not dedupe, sort, filter by keyword, or reflow paragraph width. When both spacing and list structure are broken, run Whitespace Cleaner first, then Line Tools.

The Line Counter measures lines, words, and characters without changing text. Use it to verify poetry line limits, README length rules, or homework word counts after Line Tools shapes your content. It answers “how much?” — Line Tools answers “in what order and shape?”

For character-level cleanup — emoji, smart quotes, accents — use the Character Cleaner. For casing changes after sorting names, follow with the Case Converter.

Step-by-step: dedupe and sort a contact list

  1. Paste your list into the Line Tools input box.
  2. Enable Treat whitespace-only as blank and Remove blank lines.
  3. Turn on Unique lines (keep first) to drop duplicates.
  4. Choose Sort A→Z with Ignore case on for readable alphabetical order.
  5. Copy the output and paste into your spreadsheet or mail-merge tool.

Step-by-step: filter a log file

  1. Apply the Log preset or manually enable Remove blank lines and Treat whitespace-only as blank.
  2. Set Filter mode to Keep lines containing and enter ERROR (or your token).
  3. Leave case sensitivity off unless your log uses mixed-case level names.
  4. Optionally enable Unique lines if the same error repeats thousands of times.
  5. Copy the filtered rows into a ticket or summary email.

Common mistakes to avoid

  • Deduplicating before filtering — the pipeline filters first, but if you run the tool twice manually, filter before dedupe in your workflow thinking too.
  • Sorting when order matters — use stable unique without sort when sequence carries meaning (timeline, priority).
  • Expecting space collapse here — double spaces inside a line need the Whitespace Cleaner.
  • Joining CSV rows with commas blindly — if fields contain commas, fix structure in a spreadsheet; Line Tools joins whole lines, not columns.
  • Using Line Counter to clean — counting tools never modify text; always process first, then measure.

Benefits of browser-based line processing

  • Full suite in one place — sort, filter, join, and dedupe without hopping websites
  • Stable unique preserves first-seen order unlike many online dedupe tools
  • Whitespace-only blank detection catches lines other removers miss
  • Private processing — lists of emails, client names, and internal SKUs never leave your device
  • Composable with other WriteWithin text utilities in seconds

Real-world use cases

Newsletter and chat lists: dedupe before translating or mailing so recipients do not get the same reminder twice. Inventory and SKU exports: sort alphabetically, remove blanks, verify count in the Line Counter. PDF paragraphs: join broken lines with Remove line breaks, then reflow — or run Whitespace Cleaner PDF preset first for mid-sentence joins. Developer snippets: reverse stack traces, filter stack frames containing your package name, dedupe repeated warnings.

Teachers splitting reading passages by sentence, marketers shuffling hashtag lists for A/B caption tests, and researchers trimming bibliography dumps all share the same need: line-level control without opening a scripting environment. Line Tools fills that gap on machines where Python or shell access is blocked but the browser is always available.

Common questions

What is the difference between blank lines and whitespace-only lines? Blank lines have no characters. Whitespace-only lines contain spaces or tabs. Enable Treat whitespace-only as blank to remove both.

Do unique lines keep the original order? Yes. The first occurrence of each line stays; later copies drop. Order among unique lines is unchanged.

Is my text uploaded? No. Line Tools run entirely in your browser.

Can I count lines after processing? Yes. Paste the output into the Line Counter to confirm limits.

Should I clean spaces before or after line work? Whitespace Cleaner first when intra-line spacing is messy; Line Tools second for structure.

سوالات متداول

تفاوت بین خطوط خالی و خطوط خالی با فاصله چیست؟

خطوط خالی هیچ کاراکتری ندارند. خطوط خالی با فاصله فقط حاوی فضای خالی هستند. برای گرفتن هر دو، گزینه Treat space- only به صورت خالی را روشن کنید.

آیا خطوط منحصر به فرد نظم اصلی را حفظ می کند؟

بله. خطوط منحصر به فرد اولین رخداد هر خط را حفظ می کند و نظم را حفظ می کند - لیست شما را به هم نمی زند.

آیا متن من آپلود شده است؟

خیر. ابزارهای خط به طور کامل در مرورگر شما اجرا می شوند. متن هرگز از دستگاه شما خارج نمی شود.

گزینه ها به چه ترتیبی اجرا می شوند؟

خط لوله ثابت: انتهای خط را عادی کنید، مدیریت خالی، فیلتر کلمه کلیدی، خطوط منحصربه‌فرد، مرتب‌سازی یا معکوس کردن، سپس پیوستن/تقسیم/افزودن وقفه‌ها.