RunTheTests
/

Reverse Text

Reverse text by character, word or line.

What you provide

Result

Done

Characters reversed (Unicode-aware).

Result
dlrow olleH
Diagnostic telemetry
Output length
11 chars
Lines
1

What this cannot tell you

  • A pure text operation in your browser. Nothing is uploaded.
  • Character reversal is Unicode-aware, so emoji and accented letters survive; some complex scripts with combining sequences may still not reverse perfectly.

Take this with you

How this calculation works

Pick what to reverse — the characters, the word order, or the line order — and the tool does it locally. Character reversal splits on Unicode code points rather than raw bytes, so multi-byte characters like emoji are not corrupted.

What the results mean

Characters
Every character in reverse order. "abc" becomes "cba".
Words
Word order reversed, spacing kept. Useful for certain text puzzles and layout tests.

Common problems and fixes

My accented letters lost their accents
The text uses combining characters — an "e" followed by a separate accent mark — rather than a single precomposed character. Reversing by code point puts the accent before its letter, where it attaches to the wrong one. Normalising the text to its composed form first, which most editors can do on save, avoids it.
The reversed text reads correctly but displays oddly
Mixing scripts with different reading directions does this. Reversing a line containing both Latin and Arabic or Hebrew produces text whose underlying order is correct but whose display order is decided by the bidirectional algorithm, so the visual result rarely matches what you expected.
I wanted the lines in reverse order, not the characters
Switch the mode. Character reversal turns "abc" into "cba", word reversal keeps each word intact and flips their order, and line reversal leaves every line untouched while reversing the sequence — which is what you want for putting a log back into chronological order.

Frequently asked questions

Why do some tools break emoji when reversing?

Because they reverse the underlying UTF-16 code units rather than the actual characters, splitting a multi-unit emoji in half and producing garbage. This tool reverses by code point, so "a🔒b" comes back as "b🔒a" intact.

What is reversing text actually useful for?

Mostly practical rather than playful: putting a log or an export back into chronological order when it arrived newest-first, reversing a delimited string before splitting it from the other end, generating test data that exercises text handling, and checking that an interface renders unusual input without breaking. The word puzzles are a side effect.

Is the text sent anywhere?

No — the reversal runs on the value in the box, in your browser, with nothing transmitted. You can watch the network panel stay empty while you use it, which is the only kind of privacy claim worth making about a text tool.

Put this on your own site

Free to embed, no attribution required beyond the source link the frame carries itself. It runs entirely in your visitor's browser, sets no cookies and loads no third-party script.

Embed code
<iframe src="https://runthetests.com/embed/reverse-text/" width="100%" height="560" style="border:1px solid #e5e5e5;border-radius:8px" title="Reverse Text" loading="lazy"></iframe>

Preview it at https://runthetests.com/embed/reverse-text/. Embedded pages are marked noindex, so yours stays the canonical copy — not this one.

More in Text