텍스트
Sort & Dedupe Lines
텍스트 줄을 알파벳순으로 정렬하고, 중복 줄, 빈 줄, 불필요한 공백을 제거.
This tool sorts a list of lines alphabetically and removes duplicates and blank lines — a routine cleanup that's slow and error-prone to do by hand.
How to use it
- Paste text (one value per line) and sorting and deduplication happen instantly.
- Pick an order (ascending, descending, or natural) depending on the kind of data.
- Turn on removal of blank lines and extra whitespace to get a clean result in one pass.
Common uses
- Turning a list of email addresses or usernames into a unique, sorted list before importing it.
- Sorting a list of files or versions with numeric parts in natural order (file2 before file10).
- Quickly cleaning up a list copied from a spreadsheet or document, removing duplicates and stray blank lines.
Things to keep in mind
Plain alphabetical sorting puts "file10" before "file2", since it compares strings character by character — natural sort is needed for the expected order with numbers.
Duplicate removal is case-sensitive by default — "Text" and "text" count as different lines unless the text is normalized to one case first.
자주 묻는 질문
대소문자를 구분해서 정렬할 수 있나요?
옵션으로 대소문자 구분 정렬과 대소문자 구분 안 함 정렬 중 선택할 수 있습니다. 구분 안 함을 선택하면 "Apple"과 "apple"이 같은 기준으로 비교됩니다.
중복 줄은 어떤 기준으로 제거되나요?
중복 제거 옵션을 켜면 완전히 동일한 줄(대소문자 구분 안 함 옵션이 켜져 있으면 대소문자 차이도 무시)만 남기고 나머지는 제거되며, 공백 다듬기와 빈 줄 제거 옵션도 함께 적용할 수 있습니다.
입력한 목록이 어딘가로 전송되나요?
아니요. 정렬과 중복 제거는 브라우저 안에서 자바스크립트로 처리되며 서버로는 아무것도 전송되지 않습니다.
알파벳순 정렬에서 왜 "10"이 "9"보다 앞에 오나요?
알파벳순(사전식) 정렬은 문자열을 숫자가 아니라 텍스트로 취급해 문자 하나하나 비교합니다: "1"이 사전순으로 "9"보다 작기 때문에 "10"이 "9"보다 앞에 옵니다. 숫자 순서를 원한다면 먼저 문자열을 숫자로 파싱해야 합니다.
자연 정렬(natural sort)로 정렬할 수 있나요?
자연 정렬은 문자열 안의 연속된 숫자를 숫자로 인식하고 나머지는 텍스트로 비교합니다. 그 덕분에 "file2.txt"가 "file10.txt"보다 앞에 오며, 텍스트 접두사가 붙은 파일명이나 버전명을 정렬할 때 유용합니다.