Skip to main content
WizTools123
WizTools123
Free Online Tools

Tool Categories


Text Tools New Tool

Free Online Text Reverser, Backwards Text, Words and Lines

Reverse text four different ways: the whole thing backwards, each line backwards on its own, the word order flipped, or the letters inside every word flipped while the words stay put. Emoji, accents and joined characters are kept whole instead of being split in half.

Free Forever Nothing Uploaded Four reverse modes Emoji safe
Free Online Text Reverser, Backwards Text, Words and Lines
Share this tool
Advertisement Slot (Top Banner) Google AdSense Unit • Responsive Banner
Text Reverser Everything happens in this tab. Nothing you paste is sent anywhere.
Your text
0 characters 0 words 0 lines
Reversed
0 characters 0 lines
Reverse
While reversing

0 characters 0 real characters 0 words 0 lines

0 characters in this text are made of more than one code unit. With the switch above off they would come out broken.

Buy Us A Coffee

Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

Buy Us A Coffee
Sponsored Content (Below Tool) Google AdSense Placement

Why split('').reverse() Breaks Emoji

The one line everyone writes, and the three places it goes wrong.

A JavaScript string is a list of UTF-16 code units, not a list of characters. Everything up to U+FFFF is one unit, so 'abc'.split('').reverse().join('') looks correct and people stop testing there. A rocket is U+1F680, which does not fit in one unit: it is stored as the pair D83D DE80. Reverse the units and you get DE80 D83D, which is not a rocket and not anything else either. Browsers draw it as two replacement boxes.

The second break is combining marks. The word café can be stored as five characters where the last one is a combining acute accent that sits on the letter before it. Reverse that and the accent lands on the letter that now precedes it, so you get an accent on the wrong letter. The third is the flag characters, which are pairs of regional indicators: reversed, a flag becomes a different flag or no flag at all.

This page uses Intl.Segmenter with granularity grapheme where the browser has it, which is the standard answer to "what counts as one character here". Where it is missing, a fallback walks the string joining surrogate pairs, combining marks, zero width joiners and regional indicator pairs into single units first. The counter above shows both numbers, so you can see the difference on your own text.

How to Reverse Text

A few steps, and nothing is uploaded.

1
Paste the text Type it, paste it, or drop a .txt file onto the left box. Nothing is uploaded; the work happens in this tab.
2
Pick what to reverse The whole text, each line separately, the order of the words, or the letters inside each word while the words keep their places.
3
Set the two switches Keep emoji whole unless you are deliberately testing what breaks, and decide whether punctuation should travel with the text or stay put.
4
Copy or download The result is ready as you type. Copy it, or save it as a .txt file with the button under the result.

What to Know About Reversing Text

Including why a plain reverse breaks emoji, and what this cannot do.

Reversing is not encryption, and it never was. Anybody can read reversed text by reversing it again, and most people can read short reversed words without any tool at all. It is useful for puzzles, for testing how software handles text, and for making a word look different; it keeps nothing secret.
Right to left scripts will not look right. Arabic and Hebrew are stored in the order they are read and laid out by the browser. Reversing the stored characters does not produce mirrored text, it produces text with the letters in the wrong order and the shaping undone. There is no sensible way to fix that here.
Leaving punctuation in place is an approximation. With that switch on, each run of letters and digits is reversed where it stands and anything else keeps its position. It reads better for most sentences, but a bracket that opened a quotation still opens it after the reverse.
Line endings are normalised. Windows text uses a carriage return and a line feed, old Mac text uses just a carriage return. Both are read correctly, and the result comes out with plain line feeds, which is what nearly everything expects today.

Key Features & Capabilities

What this tool does, and what it deliberately does not.

Four separate modes Whole text, each line, word order, or the letters inside each word. Each one is a different job and each has its own button.
Emoji kept whole Characters are counted the way a person counts them, so a rocket or a flag comes out as a rocket or a flag.
Punctuation can stay Reverse the words but leave the commas and full stops where they were, which keeps the result readable.
Lines kept or flipped Reverse inside each line but keep the lines in order, or flip the whole document from the last line up.
Live as you type No run button. The result is rewritten as you type or as you change a switch.
Nothing is uploaded The text never leaves the tab. Load the page, turn off your wifi, and it still works.

About the Text Reverser

Reversing text sounds like a one line job, and for plain English it is. The reason this page exists is everything that is not plain English: emoji, accents, flags, and the characters that modern text is full of. A reverse that works by code units cuts those in half and produces squares, and the person who wanted a party trick ends up with broken text they then have to clean.

The four modes are here because "reverse" means four different things to the people who ask for it. Someone making a puzzle wants the whole thing backwards. Someone testing a form wants each line backwards. Someone writing a Yoda joke wants the word order flipped. Someone obfuscating a word in a screenshot wants the letters inside each word flipped while the sentence still reads at a glance. Giving them all one button each is simpler than explaining the difference.

The counter under the options shows the characters as a computer counts them and as a person counts them. On text with emoji those two numbers are different, and seeing them side by side is the fastest explanation of why a careless reverse breaks. It is also useful on its own when a form says it allows 280 characters and you want to know which 280 it means.

Frequently Asked Questions

Emoji, punctuation, right to left text and line endings.

Yes, with the switch on. Emoji are stored as more than one code unit, and reversing those units produces nonsense. This page groups the units into real characters first, using the browser's own segmenter where it exists, so a rocket stays a rocket and a flag stays a flag.

Reversing the word order turns "one two three" into "three two one" with every word spelled normally. Reversing inside words turns it into "eno owt eerht", where the words stay in place and the letters flip. Both are offered because people ask for both and call both of them reversing.

Because the full stop was at the end and everything moved. If you would rather the punctuation stayed put, switch on "Leave punctuation where it is" and only the runs of letters and digits are reversed.

Drop a .txt file onto the input box and it is read in this tab. Files up to about five megabytes are comfortable; past that the browser's own text box becomes the slow part rather than the reversing.

No. It is readable by anyone who reverses it back, which is one click, and short reversed words are often readable without any tool. Use it for puzzles and tests, not for anything that matters.

Other Text Tools

Advertisement Slot (Bottom Banner) Google AdSense Unit • Responsive Banner