All tools

Line Operations

Text

Sort, deduplicate, reverse, shuffle, and transform text lines

A grab bag of the line-level operations you'd otherwise reach for a quick script to do: sort (alphabetical or numeric, since alphabetical alone would put "10" before "2", so numeric mode exists for a reason), deduplicate (with a case-insensitive toggle for when "Foo" and "foo" should count as the same line), reverse, and shuffle. It's aimed at cleaning up a list before pasting it into a config file, spreadsheet, or demo dataset: stripping repeats from a merged CSV column, or randomizing a list of test names before assigning them in an A/B test. It handles files up to tens of thousands of lines comfortably; beyond that, everything runs on the main thread in the browser and starts to feel sluggish, at which point a real script is the better tool. Nothing you paste is sent anywhere.

sortdedupelinestext

How to use Line Operations

  • 1.Paste a list and use sort to alphabetize or numerically order lines before pasting them into a config file or spreadsheet.
  • 2.Use deduplicate to strip repeated lines from a log export or merged CSV column without writing a script.
  • 3.Use shuffle to randomize a list of test data rows or names before assigning them in a demo or A/B test.

Frequently asked questions

Is my text sent anywhere?
No, all line operations run locally in your browser's JavaScript engine.
Does sort handle numbers correctly, or just alphabetically?
Both are supported — you can choose alphabetical or numeric sort, since alphabetical sort alone would put "10" before "2".
Is deduplication case-sensitive?
Yes by default, but there's a toggle for case-insensitive matching if "Foo" and "foo" should be treated as the same line.
Can it handle very large files?
It works fine for files up to tens of thousands of lines; beyond that, processing happens on the main thread and may feel sluggish — a script-based approach is better for huge files.

Use via API, SDK, or MCP

cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/line-ops \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"input":"banana\napple\ncherry\napple","operation":"dedupe","trim":false}'

Get an API key from your dashboard · Full API docs →