Reverse Text

Reverse a string character by character, or flip the order of its words or its lines.

Processed on your device — no upload

termiva reverse --by chars
0 chars · 0 words

hello → olleh — reversal is done by code point, so emoji and accented letters stay intact rather than breaking apart.

0 chars · 0 words
in 0 wordsout 0 wordsnothing uploaded

How to reverse text

  1. Paste your text.
  2. Choose whether to reverse characters, words or lines.
  3. Copy the result.

How it works

Character reversal sounds trivial and is the one place these tools most often go wrong. The naive approach splits a string into its code units, which breaks anything outside the basic multilingual plane: an emoji is stored as two units, and reversing them individually produces a different, usually broken character.

This tool splits by code point instead, so emoji, accented letters and non-Latin scripts survive reversal intact rather than turning into replacement squares.

The other three modes are simpler. Word order splits on whitespace and reverses the sequence, leaving each word readable. Line order flips the document top-to-bottom, which is the practical one. It is how you fix a log file or an export that came out newest-first when you wanted oldest-first. Words within each line reverses each line independently.

One honest caveat about right-to-left text. Arabic and Hebrew are stored in logical order and rendered right-to-left by the display engine, so reversing the characters of Arabic text does not produce readable reversed Arabic — it produces a broken string that happens to render oddly. Character reversal is a Latin-script trick.

A worked example

The practical case first. You export a chat history and it arrives newest message first — 300 lines in exactly the wrong order for reading.

Paste it, choose Line order, copy. The conversation now reads chronologically. That is the reason this tool earns its place; the rest is mostly for puzzles.

Now the character mode, and a demonstration of why the implementation detail matters. Paste Sara 👋 café and reverse by characters. You get éfac 👋 araS — the waving hand is still a waving hand and the é is still an é.

A tool that splits by code unit instead would turn that emoji into two unpaired halves, which render as replacement squares. If you have ever reversed a string somewhere and watched the emoji break, that is what happened.

Word order is useful for a quick check of a palindrome sentence, and words within each line for reversing a column of names from “Surname Firstname” to “Firstname Surname” — though for that, a regex find and replace gives you more control over punctuation.

Questions

How do I write text backwards or mirror it?

Reverse by character flips the whole string end to end. Reversing by word or by line keeps each unit intact and only inverts their order.

Will reversing break my emoji?

No. The text is split by code point rather than code unit, so emoji, accented letters and non-Latin characters survive intact. Many reversal tools get this wrong.

Is my text uploaded?

No. The reversal runs in your browser and this site has no backend.

What is the difference between the four modes?

Characters flips the whole string letter by letter. Word order flips the sequence of words but keeps each readable. Line order flips the document top to bottom. Words within each line reverses each line separately.

What is this actually useful for?

Line order is the practical one — fixing an export or a log that came out newest-first. The character modes are mostly for puzzles, testing and checking palindromes.

Does it work with Arabic or Hebrew?

Not meaningfully. Right-to-left scripts are stored in logical order and rendered by the display engine, so reversing the characters produces a broken string rather than reversed text.

Can I use it to check a palindrome?

Yes — reverse by characters and compare. Remember to remove punctuation and spaces first, since "A man, a plan, a canal" only reads as a palindrome once those are stripped.

Are blank lines preserved when reversing line order?

Yes. Every line including empty ones keeps its place in the reversed sequence.

Is there a length limit?

No fixed limit. Reversal is a single pass over the string, so even very large inputs are instant.