Text Utility Tool
Count words, reverse text, or strip duplicate lines — choose an operation and it runs locally on whatever is in the box.
The three operations
- Count words — reports how many whitespace-separated tokens the text contains, matching runs of non-space characters. Punctuation attached to a word counts as part of it; multiple spaces or newlines between words do not inflate the count.
- Reverse text — reverses the whole string character by character, including spaces and line breaks, so the last character becomes the first. It is a character reversal, not a word-order reversal.
- Remove duplicate lines — keeps the first occurrence of each distinct line and drops every later exact duplicate, preserving the original order of the lines that remain. Lines that differ only in trailing spaces are treated as different.
Worked example
Input:
one
two
two
three
Count words → 4. Reverse text → eerht\nowt\nowt\neno. Remove duplicate lines → one, two, three (the second two is gone, order kept).
Which operation to reach for
| Goal | Operation |
|---|---|
| Check a caption or meta description length | Count words |
| Make a palindrome or a quick obfuscation | Reverse text |
| Tidy a list pasted twice or merged from two sources | Remove duplicate lines |
When to use it
A quick word count for a caption or a meta description, reversing a short string for a puzzle or a sanity check, or cleaning a list where the same entry was pasted twice. Because the operation only affects the output, you can switch between the three without retyping or losing the input.
Does dedupe sort the lines?
No, it only removes repeats and keeps the first-seen order.
Does the word count match Word or Google Docs exactly?
Usually — it counts runs of non-space characters, so hyphenated or punctuated words count once.
Does reverse keep words readable?
No, every character is reversed; use it on short strings.
Is the text uploaded?
No, all three run in your browser.