About this tool
Reverse the order of words while keeping each word readable: “The quick brown fox.” becomes “fox brown quick The.” Useful for word games, testing how text is parsed, reversing name order, or checking a sentence from a different angle.
Options
- Each line separately: reverses the words within every line and keeps lines in order. Turn it off to treat the whole text as one sequence of words.
- Keep final punctuation at the end: a full stop, question mark or comma attached to the last word stays at the end of the line instead of moving to the front.
Words are separated by spaces; multiple spaces become one. To reverse the letters themselves, use reverse text.
In code
// JavaScript
text.split(/\s+/).reverse().join(' ');
# Python
' '.join(reversed(text.split()))
FAQ
How do I reverse the order of words in a sentence?
Paste the sentence. Words are reversed instantly, so “one two three” becomes “three two one”.
Does it reverse the letters in each word?
No, words stay readable. To reverse letters, use Reverse Text.
What happens to punctuation?
With “Keep final punctuation” on, the punctuation at the end of a line stays at the end. Other punctuation stays attached to its word.
Can I reverse words line by line?
Yes. “Each line separately” is on by default.