
Bulk replace text with optional regex and case matching.
Sort, dedupe, reverse, trim and shuffle lines of text in one click.
Your files never leave your device. Everything runs in your browser.
Line Tools applies ten one-click clean-up operations to a list: sort A→Z or Z→A, remove duplicates, reverse the order, shuffle, trim spaces, remove empty lines, number lines, strip numbering, and join everything into one line. Paste one item per line and click an operation — the list in the box is rewritten on the spot.
It handles the small chores that come up constantly with list-shaped text: tidying a column copied out of a spreadsheet, deduplicating entries, reversing an export, collapsing indentation, numbering steps, or shuffling names for a draw. Each button works on the current content of the box, so operations chain — sort, dedupe, then number, for instance.
A line counter sits next to the buttons so you can check the list before and after cleaning. A sort of “banana, Apple, cherry, 10, 2” comes back as “10, 2, Apple, banana, cherry”, and deduplicating “b, a, b, c, a” leaves “b, a, c” — first occurrences kept.
It is alphabetical and locale-aware, comparing text rather than number values, so “10” comes before “2”. Pad numbers with zeros or sort numeric data in a spreadsheet if that matters.
The first occurrence; later exact copies are dropped. The comparison is case-sensitive and does not ignore surrounding spaces, so “apple”, “Apple” and “apple ” are three different lines.
Neither. It is a Fisher–Yates shuffle driven by JavaScript's Math.random, so the result changes on every click and cannot be reproduced or audited. For anything that must be provably fair, use a dedicated random draw instead.
They stay in the list for sort, reverse, shuffle, number and join, and duplicates of blank lines are merged like any other line. The Remove empty button drops them, including lines that contain only spaces.
The counter splits on newline characters, so a trailing newline at the end of the text counts as an extra empty line. Even an empty box shows “1 lines” for the same reason.
No. Each operation rewrites the text immediately and there is no undo, so keep the original list in a file or another tab until the result is what you want.
Related text tools: Find & Replace, Word Counter, Regex Tester, Text Diff Checker.
Every operation runs on the text in your browser; the list is never uploaded.