Free exact browser converter
Text Reverser
Reverse text by grapheme clusters, words or lines. Keep combined emoji and accented character sequences intact in character mode.
Interactive tool
Text Reverser
Ready
Choose a clear output representation.
Detailed conversion guide
How Text Reverser Works
Character mode uses the browser’s grapheme segmenter, so an emoji sequence or a letter with combining marks stays together while the cluster order reverses.
Word mode reverses non-whitespace runs while retaining the original whitespace positions. Line mode reverses newline-separated lines and writes LF line endings.
| Input | Output | Meaning |
|---|---|---|
A👩💻B | B👩💻A | Default example |
éX | Xé | Boundary example |
JavaScript Example
Runnable example for the default sample. The tool also validates its full input contract.
const reversed=Array.from(new Intl.Segmenter(undefined,{granularity:"grapheme"})
.segment(input),s=>s.segment).reverse().join("");Formats, Boundaries and Limitations
This is a text operation, not a right-to-left layout engine. The Unicode bidirectional algorithm can affect how a reversed Arabic or Hebrew result looks.
Character mode requires Intl.Segmenter in the browser. It preserves the text inside each cluster rather than reversing UTF-16 code units.
Related converters
More Text and Encoding Tools
Choose the tool that matches your text or byte workflow.