Skip to main content
eyunzhu

Text line organizer

Remove duplicate or blank lines, trim whitespace, sort naturally and add a prefix or suffix to every line, with instant preview.

Sort

Updates as you type or change an option


    
Processed in this browser. Nothing is uploaded or saved.

About this tool

Clean lists of names, codes or paths by enabling only the steps you need. Trimming precedes deduplication, and prefixes and suffixes are added last.

How to use

Paste a list and select the cleanup steps you need. Processing trims lines, removes blank lines, removes duplicates, sorts, then adds prefixes and suffixes, in that order.

Duplicates are exact whole-line matches; the first occurrence is kept. Natural sorting follows the current language and places 2 before 10. Disable sorting to retain the original order. Input limit: 2 MiB; output limit: 8 MiB.

Common questions

How can I remove duplicates without changing the order?

Enable deduplication and leave sorting off. The first occurrence is kept. Matching is case-sensitive, so Apple and apple remain separate; trimming changes the text compared first.

Why does item2 appear before item10?

Sorting compares embedded numbers naturally and uses the interface language for text. Choose no sorting to preserve order; deduplication remains an independent option.

How do I wrap each list item in brackets?

Set the prefix to [ and the suffix to ]. Each retained line becomes [item]. Check the blank-line and trimming options first; additions happen after cleaning, deduplication and sorting.

Comments

0
to join the discussion.
No comments yet.
Reply thread

Follow the complete conversation chronologically; each reply identifies the specific message it answers.