Guide
Testing spintax and counting its variations
Spintax is a small notation for writing many versions of a message at once. You put a set of options between braces and separate them with bars, and a program picks one when it builds the message. It is used for cold email templates, ad variants, chatbot replies and test data. The syntax is simple until choices are nested inside choices, at which point it is hard to know how many messages a template can make or whether it reads well. This tester counts the variations and shows samples.
The notation
A choice looks like {Hello|Hi|Hey}. Text outside braces is kept as it is. Choices may sit inside an option, as in {our new {red|blue} running shoes|the trail shoes}, where the first option contains its own choice of colour. The tool reads the text with a small tree parser, so any depth of nesting works, and braces that do not close are treated as ordinary characters.
How the count works
A message that is a sequence of choices has as many versions as the product of the choice sizes. Inside one choice, the options add: a choice with options that make 2 and 1 versions respectively adds up to 3. The tool combines the two rules through the nesting. That is why a short template can have a surprising number of variations, and why the result is shown in the first row before you decide how many to read.
How many to show
Set “How many to show” to the number of texts you want to see. Choose “The first ones in order” to list versions in a stable order, which is useful when you want to check each option, or “Random ones” for a spread that resembles what a sender would produce. The note under the result says how many of the possible texts are shown. Asking for more than exist simply shows them all.
Good practice
Keep each option about the same length and tone so that every version reads naturally. Read several random versions aloud, and check that choices which depend on each other, such as a greeting and a sign-off, cannot combine into something odd. Remember that spintax is for message variety. Spinning articles into many near-duplicate pages is spam under search engine policies and does more harm than good.
A worked example
The sample is {Hello|Hi|Hey} {there|friend}, {our new {red|blue} running shoes|the trail shoes} {are in stock|ship today}!. The greeting has 3 options, the address 2, the product part has two options of which the first has 2 versions inside it so the part counts 2 + 1 = 3, and the ending has 2. The product is 3 × 2 × 3 × 2, which gives 36 possible texts. The first mode shows 8, beginning “Hello there, our new red running shoes are in stock!” and “Hello there, our new red running shoes ship today!”. The result rows read 36 possible and 8 shown.
Limits
The tool does not understand grammar, so it cannot tell that “a” should become “an” before a vowel in some version. It does not detect repeated or duplicate versions, offers no weights for options and does not support escaping a literal brace or bar. A template with a huge number of variations shows only as many as you ask for, not all of them, to keep the page fast.
Related tools
- Keyword Permutation Combiner builds every pairing of word lists, which is a different kind of variation.
- Text Similarity Checker shows how close two generated versions are.
- Random Name Picker draws a name at random from a list.
- Case Converter changes the capitalisation of the generated lines.
Checked against the current version of the Spintax Tester & Expander on .

