Reverse word order — flip the order of words, line by line

Paste a sentence or a list of lines and the tool reverses the order of the words on each line, so "one two three" becomes "three two one" while each word keeps its spelling.

Live demo · real result from this tool

Styled text

jumps fox brown quick the

Processed on your device — nothing is uploaded.

How to use reverse word order

  1. Paste your text into Your text (the sample is “the quick brown fox jumps”).
  2. The Styled text box shows each line with its words in reverse order.
  3. Press Copy to take the result.

What it does and when to use it

Reversing word order is handy in a few everyday jobs:

  • Names. Turn “Smith John” into “John Smith” for a two-word name list, one name per line.
  • Sequences. Reverse a one-line list such as “step1 step2 step3” or a breadcrumb trail.
  • Word games and teaching. Make word-order puzzles, check word-level palindromes, whose words read the same in both directions, or show students how much English relies on word order for meaning.
  • Fun captions. Yoda-like sentences start here, though they often need a touch of editing.

For a fully backwards reflection with flipped letters, use the mirror text generator. To change capitals instead of order, try the flip case converter.

How it works

The tool handles one line at a time. It trims spaces from both ends of the line, splits it into words at every run of spaces or tabs, reverses that list and joins the words with a single space. A “word” is anything between spaces, so punctuation, numbers, emoji and hyphenated words such as “well-known” each count as one unit. Line breaks are kept, so the shape of a multi-line list is preserved.

Worked examples

From the tool’s own function:

  • to be or not to be → be to not or be to. A word-level near-palindrome: the reversed line uses the same words.
  • Hello, world! → world! Hello,. The comma and exclamation mark travel with their words.
  • red green on line one and blue on line two → green red and blue. The double space became one, and the second line had only one word to reverse.

Limits and tips

  • No grammar. The tool does not move capitals or punctuation, so “Today I run.” becomes “run. I Today”. Fix the capital and full stop by hand.
  • Languages without spaces, such as Chinese or Japanese, are treated as one long word per line and do not change.
  • Readability. The output is plain text, so screen readers and search handle it normally, but reversed sentences rarely make sense on their own; label them if others need to understand them.
  • Everything runs in your browser; nothing is uploaded.

Frequently asked questions

Does it reverse the letters too?
No, only the order of the words. To spell text backwards letter by letter, use the text reverser. To keep the word order but spell each word backwards, use reverse each word.
Why is the comma in the wrong place now?
The tool splits words at spaces, so punctuation stays glued to the word it was typed next to. "Hello, world!" becomes "world! Hello," and you may want to move the punctuation by hand.
What happens with several lines?
Each line is reversed on its own and the lines stay in their original order. An empty line stays empty.
Are my extra spaces kept?
No. Leading and trailing spaces are removed and any run of spaces or tabs becomes a single space between words.
Can I reverse the order of lines instead?
Not with this tool; it works within each line. Put everything on one line with spaces between items if you want the whole list reversed.

Written by the ToolsRift team · Last updated

Pages are drafted with AI assistance and checked by automated tests. How we write and check pages.

Was this tool useful?

Report a problem

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close