Line Tools
Batch line operations: trim whitespace, delete empty lines, order-preserving dedupe and sorting, freely combined — a cleanup tool for lists and logs.
>_ USAGE GUIDE
A batch cleaner for line-based text: trim whitespace, delete empty lines, deduplicate while preserving order, and sort — toggle the operations independently and one paste runs the whole pipeline. The highlight is order-preserving dedupe: it removes duplicate lines without disturbing the original sequence, unlike sort-based dedupe.
- Paste your list: log lines, keyword lists, or a column copied from Excel
- Toggle operations: combine trim, empty-line removal, dedupe, and sorting freely
- Copy the cleaned output: first occurrences keep their positions, extras are dropped
A typical combination: trim first, delete empty lines, then dedupe — three switches turn a messy paste into a clean list. Every switch re-runs instantly on the current text, so you can see what each operation contributes and switch one off if it removed too much. The sequence of toggles becomes your cleaning recipe: the same recipe applies to log deduplication, Excel column scrubbing, and keyword list maintenance. All processing happens locally in your browser; the text never leaves your device, and the page works offline.
>_ FAQ
Q1 · What is the difference between order-preserving dedupe and sort dedupe?
Sort dedupe reorders the lines before removing duplicates — the result is sorted but the original order is gone. Order-preserving dedupe keeps the position of each line's first appearance and only drops later repeats. Use the order-preserving mode for lists and logs where sequence carries meaning; when in doubt, choose it — it matches the intuition of "just remove the extras".
Q2 · Can I process data copied from Excel?
Yes. Multi-column data copied from Excel pastes as tab-separated lines, and this tool treats each line as a unit for dedupe and sorting. For a single column, paste directly. To dedupe by one column of several, assemble that column in Excel first, process it here, and paste the result back — rows split correctly on return.
Q3 · What exactly does trim remove?
It strips spaces and tabs from the beginning and end of each line — text copied from web pages and PDFs often carries invisible trailing whitespace that makes two visually identical lines fail to dedupe. Note that trim does not touch spaces in the middle of a line, and full-width spaces should be normalized with the Full/Half Width Converter before processing.
Q4 · How do I dedupe and sort at the same time?
Do it in two passes: dedupe with order preserved first, confirm the list is clean, then sort. Keeping the steps separate lets you verify the intermediate result — more controllable than a single combined operation, and easy to undo mentally when something looks off.
Q5 · How many lines can it handle comfortably?
Tens of thousands of lines process in milliseconds — these are simple string operations. For million-line mega-logs, prefer command-line tools such as sort -u or awk to stay kind to browser memory. Everyday lists, keyword sets, and report extracts are exactly this tool's sweet spot.