Reverse Text
Reverse characters in text.
Loading tool…
About this tool
Paste text and press Run to get it written backwards, from the last character to the first. Spaces and punctuation are reversed along with the letters.
How to use
1
Step 1
Paste your text into Input.
2
Step 2
Press Run.
3
Step 3
Copy the reversed text.
How it works
The text is split into Unicode code points and the list is reversed, so most emoji stay intact. Line breaks are reversed like any other character, which also reverses the order of lines.
Worked example
A greeting
- Input
- Hello, World
- Output
- dlroW ,olleH
- Walkthrough
- Reading the input from the last character to the first gives the output.
Limitations
- Combining accents and multi-part emoji such as flags or skin tones can detach from their base character.
- Right-to-left scripts are reversed in code order, not display order.
Questions
How do I write text backwards?
Paste it and press Run. The output is the same text in reverse order.
Will emoji break?
Single emoji stay whole. Flags and skin-tone sequences may split.
Does it reverse line order too?
Yes, as a side effect, because line breaks are characters. Use Reverse Lines to flip only the order of lines.
Features
- Character-by-character reverse
- Code-point aware
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
HTML in 100 Seconds
Fireship
Quick HTML mental model next to text transform tools.
Watch on YouTubeLearn JSON - Full Crash Course
freeCodeCamp.org
Structured text formats often sit next to plain-text tools.
Watch on YouTube
- UTF-8 and BOM
W3C
Encoding gotchas when cleaning pasted text.
- Regular expressions
MDN
Pattern matching used in advanced text cleaners.