Text Reverser
Reverse characters, words or lines safely.
Use the Text Reverser tool
What this text reverser does
Text Reverser flips text in three ways: characters, word order or line order. Character reversal is the tricky one, because a naive implementation splits emoji and accented letters into partial code units and produces broken glyphs.
This tool uses Intl.Segmenter to iterate grapheme clusters where the browser supports it, so a family emoji or a letter with a combining mark stays intact when the string is reversed. Word and line modes simply reorder existing chunks.
Why use it
- Create backwards text for puzzles or visual effects.
- Check whether a string is a palindrome.
- Reverse log order to read the newest event first.
How to use it
- 1Paste the text.
- 2Choose characters, words or lines.
- 3Copy the reversed output.
Worked examples
Characters
Input
stressed
Output
desserts
Lines
Input
first second third
Output
third second first
Common mistakes
- Reversing an emoji with a simple split("") and getting replacement characters.
- Reversing right-to-left scripts and expecting the visual order to look correct.
- Using line reversal on CSV data, which reverses the header to the bottom.
Frequently asked questions
Will emoji survive character reversal?
Does reversing text make it private?
Can I reverse each line separately?
Related tools
All toolsCase Converter
Switch between nine letter cases without retyping.
Text Diff Checker
Line-by-line differences between two texts.
Whitespace Remover
Trim, collapse and remove unwanted whitespace.
JSON Formatter
Beautify or minify JSON, with precise error positions.