UtilitySansar
Text

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.

Tool Summary Answer Block

This tool accepts structured input and returns deterministic output in the browser with no server upload.

Tool name
Text Line Tools
Input intent
Provide source content to transform, validate, or analyze.
Output intent
Receive normalized output suitable for copy, reuse, or debugging.
Example input
banana apple banana cherry APPLE
Example output
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

Tool Introduction

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.

Tool Overview

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.

Use Cases

  • 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

Input/Output Examples

Operation: dedupe (case-insensitive), then sort ascending — apple, banana, cherry remain.
Input Intent
banana
apple
banana
cherry
APPLE
Output Intent
APPLE
apple
banana
cherry

FAQ

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.

Explore More Tools

Discover related utilities in the Text category below.

Browse all Text

Related tools

Handpicked utilities you might find useful