jump totool workspace
ToolHub

Row processing tools

Sort, deduplicate, filter and organize text by line.

Runs the entire process locally
views
—
favorites
—

Enter by line

4 lines · UTF-8Loading…

Result

2 lines · UTF-8Read only results

input line

4

Output line

2

Removed

2

Tool description and FAQ

Tool Guide

01Process each row in a fixed order

The processing sequence is to remove leading and trailing blanks, remove blank lines, remove duplicates, sort, reverse, and finally add numbers, prefixes, and suffixes. The options take effect in real time and will not modify the original text in the input area.

02Sorting and deduplication

The entire line of text after deduplication processing is matched exactly and is case-sensitive. Sorting uses zh-CN's number-aware comparison, item2 is usually ranked before item10; the input order is retained when not sorted, and the reversal is performed after sorting.

03File and local processing

Text files can be opened or dragged in, up to 5 MB in size. The editing area supports line numbers and search, and the output can be copied or downloaded. The content is only processed in the current browser and is not uploaded or automatically saved. Please save important content before refreshing or loading examples.

FAQ

Q1Why are there still similar rows after turning on duplication removal?

Deduplication and exact text matching. The leading and trailing spaces, letter case, non-breaking spaces, or combining characters may be different. You can enable whitespace removal first and then check.

Q2Why is numerical sorting not character-by-character order?

Sorting has numeric comparison enabled, and numeric fragments are treated numerically aware. If you just want to keep the original order, choose No Sorting.

Q3Why does numbering start over after sorting?

Numbering is the last step and is generated starting from 1 in the output order to ensure that the serial numbers are continuous after deduplication, filtering and reversal. It does not preserve the original line number entered.