How Text Reversal Works
Use Reverse by to choose how each line is processed:
- Characters (grapheme clusters): reverses grapheme clusters within each line. This keeps visible character sequences, such as letters with combining marks, together.
- Words: reverses whitespace-delimited, non-whitespace chunks within each line. It changes their order but does not spell-reverse each chunk.
In word mode, use Punctuation to choose Move with word or Stay in place. For example, Hello, world! becomes world! Hello, with the first option, or world, Hello! with the second.
Reverse Text in the Tool
- Paste text into the input textarea, select Upload, or drop a supported text file anywhere on this page. Selecting or dropping a file fills the input in your browser; it does not reverse the text automatically.
- Set Reverse by to Characters (grapheme clusters) or Words.
- If you chose Words, set Punctuation to Move with word or Stay in place.
- The output updates automatically as you type, load text, or change a processing option. Results remain hidden until the current input has been processed.
- Review the input statistics below the output. Use Copy to copy the output or Download to save it as
reversed-text.txt. - Click Reset to clear both text areas and restore Characters (grapheme clusters) with Move with word selected.
Punctuation Options
These options affect word reversal only:
- Move with word keeps punctuation attached to its original word-like chunk. Hello, world! becomes world! Hello,.
- Stay in place keeps leading and trailing non-word characters in their original positions while the word cores move. Hello, world! becomes world, Hello!. Punctuation is identified with Unicode letter, mark, and number properties, so non-ASCII words are handled without treating their letters as punctuation.
Input, Output, and Statistics
- Lines stay in their existing order, and each line is processed separately.
- Line endings are detected and the output is rejoined with one delimiter. Mixed endings and CR-only input may therefore be normalized.
- Word mode keeps the whitespace runs in their original positions within each processed line.
- Word mode treats every non-whitespace chunk as a word-like token; it is not a full linguistic word parser.
- The statistics describe the original input: lines come from the input’s line breaks, words are counted from whitespace-delimited text, and characters are counted as grapheme clusters.
- The output textarea is read-only. Character mode uses
Intl.Segmenterfor grapheme segmentation when available.
Copy, Download, and Reset
After the current result appears, use Copy to place it on the clipboard or Download to save it as reversed-text.txt. Click Reset to clear both text areas and restore the default selections.
Limitations and Privacy
The reversal and file-reading logic runs in your browser. The page also loads analytics-related scripts, so this does not establish an unconditional guarantee that text never leaves your device.
The tool reorders plain text inside each line. Characters are handled as grapheme clusters, not simple code units, and punctuation handling can be imperfect for some non-ASCII text. Use Sort Lines to order complete lines or Shuffle Lines to randomize line order.
Frequently Asked Questions (FAQs)
Does this tool spell words backwards?
Character mode reverses grapheme clusters in each line, so the line's visible character sequence is reversed. Word mode only reverses whitespace-delimited chunks; it leaves each chunk's own spelling unchanged.
What is a Unicode grapheme cluster and why does it matter?
A grapheme cluster is a sequence presented as one visible character, such as an emoji sequence or a letter with combining marks. The tool uses Intl.Segmenter when available, keeping these sequences together during character reversal.
What happens to punctuation when I reverse words?
Choose Move with word to keep punctuation with its original chunk. For example, Hello, world! becomes world! Hello,. Choose Stay in place to keep leading and trailing non-word characters at their original slots, producing world, Hello! for that example.
Does the tool reverse the order of lines?
No. Lines remain in their existing order and only their contents are reordered. The output uses one detected line delimiter, so mixed endings or CR-only input may be normalized.
Is this the same as Sort Lines or Shuffle Lines?
No. Sort Lines orders complete lines, and Shuffle Lines randomizes complete lines. Text Reverser changes only the characters or word-like chunks inside each line.