Skip to content
tools.best

Browse all tools

Word Combination Generator

Enter a list of words, one per line, and get every combination of 2 to 5 of them, with or without the different orders.

Runs in your browser. Nothing you enter is sent to a server. Sources: Combination Updated

Combinations, arrangements and repeats: the three modes

Say you enter n words and ask for r of them in each line. Mathematics calls a choice where order does not matter a combination, and one where it does an arrangement or permutation.

SettingWhat is listedNumber of lines
Order does not matter, no word twiceEach group of r different words once, in the order you entered themn! ÷ (r! × (n − r)!)
Every order, no word twiceEach group of r different words in every possible ordern! ÷ (n − r)!
Every order, a word may repeatEvery sequence of r words, including ones that use a word more than oncenr

The sign ! is the factorial: 4! = 4 × 3 × 2 × 1 = 24.

The two counts without repeats are linked. For 6 words taken 3 at a time there are 6 × 5 × 4 = 120 arrangements. Every group of 3 words appears in 3! = 6 of them, so there are 120 ÷ 6 = 20 combinations.

Word combination example: apple, banana, cherry

Enter three words, each on its own line: apple, banana, cherry. Leave the size at 2.

  • Order does not matter, no word twice gives 3 lines: apple banana, apple cherry, banana cherry.
  • Every order, no word twice gives 6 lines: apple banana, apple cherry, banana apple, banana cherry, cherry apple, cherry banana.
  • Every order, a word may repeat gives 9 lines: the six above plus apple apple, banana banana and cherry cherry.

With "Join words with" set to "Nothing", the first line reads applebanana; with a hyphen it reads apple-banana.

Three words, apple, banana and cherry, taken 2 at a time in the word combination generator: 3 lines when order is ignored, 6 in every order and 9 when a word may repeat, with each line listed.
Each mode adds lines to the one before it: the reversed pairs, then the pairs of the same word.

How many combinations: the list grows fast

Words enteredSizeOrder does not matterEvery order, no repeatsEvery order, repeats
4261216
62153036
6320120216
1024590100
1031207201,000
10525230,240100,000
2031,1406,8408,000
2044,845116,280160,000

The tool writes at most 100,000 lines. The last row shows two settings that go over that limit; for those it reports the number and writes nothing.

How the word combination generator builds the list

  • Lines are trimmed, empty lines are ignored, and a line that repeats an earlier one exactly is used once.
  • The result follows the order of your list. It is not sorted alphabetically.
  • "All sizes from 2 to 5" lists all the pairs first, then the groups of three, four and five. When no word may be used twice, sizes larger than your word count are left out.

For brainstorming names, start from a short list of strong words and join them with nothing, so each line reads as one word. The alliteration generator gives word lists for one letter, and the word generator with letters finds words that fit a set of letters. To put the result in order, paste it into the alphabetical order generator.

Word Combination Generator: FAQ

What is the difference between a combination and an arrangement?
In a combination the order does not matter, so "apple banana" and "banana apple" are the same and only one is listed. In an arrangement, which mathematics calls a permutation, the order matters and both are listed. Pick "Every order" when you want both.
How many lines will I get?
With n words taken r at a time: n! ÷ (r! × (n − r)!) combinations, n! ÷ (n − r)! arrangements without repeats, and n to the power r when words may repeat. For 6 words taken 3 at a time that is 20, 120 and 216 lines. The tool shows the exact number above the result.
Why does the tool stop at 100,000 lines?
The numbers grow very fast: 30 words taken 4 at a time in every order is 657,720 lines. The limit of 100,000 lines is a choice made for this tool so the page stays responsive. When your settings would go over it, the tool tells you the number and writes nothing.
What happens to words I enter twice?
A line that repeats an earlier line exactly is used once, and the tool tells you how many it skipped. The comparison is exact, so "Apple" and "apple" count as two different words.
Can a line hold more than one word?
Yes. Each line is treated as one unit, so a line such as "ice cream" stays together in every combination.

Sources