Reverse Text
Reverse characters by grapheme or code point, words within each line, or line order alone, with explicit cleanup.
A QUICK WALKTHROUGH
How to use this tool
- Enter up to 100,000 characters; choose character reversal, per-line word order or line order only.
- Choose displayed grapheme clusters or Unicode code points, then set trimming and empty-line handling.
- Reverse the text, review the Unicode-sensitive result, then copy it or download a text file.
Choose the reversal unit deliberately
Displayed-grapheme mode uses Intl.Segmenter Unicode grapheme segmentation when available, so combining sequences, flags, emoji modifiers, and joined emoji normally remain intact. If Intl.Segmenter is unavailable, the fallback reverses Unicode code points, preserving surrogate pairs but potentially splitting combining marks and joined emoji. Code-point mode always reverses every Unicode scalar value separately. Neither mode performs mirrored-glyph substitution or bidirectional-layout correction.
Whole text and per-line processing differ
Complete-text mode reverses line breaks along with the surrounding content. Per-line mode keeps line order and reverses each retained line independently. CRLF and CR are normalized to LF first. Optional trimming removes Unicode whitespace from the edges of the complete text or each line. In per-line mode, Remove empty lines runs after optional trimming, so it can also remove whitespace-only lines when trimming is enabled. Per-line mode supports up to 50,000 lines.
Word and line order
Word mode reverses the non-space/tab tokens inside each retained line, keeping ASCII space/tab runs in their original separator slots. Other whitespace is part of a token. Line-only mode reverses the retained line array without changing inner characters or words. Trimming and empty-line removal remain optional and run first; CRLF/CR normalize to LF. No Intl.Segmenter means grapheme mode falls back to Unicode code points and may split displayed sequences.
GOOD TO KNOW
Common questions
Will emoji stay together?
Usually in displayed-grapheme mode, which follows the browser’s Unicode grapheme segmentation. Code-point mode intentionally exposes and reverses the components separately.
Does per-line mode reverse the order of lines?
No. It preserves line order and reverses the contents of each retained line. Use complete-text mode when line breaks themselves should move with the reversed sequence.
What happens to Windows line endings?
CRLF and lone CR line endings become LF before trimming, filtering, or reversal, giving one consistent output format.