Text Reverse

Reverse text character by character, reverse word order per line, or flip the order of lines — with a swap button to apply the result back as input.

Runs locally
Input
0 chars
Output

What is text reversal?

Text reversal is a simple but surprisingly useful operation. Reversing characters per line is the classic approach — "hello" becomes "olleh" — and is used for simple ciphers, palindrome checking, and fun word games. Reversing word order is useful for testing RTL layout logic or creating mirror-image sentence structures. Reversing line order flips a list or log upside-down, which is handy for reading stack traces from bottom to top or viewing the most recent log entries first without scrolling.

How to use this tool

  1. 1 Type or paste text into the Input panel.
  2. 2 Choose a mode: Characters (reverse each line character by character), Words (reverse word order per line), or Lines (reverse the order of all lines).
  3. 3 The Output panel updates instantly.
  4. 4 Click the swap button (↔) to copy the output back into the input, allowing you to chain transformations.

Frequently asked questions

Does Characters mode handle Unicode (emoji, accents)?

Yes — the reversal uses Array.from() which correctly splits on Unicode code points rather than UTF-16 code units, so emoji like 🎉 and accented characters like é are treated as single characters and won't be corrupted.

What does Words mode do with multiple spaces?

Words mode splits on runs of whitespace and reverses the resulting tokens, then rejoins with a single space. Multiple consecutive spaces are collapsed to one in the output.

Can I reverse a block of lines while keeping each line's internal order intact?

Yes — use Lines mode. It only flips the sequence of lines; each individual line remains unchanged.

What is the swap button for?

The swap (↔) button copies the current output back into the input field, letting you reverse the reversal or chain it with another transformation. It is the equivalent of applying the tool twice.

Is my data sent anywhere?

No. All reversal runs locally in your browser.