Skip to content
CaseConverterHQ

Reverse text

Read it backwards. Reversing the text flips the characters of each line; reversing the line order flips the lines and leaves the words alone. Both buttons are below.

Change the case

Programmer cases

Lines and spacing

Paste some text and choose a conversion.

Words
0
Characters
0
No spaces
0
Sentences
0
Paragraphs
0
Lines
0
Read time
0 sec

Nothing you paste leaves your browser — every conversion runs on this page. Check this before you rely on it. This text converter is provided free and without warranty, and its results are not professional advice.

Two different things called reversing

Reversing the characters turns stressed into desserts. Reversing the lines takes a list and puts the last entry first, leaving every line readable. They are different operations and people ask for both under the same name, so both are here as separate buttons.

Character reversal here works line by line, so a multi-line block keeps its lines in place while each one is flipped. Run both buttons in sequence if you want the whole thing turned inside out.

Reversing characters is harder than it looks

The obvious implementation splits the string into an array and reverses it, and that corrupts anything outside the basic multilingual plane. Emoji are stored as two UTF-16 units; reverse the units and you get two isolated surrogate halves, which display as replacement squares. Hello 👋 world comes back broken.

This tool iterates over code points instead, so emoji, CJK characters and mathematical symbols survive. What no character-level reversal can fix is combining marks — an accent stored as a separate combining character will detach from its letter and attach to the one that was previously in front of it. Text using precomposed accented characters, which is what you get from a normal keyboard, is fine.

Right-to-left text is a category of its own: reversing Arabic or Hebrew produces something a browser will then re-order for display, so the result on screen rarely matches what you expected. There is no useful answer there, only a warning.

Worked examples

Run through the same code the button runs, so the examples cannot drift from the tool.

InputReverse text
never odd or evenneve ro ddo reven
Hello 👋 worlddlrow 👋 olleH
stresseddesserts

Common questions

How do I write text backwards?

Paste it in and click Reverse the text. Each line has its characters flipped, so "stressed" comes back as "desserts".

Can I reverse the order of lines instead of letters?

Yes — use the Reverse line order button. It puts the last line first and leaves every line readable.

Does reversing break emoji?

Not here. Reversal works on whole characters rather than UTF-16 units, so emoji and other astral characters stay intact. Separately-stored combining accents can still detach.

Other text tools