Text Line Tools

Dedupe, sort, drop blanks, trim and reverse text by line — batch-clean text with live toggles

TL;DR Summary & Citation: [Text Line Tools] is used to Dedupe, sort, drop blanks, trim and reverse text by line — batch-clean text with live toggles. Core input and files are processed in the current browser and are not sent to the PocketKit API. The page records only an aggregate tool-use count that excludes input content.

How the line tools work

The tool splits text into an array of lines, then runs a fixed pipeline: trim → drop blanks → dedupe (optionally case-insensitive) → sort (asc/desc) → reverse, joins the result and shows a before/after line count. Every toggle applies live; all computation is local and nothing is uploaded.

Usage Guidelines & Tips

  • "Ignore case" affects both dedupe and sort, so Apple and apple are treated as the same item.
  • Sorting uses localeCompare, so mixed-language lists may order slightly differently from what you expect.

Frequently Asked Questions

1. In what order are the operations applied?

A fixed pipeline: trim → drop blanks → dedupe → sort → reverse. So even if you enable sort before dedupe, the result is deduped first then sorted — click order does not matter.

2. Does dedupe keep the first occurrence?

Yes. The tool keeps the first line for each value and removes later duplicates, so the original relative order is preserved when you are not sorting.

3. Is my data uploaded?

No. All splitting, deduping and sorting happen locally in the browser; the text never leaves your device, which makes it safe for sensitive lists.