Back to Developer
Text reverse — by char, word, or line

Text reverse — by char, word, or line

Reverse text by character, word, or line. Uses Intl.Segmenter so emoji and combined sequences stay intact. Handy for flipping CSV rows, building mirror strings for tests, or reading content end-to-end. Runs entirely in your browser.

developertext

How to use

Pick a unit (Characters, Words, or Lines), paste your text, and press Reverse. Character-mode uses Intl.Segmenter to split by grapheme, so emoji (👋) and combined sequences stay intact (a naive split('') would corrupt them). Word-mode flips the order of whitespace-separated words while keeping each word's letters in place. Line-mode flips the order of lines while keeping each line's content. Copy or Download to take the result with you. Handy for reversing CSV rows, building mirror strings for tests, and palindrome checks.

FAQ

Is the text uploaded?
No. Reversing happens entirely in your browser's JavaScript engine, so even sensitive strings stay local.
Are emoji and combined sequences handled?
Yes. Character-mode uses Intl.Segmenter to walk graphemes, so 👨‍👩‍👧 is reversed as a single unit. A naive split('') would have torn the surrogate pair apart.
How are words defined?
Anything separated by whitespace (spaces, tabs, newlines). For languages without explicit word separators (like Japanese), the whole sentence may be treated as one word — use character-mode in that case.
Does line-mode handle CRLF?
Yes. Both CRLF and LF are accepted; output uses LF (\n).

Related tools