Back to home

Text Tools

A set of quick tools for lists and text. Paste your text, click an action as many times as you like, and undo if you go too far.

  1. Paste or type your text
  2. Click the actions you need
  3. Copy or download the result
Loading the tool...

Your files never leave your device

What you can do

Text Tools is a toolbox for lists and plain text. Paste your text, then click the actions in any order and as many times as you like: sorting, cleaning, adding, finding and filtering, joining and splitting. Counters show the lines, words and characters, and Undo goes back through your last 50 actions if a step goes wrong.

A worked example

Paste a list of six lines: apple, banana, apple, cherry, banana and an empty line. Click Remove empty lines and then Remove duplicates, and three lines remain: apple, banana and cherry. Sort them A to Z.

Next, use Add prefix and suffix with a quote before and a quote and comma after each line, or choose Join lines with a comma as separator. You get a ready list that can be pasted into code, a spreadsheet formula or a database query. If you sort lines like item10 and item2 with A to Z, item2 correctly comes before item10, because digits inside text are compared as numbers.

Limits and good practice

Every action works on the whole text, so make a copy of important data before you start. Find and replace can use regular expressions, and an invalid expression is reported instead of changing the text. Ignore case treats Apple and apple as the same when removing duplicates.

Large texts work but may feel slow in the browser, so split very large files into parts. The Download button saves the result as a text file, and Clear empties the box when you start a new job.

Frequently asked questions

Is my text uploaded?

No. Everything happens in your browser and your text never leaves your device.

How does natural sorting work?

The A to Z and Z to A sorts compare digits inside text as numbers, so item2 comes before item10. The By number sort is different: it orders lines by the number at the start of each line.

Can I undo?

Yes. Undo goes back through your last 50 actions.

Can I use regular expressions?

Yes. In find and replace turn on Use regular expression. An invalid pattern shows a message.

How do I remove duplicate lines?

Click Remove duplicates. Turn on Ignore case to treat Apple and apple as the same.

Is there a size limit?

Large texts work but may be slow. Split very large files into parts.

Related tools

Save this tool to use it later

Add this page to your browser bookmarks by pressing Ctrl + D