Sort Text Lines
Sort lines A–Z, Z–A, naturally by number, by line length, reverse order, or random shuffle.
Open ToolReverse characters (emoji-safe), word order, line order, or check palindromes.
Palindrome Check: —
Each output panel above updates locally in real time as your text changes. Here is what every metric or transformation produced by Reverse Text Generator represents:
A Reverse Text Generator flips characters, words, or entire line sequences backward while using Unicode grapheme cluster awareness so multi-byte characters never fracture into broken symbols.
Developers use reversed strings for algorithm QA and bidirectional testing, editors flip "First Last" columns into "Last First" line-by-line, and puzzle makers verify clean palindromes—tasks where naive `.split("").reverse()` scripts fail badly on accented marks and emojis.
In `Reverse Characters`, `Intl.Segmenter` extracts intact grapheme clusters before reversing the array, preserving skin-tone modifiers, flags, and combining accents intact (`naïve 👋` -> `👋 evïan`). `Reverse Word Order` splits whitespace globally, whereas `Reverse Words per Line` flips words inside each row while retaining newline boundaries.
`Reverse Line Order` keeps words and characters inside each row untouched and simply flips rows bottom-to-top—equivalent to chronological log inversion. Meanwhile `isPalindrome` strips non-letter/digit characters to evaluate phrases like `"Never odd or even"`.
Uses grapheme-cluster reversing (`getGraphemes(str).reverse().join("")`) instead of UTF-16 code-unit reversal (`split("")`) so surrogate pairs never swap into invalid characters (`\uFFFD`).
Palindrome detection filters down to Unicode letters and numbers (`[\p{L}\p{N}]`) and requires at least 2 alphanumeric characters before flagging a positive match.
Explore Next: Sort Text Lines for alphabetical, natural numeric, or length-based sorting • Character Counter to verify grapheme vs UTF-16 string counts • Browse all 30 text tools
Input: Café 🚀
Output / Insight: Reverse Characters outputs "🚀 éfaC"—keeping both the rocket emoji and accented "é" intact.
Input: Jane Doe
Rajiv Mehta
Output / Insight: Reverse Words per Line outputs "Doe Jane" and "Mehta Rajiv" cleanly on their separate lines.
Older tools split UTF-16 strings byte-by-byte with `.split("")`, swapping high and low surrogates backward. Using `Intl.Segmenter` grapheme segmentation keeps every emoji cluster together.
Reverse Word Order flips every word across your entire text into one stream; Reverse Words per Line keeps each line independent and flips words only within that row.
It lowercases the text and keeps only letters and digits before comparing forwards vs backwards, so "Madam, in Eden, I'm Adam" registers accurately.
Yes—click Reverse Line Order to flip lines from bottom to top verbatim.
Sort lines A–Z, Z–A, naturally by number, by line length, reverse order, or random shuffle.
Open ToolTransform text into UPPER, lower, Sentence, Title, aLtErNaTiNg, camelCase, or snake_case.
Open ToolTrack characters with and without spaces, grapheme clusters, emojis, and platform limits.
Open ToolSanitize copied text: strip HTML, smart quotes, URLs, emails, emojis, and extra whitespace.
Open Tool