QQuickKit

String Reverse

Reverse text three ways: the entire string, each line individually, or each word. Handy for programming exercises, palindrome checks and fun experiments.

About This Tool

Reverse any text instantly with three modes: reverse the entire string as one block, reverse each line independently, or reverse each word while keeping word order intact. Useful for programming exercises, palindrome detection, encoding experiments, or simply exploring how text looks backwards.

Features

  • Three Reverse Modes — Reverse all, reverse each line, or reverse each word — choose what fits your need.
  • Unicode-safe — Correctly handles multi-byte Unicode characters including emoji and CJK.
  • Multi-line Support — Processes multi-line input without collapsing lines.
  • Live Output — Output updates in real time as you type or switch modes.

FAQ

What does "reverse each word" do?
Each word's characters are reversed individually, but the word order in each line stays the same. For example, "Hello World" becomes "olleH dlroW".
Does it handle emoji and special characters?
Yes. The reversal uses JavaScript's spread operator ([...str]), which correctly splits on Unicode code points rather than byte values — so emoji are not corrupted.
How is a "word" defined for the word-reverse mode?
Words are split by spaces. Any run of characters between spaces is treated as one word. Punctuation attached to a word (e.g. "hello,") stays with that word and is reversed along with it.