The text changes in this tab
Reverse the word order
Words stay intact and the gaps between them stay the same size.
A word is a stretch of non-space characters.
The work stays in this tab.
This tool runs in your browser. Turn on JavaScript to use it.
Reverse words
The sample is fixed. It uses the same rule as the form.
- Input
- one two
- Result
- two one
How to use it
- 1Edit the text.
- 2Read the result beside it.
- 3Copy what you need.
Good to know
- Letters inside a word are not reversed.
- This page does not upload the text.
- Text longer than one hundred thousand characters is rejected.
Questions
Does the result leave this browser?
No. The calculation finishes in the current tab.
What does this page leave out?
Letters inside a word are not reversed.
What if the input is huge?
Past one hundred thousand characters, the page stops and asks you to shorten it.
Related tools
- Reverse the characters
The characters are reversed in memory order of Unicode code points.
- Put the last line first
The line order is flipped. Characters inside a line stay.
- Convert identifier case
Code style is mostly about where the word breaks sit. This page finds those breaks and prints the same words in the forms languages usually want.