Reverse text
Reverse text by character, by word, or reverse the order of lines.
How it works
Three different things get called reversing text, so all three are here: reversing the characters in the whole string, reversing the order of words while leaving each word readable, and reversing the order of lines.
Character reversal is done over Unicode code points rather than UTF-16 units, which means emoji and accented characters survive intact. Naive reversal in JavaScript splits surrogate pairs and turns emoji into broken symbols — a bug in a surprising number of tools that do this.
This tool runs entirely in your browser. Nothing you enter is sent to a server, logged or stored, and the page keeps working with the network disconnected.
Common questions
- Will this break emoji?
- No. Reversal works over Unicode code points, so emoji and accented characters stay intact rather than being split into fragments.
- Can it reverse word order instead of letters?
- Yes — word mode reverses the order of words while leaving each word spelled normally.
Related pages
- Word and character counter Words, characters, sentences, paragraphs and reading time, counted as you type.
- Typing speed test Measure words per minute and accuracy on a one, two or five minute test.
- Remove duplicate lines Strip repeated lines from a list, keeping the first occurrence of each.
- Sort lines alphabetically Sort a list of lines A–Z, Z–A, by length, or numerically.
- JSON formatter and validator Pretty-print, minify and validate JSON, with the exact position of any error.
- Text compare Compare two blocks of text and see which lines were added, removed or changed.
- Regex tester Test a regular expression against sample text, with matches and capture groups shown.
- Case converter Convert text between upper, lower, title, sentence, camel, snake, kebab and other cases.
- Remove empty lines Delete blank lines from a block of text, optionally collapsing runs to one.
- Find and replace Replace every occurrence of a string in pasted text, with optional regex.