KitJade
Developer ToolsRuns in your browserNew

Text Reverser

Reverse characters, words or lines safely.

Use the Text Reverser tool

Runs in your browserUpdated Report a problem

What this text reverser does

Text Reverser flips text in three ways: characters, word order or line order. Character reversal is the tricky one, because a naive implementation splits emoji and accented letters into partial code units and produces broken glyphs.

This tool uses Intl.Segmenter to iterate grapheme clusters where the browser supports it, so a family emoji or a letter with a combining mark stays intact when the string is reversed. Word and line modes simply reorder existing chunks.

Why use it

  • Create backwards text for puzzles or visual effects.
  • Check whether a string is a palindrome.
  • Reverse log order to read the newest event first.

How to use it

  1. 1Paste the text.
  2. 2Choose characters, words or lines.
  3. 3Copy the reversed output.

Worked examples

Characters

Input

stressed

Output

desserts

Lines

Input

first
second
third

Output

third
second
first

Common mistakes

  • Reversing an emoji with a simple split("") and getting replacement characters.
  • Reversing right-to-left scripts and expecting the visual order to look correct.
  • Using line reversal on CSV data, which reverses the header to the bottom.

Frequently asked questions

Will emoji survive character reversal?
In current browsers yes, because whole grapheme clusters are reversed. Very old browsers fall back to code points and may split complex emoji.
Does reversing text make it private?
No. Reversed text is trivially reversible and offers no security. Use encryption for confidentiality.
Can I reverse each line separately?
Yes, choose characters and the reversal applies across the whole text, including line breaks. For per-line reversal, process one line at a time.
All tools