Free tool · Writing tools
Reverse text
Flip every character, the letters in each word, the word order or the line order. Emoji and accents stay whole, and nothing leaves your device.
- Free
- No sign-up
- Runs in your browser
- Every character reversed
- Characters
- 20
- Words
- 4
- Lines
- 1
How to use the Reverse Text
- Type or paste your text into Your text.
- Choose what to flip under Reverse: Reverse all text, Reverse each word, Reverse word order, Reverse line order or Reverse each line.
- Read the flipped text under Result. It updates as you type or switch modes.
- Press Copy to put the result on your clipboard. Clear empties the box.
How do I reverse a text or sentence online?
Paste the text and keep Reverse all text selected. The last character comes first and the first character comes last, so "Hello, world!" becomes "!dlrow ,olleH". Spaces and punctuation move with everything else, and line breaks are reversed too, so a two-line text swaps its lines and also flips the letters on each of them. This is the classic backwards text that is used for puzzles, mirror-writing games and tests of a string function.
If you want to flip each word where it stands, choose Reverse each word. "Hello world" becomes "olleH dlrow": the words stay in the same order and only the letters inside them are reversed. Punctuation that is attached to a word moves with it, so "world!" becomes "!dlrow". Repeated spaces and line breaks stay exactly where you typed them.
How do I reverse the order of words, or of lines in a list?
Reverse word order keeps every word intact and swaps their order on each line: "one two three" becomes "three two one". The spaces between words stay where they were, and each line is handled on its own, so a poem keeps its line breaks. Reverse line order does the opposite and swaps whole lines without touching the words inside them, which turns a list upside down: "a, b, c" typed on three lines comes out as "c, b, a". A single final line break stays at the end, so a pasted list does not gain an empty first line.
Reverse each line sits between the two. It reverses the characters of every line separately and keeps the lines in their original order, which is the tool to use when you want a mirror image of each row of a list but not of the list itself. The three counts under the result show characters, words and lines, so you can check that nothing was lost.
Does it work with emoji and other languages?
Yes. Many simple reversers flip a string one code unit at a time, which breaks anything made of more than one piece. An emoji such as a family or a waving hand with a skin tone, a flag, and a letter with a combining accent are each stored as several pieces but read as one character. This tool reverses by grapheme, the unit a reader sees as one character, using the browser's own Intl.Segmenter. The text "ab👨👩👧c" becomes "c👨👩👧ba" with the family still together, and "🇫🇷🇩🇪" becomes "🇩🇪🇫🇷" with both flags intact. A browser that is too old to have Intl.Segmenter falls back to a close approximation that keeps accents, joined emoji, skin tones and flags together.
Right-to-left scripts such as Arabic and Hebrew reverse in the order in which the characters are stored. Browsers then show them with their own bidirectional rules, so the flipped text may look different from what you expect. Arabic letters also change shape depending on their neighbours, which reversing does not reproduce. For that reason this tool is best for left-to-right text. To turn text upside down instead of backwards, use an upside-down text generator.
Use it with
- Upside Down Text: flip text upside down.
- Case Converter: UPPER, lower, Title, Sentence case.
- Remove Line Breaks: join broken lines from PDFs.
Questions
How do I reverse a text or sentence?
Paste it into the box and leave Reverse all text selected. The last character comes first: "Hello, world!" becomes "!dlrow ,olleH".
How do I reverse the order of words but not the letters?
Choose Reverse word order. "one two three" becomes "three two one", with each word unchanged. Each line is handled separately.
How do I reverse the order of lines in a list?
Choose Reverse line order. The last line becomes the first and the first becomes the last, and the text of each line is left alone.
Does it work with emoji and accented letters?
Yes. Text is reversed by grapheme, so emoji (including joined ones and skin tones), flags and letters with accents stay whole instead of breaking into pieces.
Does it work with Arabic or Hebrew?
It reverses the stored order of the characters, but browsers display right-to-left text by their own rules and Arabic letters change shape with their neighbours, so the result can look unexpected. It suits left-to-right text best.
Is my text sent anywhere?
No. The text is reversed in your browser, so it stays on your device.
How this page was made: the tool's results are computed in your browser by the code on this page; the explanations were drafted with AI help and checked against the tool's own output.