📝 Text & Content Free Forever

Text Reverser, Reverse Text, Words, or Lines Free

This text reverser flips your text four different ways: reverse every character, reverse word order, reverse line order, or reverse the letters inside each word while keeping word order intact. Paste, choose a mode, and copy the result instantly, no sign up needed. This text reverser is free and needs no signup.

Your Text
Reverse Mode
About This Tool

How this text reverser handles four reversal modes without breaking emoji

Reversing a string looks like a solved problem until you try it on real text with emoji, accented letters, or multi word sentences you want mirrored word by word rather than letter by letter. This text reverser separates those concerns into four explicit modes, and its core reversal function is written specifically to avoid the most common bug in naive string reversal code: breaking apart characters that are stored as pairs in memory.

All four modes run instantly in your browser against whatever you type. Nothing is sent to a server.

The surrogate pair problem, and how this tool avoids it

JavaScript strings are encoded in UTF-16. Most characters fit in one 16 bit code unit, but characters outside the Basic Multilingual Plane, which includes most emoji, are stored as a surrogate pair: two 16 bit code units that only mean something when read together. The classic reversal bug is s.split('').reverse().join(''), which splits on code units, not characters. Run that on a string containing an emoji and the two halves of its surrogate pair get separated and reversed independently, corrupting the emoji into mangled replacement characters.

// the reversal function used by this tool var seg = new Intl.Segmenter(undefined, { granularity: 'grapheme' }); function revStr(s){ return Array.from(seg.segment(s), function(x){ return x.segment; }).reverse().join(''); }

Avoiding split surrogate pairs is only half the job. Many characters you see as one are several code points: a family emoji is four person emoji glued with zero width joiners, a flag is two regional indicator letters, a thumbs up with a skin tone is two code points, and an accented letter can be a plain letter plus a combining accent. Reversing code points, which is what Array.from(s).reverse() does, pulls those apart and moves accents onto the wrong letter.

This tool reverses grapheme clusters, not code points. It uses the browser's Intl.Segmenter, which follows the Unicode text segmentation rules, so every user perceived character is kept whole and moved as one unit. Families, flags, skin tones and accents all survive. Plain text without such characters takes a faster path, so even very long documents reverse quickly.

The four modes

Characters Reverses every character in the entire input. With the preserve line breaks option on, each line is reversed independently and line order is kept; with it off, the whole block including its line breaks is reversed as one long string, which also flips line order.
Words Splits each line on whitespace, filters out empty tokens, reverses the resulting array of words, and rejoins with single spaces. Word order flips, letters inside each word stay untouched.
Lines Splits the whole input on newlines and reverses the order of the lines themselves with a plain array reverse. The last line becomes the first.
Each word Uses replace(/[^\s]+/g, word => revStr(word)) to reverse the letters inside every word while leaving word order and spacing untouched. This is the mode people usually mean when they say scramble each word.

A worked reversal

Mode"Hello world 🎉" becomes
Characters🎉 dlrow olleH
Words🎉 world Hello
Each wordolleH dlrow 🎉

Palindrome detection, built in

How it checks

The input is lowercased, accents are removed and everything that is not a letter or digit is dropped, in any alphabet, then compared against its own reversal. Spaces and punctuation are ignored, so "A man, a plan, a canal, Panama" correctly registers as a palindrome.

When it stays silent

Inputs shorter than two cleaned characters return no verdict at all rather than a false positive, since a single character or empty string being a palindrome is not a meaningful result worth displaying.

Character reversal Word order reversal Line order reversal Per word letter reversal Palindrome check

Where reversal is actually useful

Building a mirrored watermark for a document, generating a word puzzle where letters need scrambling within each word, checking a phrase for a palindrome before using it as a party trivia question, reversing lines in a log file that were appended oldest last, and testing whether a piece of UI text still displays correctly when its character order is flipped for right to left layout debugging.

Three ways to reverse text

Reversing characters turns hello world into dlrow olleh. Reversing word order turns it into world hello. Reversing lines keeps each line intact and flips their order, which is handy for turning a newest first log into oldest first.

A word or phrase that reads the same after reversing its characters, such as level or racecar, is a palindrome.

Common Questions

FAQ: Text Reverser

Reversing characters flips the entire string into a mirror image, "Hello world" becomes "dlrow olleH," which usually isn't readable. Reversing word order keeps each word spelled correctly but swaps their positions, so "Hello world" becomes "world Hello," which reads as normal words in a new order.

When checked, character reversal happens independently within each line, so line five stays line five, just spelled backward. When unchecked, the entire block of text is reversed as one continuous string, which also flips the overall line order since line breaks get reversed along with everything else.

Yes. Below the text reverser tells you whether your input is a palindrome. It ignores spaces, punctuation, letter case and accents, so A man, a plan, a canal, Panama counts as one. Inputs with fewer than two letters or digits get no verdict.

Yes, this text reverser reverses text using Unicode grapheme clusters rather than raw string indexing, so emoji with skin tones, family emoji, flags and letters with combining accents stay whole in the reversed output.

It spells every word backward while keeping sentence structure and word order intact, useful for puzzles, word games, testing text parsing logic, or creating stylized captions where individual words appear scrambled but the sentence flow stays recognizable.

Yes, there's no character limit, paste as much text as you need and it processes instantly since everything runs locally in your browser rather than being uploaded to a server.

Reverse Line Order flips the position of lines but doesn't renumber them, so if your list has manual numbers typed into each line, those numbers will stay attached to their original line and end up out of sequence. Remove manual numbering first if you want a clean reordered list.

No, all reversing happens locally in your browser using JavaScript, nothing you type or paste is sent to a server, logged, or stored anywhere.

Paste it into the tool above and choose reverse characters. In JavaScript, split it into characters, reverse the array and join it again.

Choose the reverse lines mode. The last line becomes the first and each line stays unchanged.

A word, phrase or number that reads the same forwards and backwards, such as noon or 12321.