Works on this device
Word Chain Generator
Type your words, and the tool links them into the longest chain it can make: each word starts with the last letter of the word before it. You can also check a chain played in a word chain game. No word list is built in; only your words are used.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use the generator
- Choose Make the longest chain from your words. Type your words, separated by commas or new lines.
- If the chain must start with one word, type it in Start with this word.
- Choose Make the chain. Copy the chain, or download it as a text file. The words that could not be linked are listed too.
- To check a game, choose Check a chain played in a game and type the words in the order they were said.
- Under More options you can ask for 2 or 3 matching letters for a harder game.
The rule and the search
- Each word must start with the last letter of the word before it, and each word is used once.
- Capital letters and accents are ignored, so "Éclair" starts with e. Signs that are not letters, such as digits, hyphens and apostrophes, are skipped at both ends of a word.
- The search tries the words in alphabetical order and goes as deep as it can, then steps back to try other words. It keeps the longest chain it finds; of equally long chains, the first in alphabetical order is given.
- It drops a path when even all the unused words it could still reach could not make a longer chain, so most lists are searched to the end quickly.
- Finding the longest chain can take very long for some lists. The search stops after 500,000 steps and then says that a longer chain may exist.
Worked example
From apple, egg, giraffe, elephant, tiger, rabbit, tomato, orange, eagle the tool makes a chain of all 9 words: apple → eagle → egg → giraffe → elephant → tiger → rabbit → tomato → orange. Each word starts with the last letter of the word before it: apple ends with e, and eagle starts with e.
Limits you should know
- No word list is built in, so the tool cannot add words, suggest words, or check that a word is real or spelled right.
- Up to 300 words. A word may have spaces, such as "ice cream".
- Chains of compound words (rain → bow → tie) are not made: they need a dictionary of compound words.