Line Tools (Sort & Dedupe)
Sort your text line by line, drop duplicate or empty lines, or trim the whitespace around each one. Handy for tidying lists and logs. Everything runs in your browser, so your text stays with you.
Click a chip to load a sample and automatically run the suggested operation. Press another button afterwards to combine them.
Each button applies its operation to the text above. Press them in sequence to combine operations.
How to Use Line Tools
Paste multi-line text into the box above, then press an operation button to apply it to the current content. The result replaces the text in the same box, so you can press buttons one after another to combine operations. The line count shown above updates live as you paste or edit the text.
New here? Try the "Examples (click to try)" chips below the input box. Each one loads a sample and automatically runs a matching operation (remove duplicates, add numbering, drop empty lines, and so on), so you can see right away how the text changes.
Example: Remove duplicates and sort
Say you start with this list of names (input):
Sato
Suzuki
Sato
Takahashi
SuzukiPress "Remove Duplicates" to drop the repeats, then "Sort Ascending", and you get this (output):
Sato
Suzuki
Takahashi- Sort Ascending / Descending: Reorder the lines alphabetically and numerically, up or down.
- Shuffle: Randomize the order of the lines (an even shuffle using the Fisher–Yates method).
- Remove Duplicates: When the same line appears more than once, keep only the first occurrence.
- Remove Empty Lines: Drop blank lines (or lines containing only whitespace).
- Trim Whitespace: Strip leading and trailing spaces and tabs from each line.
- Ignore case: When on, sorting and duplicate removal stop distinguishing upper and lower case.
Handy For
- Cleaning a list of email addresses or IDs by removing duplicate entries
- Sorting logs or error messages so identical lines group together
- Stripping out the blank lines that pile up after copy-pasting
- Putting a list of names or terms into alphabetical order