UtilitySansar
Văn bản

Text Line Tools

A multi-purpose line manipulation tool. Sort alphabetically or by length, remove duplicate lines (case-sensitive or not), reverse the order, reverse each line's text, shuffle, strip blank lines, trim whitespace, number lines, or wrap each line with a prefix and suffix — all in one place.

Tóm tắt công cụ

Công cụ này nhận đầu vào có cấu trúc và trả về đầu ra xác định ngay trong trình duyệt, không tải lên máy chủ.

Tên công cụ
Text Line Tools
Mục đích đầu vào
Cung cấp nội dung nguồn để biến đổi, xác thực hoặc phân tích.
Mục đích đầu ra
Nhận đầu ra chuẩn hóa thuận tiện để sao chép, tái sử dụng hoặc gỡ lỗi.
Đầu vào ví dụ
banana apple banana cherry APPLE
Đầu ra ví dụ
APPLE apple banana cherry
Recent inputs0

Your last 5 inputs will appear here.

Input (total / non-blank)6 / 6
Input unique5
Output (total / non-blank)6 / 6
Output unique5
Sort A → Z
apple
APPLE
banana
banana
cherry
date

Giới thiệu công cụ

A multi-purpose line manipulation tool. Sort alphabetically or by length, remove duplicate lines (case-sensitive or not), reverse the order, reverse each line's text, shuffle, strip blank lines, trim whitespace, number lines, or wrap each line with a prefix and suffix — all in one place.

Tổng quan công cụ

Every developer and writer keeps a hidden tab open for sorting a list, deleting duplicates, or numbering rows. This tool collects the common one-liners into a single page so you don't have to hop between sites. All operations run client-side and preserve your original text — change the operation and the output regenerates instantly.

Trường hợp sử dụng

  • Sort a list of imports, dependencies, or env keys alphabetically
  • Remove duplicate emails from a contact list before importing
  • Number a checklist for a meeting
  • Reverse a stack-trace top-to-bottom for readability
  • Shuffle a list of names for random draws
  • Wrap each line of a list in quotes for code or SQL pasting

Ví dụ đầu vào/đầu ra

Operation: dedupe (case-insensitive), then sort ascending — apple, banana, cherry remain.
Mục đích đầu vào
banana
apple
banana
cherry
APPLE
Mục đích đầu ra
APPLE
apple
banana
cherry

Câu hỏi thường gặp

Is the sort stable?+
Yes. Modern browser sort implementations are stable, so equal items keep their relative order.
What's the difference between 'reverse order' and 'reverse text'?+
Reverse order flips the list bottom-to-top while keeping each line intact. Reverse text flips the characters inside every line.
Does shuffle use cryptographically secure randomness?+
It uses Math.random with Fisher-Yates — fine for non-security shuffles like sampling. For raffles or security-sensitive picks, use a dedicated secure random tool.
Are case-insensitive comparisons locale-aware?+
Yes. Sorting uses Intl.Collator-style localeCompare, so accented characters and non-Latin scripts collate correctly for your locale.

Khám phá thêm công cụ

Khám phá các tiện ích liên quan trong danh mục Văn bản bên dưới.

Xem tất cả Văn bản

Công cụ liên quan

Tiện ích được tuyển chọn có thể hữu ích cho bạn