Text Reverser / Deduplicator
Reverse text, or remove duplicate words or lines
About Text Reverser / Deduplicator
Reverses text character by character, or removes duplicate lines or duplicate words from a list — related but distinct text-manipulation utilities in one tool.
Paste your text and choose whether you want it reversed, de-duplicated (by line or by word), or sorted, then copy the result. Use Clear to start over with different text.
Remove Duplicate Lines and Sort Lines both work on whole lines specifically — if your text doesn't have any repeated lines, or is already in order, the result will look identical to the input, which is correct, not a sign it didn't run (a confirmation message now shows exactly what happened either way). "Ignore case" and "Trim spaces" control how duplicates are matched for both the line and word removers.
Watch: Text Reverser / Deduplicator in Action
- Why does my text look unchanged after removing duplicates?
- If your text doesn't have any repeated lines or words, or is already in order, the result will look identical to the input — that's correct, not a sign the tool didn't run. A confirmation message shows exactly what happened either way.
- Does duplicate removal ignore capitalization or extra spaces?
- No — both dedupe functions compare exactly, including whitespace and capitalization. Trim extra spaces or match case first if near-identical lines or words aren't being caught as duplicates.
- Does Reverse Text break emoji or accented letters?
- No. It splits the text into user-perceived characters before reversing, so a family emoji, a flag, a skin-tone emoji or a letter with a combining accent is moved as one unit instead of being torn apart.
- What is the difference between Reverse Lines and Reverse Words?
- Reverse Lines swaps the order of the lines, so the last line becomes first, while each line's own text is unchanged. Reverse Words keeps the lines where they are and reverses the order of the words inside each one.
- Which copy is kept when duplicates are removed?
- The first one. The comparison uses a trimmed and optionally lowercased version of each line or word, but the copy that stays is the original, untouched text, so its capital letters and spacing are preserved.
- Is there a size limit on the text?
- The code sets no cap on the amount of text. Very large pastes can make the page slow, because everything is processed in your browser tab at once, so split an enormous file into parts if the page lags.
- Why does Sort A-Z leave my lines looking the same?
- They were probably already in order, and the message after the click says so. Sorting is also numeric aware, so file2 comes before file10, which can look unsorted if you expect plain character order.
How to use Text Reverser / Deduplicator
Type or paste your text into the top box, then press the button for the change you want. Reverse Text flips the characters from last to first. Reverse Lines turns the line order upside down, and Reverse Words reverses the word order inside each line while keeping the line breaks. Remove Duplicate Lines and Remove Duplicate Words keep the first occurrence of each, and Sort A-Z and Sort Z-A put the lines in order.
The result appears in a separate read-only box underneath, so your original stays untouched, and Copy places it on the clipboard. The checkboxes Ignore case (for duplicates) and Trim spaces (for duplicates) decide how repeats are matched. Clear empties both boxes. A short message after each action says what changed.
When to use it
Use Reverse Lines to turn a chronological list such as a log or changelog into newest-first order, or Reverse Text for a mirror-text puzzle, a palindrome check or a design mock-up. Remove Duplicate Words suits a pasted keyword string with repeats, while Remove Duplicate Lines cleans a mailing list or a set of web addresses.
When not to use it
It is not a translator or a right-to-left layout tool, so reversed text will not read naturally in Arabic or Hebrew, and it will not fix grammar. If you need blank lines removed, sorting by length or a shuffle, the Text Sorter is a better fit, since sorting here has no extra settings. To compare two lists against each other, use a diff tool instead.
Tips for best results
Reverse Text works on whole characters as people see them, so an emoji with a skin tone, a flag or a letter with an accent stays intact instead of splitting into pieces. For duplicates, keep Trim spaces ticked if your list has stray spaces at line ends, and tick Ignore case so Apple and apple count as one entry. The kept copy always shows its original capitalisation.
Limitations
Remove Duplicate Words joins the survivors with single spaces, so line breaks in the original are lost, while Reverse Words collapses runs of spaces and tabs inside each line. Sort A-Z compares letters without regard to case or accents, so two lines that differ only in case keep their original relative order. Only exact repeats count as duplicates, so plural and singular forms stay separate. The output is plain text only.
Privacy
Each button runs a small function on the text in the top box, inside your browser, and writes the answer into the second box on the same page. Nothing you type is uploaded or stored by the tool. Character reversal relies on the browser's own text segmentation feature. When you close the tab both boxes are emptied. The site counts that a button was used, not the words involved.
More from Text & Writing: