Skip to content
Tesserae

Keyboard shortcuts

Focus search
/
This help dialog
?
Run the current tool
Ctrl/⌘ +Enter
Copy the output (when an output is focused)
Ctrl/⌘ +C

Shortcuts are ignored while you are typing in an input, a textarea or a select.

Text & Strings

Reverse Text

Flip a string end to end, or reverse the order of its words or lines while keeping each one readable. Splitting is done on Unicode code points so emoji and combined characters are not broken.

On-device No network Offline-ready

🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.

Try:

Options

Your result will appear here

Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.

How it works

What Reverse Text does

Flip a string character by character so the last letter comes first, or reverse the order of whole words, or reverse the order of whole lines. Words-in-line flips each line without moving the lines themselves. The result is plain text with no surrounding markup, ready to copy straight out.

Checking a palindrome or a hidden message

It is the quick way to see whether a string reads the same backwards, and it is handy when text was deliberately written in reverse for a puzzle. Flipping the word order of a sentence also makes a set of bullet points read from the bottom up.

The four modes

Characters reverses every code point end to end; word order swaps the position of the words while keeping each word readable; lines swaps whole lines; and words-in-line reverses the words inside each line without moving the lines. Each mode preserves the separators it is not reordering.

What it does not touch

The tool performs a pure reversal and does not decode escapes, HTML entities or markdown. Characters built from several code points, such as some flags and family emoji, may split, and a poorly paired surrogate can display as a replacement glyph. Nothing is normalised or re-encoded.

Your text stays in the browser

The reversal happens in the page and your text is never sent over the network. The tool works fully offline, so lines you are flipping for a label or a message stay on your own machine.

Questions

Why does character reverse not mangle emoji?

It splits on Unicode code points (Array.from), not UTF-16 units, so multi-byte characters stay intact. Some emoji built from several joined code points may still separate.

Does words mode keep the spacing readable?

Yes. Word order reverses the tokens but rejoins them with the exact whitespace that separated them, so runs of spaces and line breaks stay in place and the words themselves are never mirrored.

Which mode suits code or logs?

Line order is the useful one there: it flips the sequence of lines without rewriting their contents, so a stack trace can be read bottom-up. Reversing characters is only safe for display, not for anything you plan to run.

See category