Text Utilities
A comprehensive text manipulation toolkit. Get instant character, word, line, sentence, and paragraph counts. Perform common operations like removing duplicate lines, sorting alphabetically, reversing line order, shuffling, trimming whitespace, removing empty lines, and converting case. All operations work in-place for fast iterative text processing.
How to Use
- 1
Paste Your Text
Enter or paste the text you want to analyze or transform into the input area.
- 2
View Statistics
See instant counts for characters, words, lines, sentences, and paragraphs.
- 3
Apply Transformations
Click any action button to transform the text: sort lines, remove duplicates, reverse, shuffle, trim, and more.
Examples by Niche
Paste a list of emails, remove duplicates, sort alphabetically, and copy the clean list
Paste log lines, remove empty lines, sort, and remove duplicates to find unique entries
Paste your article to get word and character counts for meeting length requirements
Frequently Asked Questions
How are words counted?
Words are counted by splitting text on whitespace. Multiple consecutive spaces, tabs, and newlines are treated as a single separator. Empty input returns zero.
What does Remove Duplicate Lines do?
It keeps only the first occurrence of each unique line, removing all subsequent duplicates. This is useful for cleaning up lists, log files, or data sets.
Can I undo an operation?
Operations modify the text in place. You can use your browser undo (Ctrl+Z) in the textarea to reverse the last change. For safety, copy your original text before applying transformations.
How does the sort operation order lines?
Lines are sorted alphabetically using Unicode code points, which means uppercase letters sort before lowercase (A-Z before a-z) and numbers sort before letters. This matches the default sort behavior of the Unix "sort" command and most programming language sort functions.
Related Tools
AI Token Counter
Estimate token counts and API costs for GPT-4, Claude, and other AI models.
Regex Tester
Test regular expressions in real-time with match highlighting and capture group details.
Diff Checker
Compare two texts side by side and highlight added, removed, and unchanged lines.
HTML to Image
Render HTML and CSS code as a downloadable PNG image in your browser.
Timestamp Converter
Convert Unix timestamps to human-readable dates and vice versa with timezone support.
Cron Expression Generator
Build cron expressions visually with human-readable explanations and common presets.