Text tools
Reverse text by characters, words or lines
This tool can reverse a text online by characters, by word order or by line order, entirely in your browser. Character mode is Unicode-aware, so an emoji sequence or a letter with combining marks moves as one unit rather than breaking apart. Paste your text, open a UTF-8 file, or try the built-in example, then copy or download the result.
Character mode keeps emoji and combining marks together.
Editor text: CRLF and CR become LF. Downloads use UTF-8; no rich formatting is retained.
Choose a mode, then reverse your text.
How to reverse text
Under Reverse by, choose Characters, Word order or Line order; the note beneath the menu names each mode's separator rule, and you can change the mode again before or after reversing. Type or paste your text into Original text, select the file input beneath it to open a UTF-8 file, or select Try example to load a short sample with an emoji, a tab and a blank line.
Select Reverse text to run the reversal. The result appears in Reversed text, with a status line that says when the output matches the input exactly. Select Copy result to copy it, Download .txt to save it as a file named for the mode, such as reversed-characters.txt, or Use result as input to move the output back into Original text and reverse it again. Cancel stops a run in progress and keeps your input untouched; Reset clears the text, the selected file and the download, and sets Reverse by back to Characters.
What each mode reverses
Characters mode reverses the entire text as Unicode grapheme clusters, so "Hello, world!" becomes "!dlrow ,olleH", and "a👍b" becomes "b👍a": the emoji moves as one piece instead of breaking into two invalid halves. Word order mode treats each run of non-whitespace as a word and reverses their order while keeping every separator in its slot, so "Hello, world! How are you?" becomes "you? are How world! Hello,", with each punctuation mark staying attached to the word it touches.
Line order mode reverses whole lines while keeping their separators, so "first\nsecond\nthird\n" becomes "third\nsecond\nfirst\n", with the final line ending left at the end, where it was. A blank line is a line too, so it keeps its own place in the reversed order rather than being dropped or merged with a neighbor.
Encoding and line endings
Opening a file requires valid UTF-8 text, regardless of its extension or MIME type; invalid UTF-8 produces an error rather than a corrupted result. A leading byte-order mark stays at the start of the result rather than being moved to the end with the rest of the text, and no Unicode normalization runs on your text before or after reversing it.
Typed or pasted text is editor text, where the browser has already converted CRLF and CR to LF before this tool ever sees it; opening a file instead preserves that file's CRLF or CR-only line endings through the reversal. In Characters mode a CRLF pair moves as one unit, so it never turns into a reversed LF and CR. Selecting Use result as input carries the LF-normalized output back into Original text for another pass.
Limits and unchanged results
There is no fixed text-length cap on this tool; available browser memory and string capacity limit how much text can be reversed in one pass. If a result would exceed that capacity, the tool shows an error asking you to reduce the input instead of showing a cut-off result. Cancel stops a reversal in progress and keeps your input in place; changing the input, the selected file or the mode clears a stale result immediately. The tool needs a browser with Web Workers and Intl.Segmenter.
Empty input gives empty output. A single character, a single word or line, and a palindrome such as "racecar", read the same forwards and backwards, can all come back unchanged after reversing, which is why the status line says outright when the output matches the input. The same status line gives the size of the text file you can download.
Questions
How do I reverse text?
Paste your text into Original text, pick a mode under Reverse by and select Reverse text. Characters spells the text backwards, Word order turns "one two three" into "three two one", and Line order puts the last line first. The result appears in Reversed text, ready to copy or download.
Does my text stay private when reversed?
File decoding and reversal both run in your browser; this tool does not upload, log or persist your text or file. Copy writes the result to your clipboard, and Download saves it only when you select it. Leaving the page releases the text and the download link.
What counts as a character when reversing?
A character is what you see as one symbol on screen. A letter written as "e" plus a separate combining accent stays "é" after reversing, and a flag or a family emoji built from several code points stays whole. Line breaks count as characters too, so the last line comes out first, spelled backwards.
How do word order and line order work?
Word order splits only at spaces, tabs and line breaks, so a hyphenated compound stays together: "high-speed rail" gives "rail high-speed". Words also move across line breaks, while each break stays in its slot. Line order keeps each line's text intact, including its leading spaces and indentation.
What if the output looks unchanged?
Check the mode first. A one-line text looks the same in Line order, and a one-word text looks the same in Word order, because there is nothing to swap; switch to Characters to spell it backwards. When the result really matches, the status line says "No changes: the output matches your input."
Are encoding and line endings preserved?
Download .txt saves the reversed text exactly as the engine produced it, in UTF-8, so an opened file's CRLF or CR line endings and its leading byte-order mark are kept in the saved file. The tool adds no byte-order mark of its own and does not rewrite line endings, so typed text downloads with LF endings.
Can this tool flip letters upside down or reverse audio?
This tool reorders existing characters, words or lines; it does not flip letter shapes upside down, mirror them, or substitute a different font, and it does not reverse audio or speech. A mirrored or upside-down look needs a different glyph for every letter, which this reordering-only engine never generates.