Text and list tools
Paste a list, then remove duplicates, sort, shuffle, change case, add a prefix or suffix to each line, or find and replace. Everything happens instantly in your browser.
How to use
- Paste your list into the box — every line counts as one entry.
- Tick the operations you want: trim whitespace, drop empty lines, remove duplicates.
- Choose a sort order (A-Z, Z-A, by length, numeric, reverse, shuffle) and add a case conversion if needed.
- Apply a prefix, suffix or find-and-replace, then copy the result — or press send to input to run another pass over it.
What order are the operations applied in?
Order matters, and it's fixed. Applying the same options in a different order gives a different result, so the tool always follows this sequence:
- Trim whitespace — spaces at the start and end of each line go.
- Drop empty lines — lines left empty after trimming are removed.
- Find and replace — text transformation happens here.
- Case conversion — upper, lower or title case is applied.
- Prefix / suffix — added to the start and end of every line.
- Remove duplicates — last, meaning lines are compared after all transformations.
- Sort / shuffle — the final step.
Deduplicating last is a deliberate choice: John and john become identical after a case conversion and collapse into one line. Had duplicates been removed first, the two would have counted separately.
For multi-stage work use the send to input button: it moves the output into the input box so you can build a new chain of operations on top of it.
Filtering, splitting, joining and counting
Four operations reshape the list rather than transform it. Each has a fixed place in the order:
- Split into lines runs first. It takes a one-line list such as
apple, pear, cherry, splits it at the commas into three lines, and every later operation works on those new lines. - Keep / remove lines containing runs right after trimming and ignores case: type “gmail” and lines with “Gmail” are caught too. You can use both together.
- Count duplicates takes the place of duplicate removal: it writes each line once, with the number of times it occurs in front, and puts the most frequent on top. Use it to see how often each record appears in a list.
- Join lines runs last: it gathers the result lines into a single line using the separator you type (a comma and a space, for example).
In the count result there is a tab between the number and the line, so pasting it into a spreadsheet gives you two separate columns.
The catches in removing duplicates
Deduplication is the most used operation in list work — and the one that most often gives a wrong answer. Three things to watch:
- Invisible whitespace.
[email protected]and[email protected](trailing space) are different lines. Keep "trim whitespace" on; the tool does it before deduplicating. - Letter case. Case doesn't matter in email addresses, but as text the lines differ. The ignore case option gives the right answer here.
- Which copy survives? The tool keeps the first occurrence and drops the rest. Since dedupe runs before sorting, your list's original order is preserved.
If you want to compare two separate lists and see what's in each, dedupe isn't the tool — text compare is: it shows added and removed lines separately.
Find-and-replace and regular expressions
Used plainly, find-and-replace does exactly what it looks like. Turn on the regular expression (regex) option and you can match patterns instead.
A few patterns that come up often:
| Goal | Pattern | Replace with |
|---|---|---|
| Remove a trailing comma | ,$ | (empty) |
| Collapse repeated spaces | \s+ | (a single space) |
| Remove all digits | [0-9]+ | (empty) |
| Keep only the email part | :.*$ | (empty) |
| Drop everything after @ | @.*$ | (empty) |
If the pattern is invalid the tool warns you and leaves the text alone. In the replacement field you can use capture groups like $1 and $2: the pattern (.*)@(.*) with $2 → $1 flips an address around.
To split account lines into columns you don't need regex at all: the account parser recognises emails, passwords and 2FA keys by their content.
How long a list can it handle?
Since everything runs in your browser, the limit isn't a server but your device's memory. In practice hundreds of thousands of lines work fine; files of tens of millions of lines slow the browser down.
- For very large files, splitting the list into chunks and processing them in turn is faster.
- Shuffling uses cryptographic randomness (
crypto.getRandomValues), so it's trustworthy for anything that has to be fair. For a purpose-built draw, see the giveaway picker. - Line and character counts appear under the input and output; for a fuller breakdown use the character counter.
Your text is never sent to a server or stored; close the page and nothing is left.
Glossary
- Trim
- Removing spaces from the start and end of a line. Needs to happen before deduplicating.
- Dedupe
- Keeping only the first occurrence of an identical line.
- Regular expression (regex)
- A notation for matching patterns in text.
\s+means one or more whitespace characters. - Capture group
- A parenthesised part of a regex, recalled in the replacement with
$1. - Send to input
- The button that moves the output back into the input box so operations can be chained.
Frequently asked questions
In what order are the operations applied?
First per line: trim spaces → find & replace → letter case → prefix/suffix. Then to the whole list: remove empty lines → remove duplicates → sort/shuffle. This keeps the result predictable.
Is my text sent anywhere?
No. Everything runs entirely in your browser; no data is sent to any server.
Does it work with very long lists?
Yes, it can handle tens of thousands of lines. Very large files may briefly slow the browser down.
Does letter case matter when removing duplicates?
By default yes: John and john count as different lines. Turn on ignore case and they're treated as the same, which is what you want for email lists.
Which copy stays in the list?
The first occurrence is kept and later ones dropped. Because dedupe runs before sorting, your list's original order is preserved.
Is the shuffle genuinely random?
Yes. It uses the browser's cryptographic randomness source, so it's trustworthy even for things that have to be fair, like a draw.
Can I use regular expressions?
Yes — turn on the regex option in the find-and-replace section. You can also use capture groups like $1 and $2 in the replacement. If the pattern is invalid the tool warns you and leaves the text alone.
Can I apply several operations in sequence?
Yes. The send to input button moves the output into the input box so you can build a new chain of operations.