Text & Regex
Line Tools
Sort, dedupe, trim, shuffle and join lines, or wrap each one in quotes.
Loading the Line Tools…
About the Line Tools
Clean up lists one item per line: trim whitespace, remove empty lines and duplicates (optionally ignoring case), sort A–Z, Z–A, naturally (file2 before file10) or by length, reverse or shuffle, wrap each line in quotes, and join everything with a separator, such as for building a SQL IN list.
How to use it
- Paste your list, one item per line.
- Choose the clean-up and sort options.
- Copy the result.
Frequently asked questions
- What is natural sort?
- It orders numbers by value inside text, so item2 comes before item10.
- How do I make a comma-separated list?
- Add ' as prefix and ', as suffix, or type , in Join with.
- Is my text uploaded?
- No. Everything runs in your browser tab with JavaScript. Nothing you enter is uploaded, logged or stored, and the page works offline once loaded.