# Sort & Dedupe Text - Sort Lines, Remove Duplicates Online

> Free online text tool: sort lines alphabetically or by length, remove duplicate and empty lines, trim whitespace, optionally ignoring case. Runs locally.

- URL: https://qilingtools.com/en/text-sort
- Category: Productivity (https://qilingtools.com/en/office)
- Tags: [Text](https://qilingtools.com/en/tags/text), [Productivity](https://qilingtools.com/en/tags/office)
- Last updated: 2026-10-22
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Sort and clean line-based text: alphabetical or length sort or reverse, remove duplicate and empty lines, trim each line, with optional case-insensitive sort and dedupe. Great for tidying name lists, word lists, logs and any list. All done in your browser.

## How to use

1. Paste line-based text into the box
2. Choose a sort mode and toggle dedupe, remove empty, etc.
3. Read the result and copy

## Features

- Alphabetical, length and reverse sorts
- Remove duplicates, empty lines and trim
- Case-insensitive sort and dedupe option
- Shows before/after line counts, runs locally

## FAQ

### Is sorting case-sensitive?

By default yes. Turn on "case-insensitive" and both sorting and dedupe treat cases as equal.

### Will it scramble paragraphs?

It works line by line and rebuilds from lines, so use sorting carefully if paragraph structure matters.

### Are my files or data uploaded?

No. Everything runs locally in your browser with no network upload, and is discarded when you close the page.

### Do I need to sign up or pay?

No. The site is completely free, needs no account and has no usage limits.

## Related tools

- [QiLing Mind](https://qilingtools.com/en/mindmap): QiLing Mind is a free online mind map editor: add nodes with Tab/Enter, drag to restructure, import and export XMind and Markdown, export PNG/SVG/PDF.
- [Password Generator](https://qilingtools.com/en/password): Free online random password generator: choose length, character sets and look-alike exclusions, generate several at once with a strength meter, all locally.
- [QR Code Generator](https://qilingtools.com/en/qrcode): Free QR code generator: URLs, Wi-Fi and contact cards, with a center logo, text below, dot styles, batch ZIP and Data Matrix / PDF417. Runs in your browser.
- [Word Counter](https://qilingtools.com/en/word-count): Free online word counter: live counts of characters with and without spaces, words, CJK characters, lines, paragraphs, sentences, bytes and reading time.
- [Case Converter](https://qilingtools.com/en/case-convert): Free online case and naming converter: get UPPERCASE, lowercase, Title Case, camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE at once.
- [Lorem Ipsum Generator](https://qilingtools.com/en/lorem): Free online Lorem Ipsum generator: classic Latin placeholder text or Chinese filler by paragraph, sentence or word, with one-click copy for mockups.
- [Sign & Stamp PDF](https://qilingtools.com/en/pdf/sign): Sign PDF online for free: draw a signature or upload a signature or stamp image, remove its white background and drag it onto one, all or chosen pages.
- [Barcode Generator](https://qilingtools.com/en/barcode): Free online barcode generator: Code 128 with automatic code sets, EAN-13 with its check digit and Code 39. Adjust size, quiet zone and colours; SVG or PNG.
