文本去重排序
UpBox优盒工具箱,免费在线文本去重工具,按行去重并支持忽略大小写、去空格、删空行,可按字母、数字或长度排序并导出 TXT。
无需注册 · 数据不上传No sign-up · nothing uploaded
原始文本Original text
去重结果Deduplicated result
原始行数0
去重后0
移除行数0
粘贴文本后自动处理
本工具所有运算在本地浏览器完成,你的文件、文本不会上传到服务器
工具介绍
文本去重排序按行处理内容:重复行只保留首次出现,可同时去掉首尾空格、删除空行、忽略大小写差异。 The line deduplicator keeps the first occurrence of each line, with optional whitespace trimming, blank-line removal and case folding.
去重后还能按字母、数字大小或字符长度排序,适合整理关键词表、邮箱列表、商品编码等逐行数据,结果可直接复制或导出 TXT。 After deduplication you can sort alphabetically, numerically or by length — handy for keyword lists, email lists or product codes, with copy and TXT export.
- 按行去重Line-level deduplication
- 忽略大小写Case-insensitive matching
- 去空格与空行Whitespace and blank handling
- 四种排序方式Four sort modes
- 复制与 TXT 下载Copy and TXT export
使用说明
- 把每行一条的文本粘贴到左侧输入框。Paste one item per line into the left box.
- 按需要勾选去空格、删空行、忽略大小写。Enable trimming, blank removal or case folding as needed.
- 选择排序方式,默认保持原顺序。Choose a sort mode; original order is the default.
- 核对行数统计,复制或下载结果。Check the line counts and copy or download the result.
常见问题
重复行保留哪一条?Which duplicate is kept?
保留首次出现的那一条,后面的重复行计入“移除行数”。The first occurrence is kept; later copies count as removed.
忽略大小写后原样会变吗?Does case folding change the output?
不会。只用于判断是否重复,输出仍保留首次出现时的原始大小写。No. It only affects duplicate detection; output keeps the original casing of the first occurrence.
空行怎么算?How are blank lines counted?
勾选“删除空行”时所有空行都被移除并计入移除;不勾选则原样保留。With “Drop blank lines” on, every blank line is removed and counted; otherwise they stay.
排序会把数字按文本排吗?Does sorting treat numbers as text?
选“按数字大小”时会按数值排序,非数字行排在最后;其他方式按文本比较。“Numeric” compares values and pushes non-numeric lines last; other modes compare as text.