ToolLineup

Text Reverser

This text reverser turns text backwards by characters, words, lines or sentences. Character reversal is the one that usually goes wrong elsewhere: a naive implementation walks the string one code unit at a time and tears emoji, flags and accented letters apart, because a flag is two joined code points and an accent can be a separate combining mark. This tool splits on what a reader sees as one character, so 🇳🇱 comes back as 🇳🇱 rather than as a different flag. Line and word reversal operate within each line, so a multi-line document keeps its shape rather than collapsing.

How it works

Reverses characters, words, lines or sentences. Character reversal works on what a reader sees as one character, so accented letters, emoji and flags stay intact rather than coming apart into their component code points.

Line and word reversal work within each line, so a multi-line document keeps its shape.

Everything runs in your browser — nothing you paste is sent to a server.

Text input
Paste or type your text here…
Reversed

0 lines in · 0 out · 0 characters.

Why character reversal is harder than it looks

"Reverse the characters" sounds like a one-liner, and in ASCII it is. Outside ASCII, what a reader calls one character can be several code points:

  • A flag such as 🇳🇱 is two regional indicator symbols. Reverse them and you get a different flag.
  • A family emoji is several emoji joined by zero-width joiners. Reversing scatters them into separate people.
  • An accented letter may be stored as a base letter plus a combining mark. Reversing moves the accent onto the wrong letter.

This tool splits text into grapheme clusters — the unit a reader perceives — so all three survive the trip.

Four units, four uses

Characters for puzzles, mirror text and testing text handling. Words for reordering a phrase. Lines for flipping a log or a list into reverse chronological order. Sentences for reordering prose while keeping each sentence readable.

Frequently asked questions

How do I reverse text?

Paste your text into the left panel and choose what to reverse by — characters, words, lines or sentences. The result appears immediately.

Why do other tools break emoji?

Many split a string one code unit at a time. An emoji flag is two joined code points and a family emoji is several, so reversing at that level produces different characters or broken output. This tool splits on grapheme clusters — what a reader counts as one character.

Does reversing by lines keep the lines intact?

Yes. Only the order of the lines changes; the text inside each one is untouched.

What does reversing by words do?

It reverses the word order within each line while keeping the spacing between them, so a five-word line comes back with the same five words in the opposite order.

Can I reverse an accented word?

Yes. café reverses to éfac with the accent still attached to the right letter, because the accent and its base letter are treated as one unit.

Is anything uploaded?

No. Everything runs in your browser.

Related tools