Trim, dedupe, and sort lines
A common log/list cleanup chain. Each step is inspectable: trimming first makes duplicate detection consistent, and the final output is a sorted unique list.
What it solves
Clean a list: trim whitespace from every line, remove duplicates, and sort the result.
Input → Output
Text Trim & Clean input → Sort & Unique output across 2 steps.
Runs in
1–2 minutes · fully local in your browser.
Before you start
- A text file or list with one item per line
The pipeline
-
Remove empty lines, trim whitespace, collapse spaces. Free, private, 100% client-side.
-
Sort lines alphabetically, numerically, by length, or naturally; deduplicate; reverse or shuffle. Free, private, and 100% client-side.
Params: dedup=true
Runs locally in your browser. The recipe defines the pipeline only — your input never leaves this tab.
▶Run this workflow
Enter your input below and click Run. All processing happens locally in your browser — nothing is uploaded.
Pipeline progress
- Text Trim & Cleantext-trim
- Sort & Uniquesort-unique
Sample input
banana apple banana cherry
Expected output
apple banana cherry
This pair is executed against the real tools at build time (tests/unit/recipes.test.ts) — the expected output is verified, not illustrative.
Related workflows
You might also need
Workflows sharing tools or topics with this recipe.