WritingPublished 2026-10-19Sources checked 2026-10-19By ColdAgentAI
Spintax in cold email: how and when
Spintax is a small markup that lets one template produce many wordings: {Hi|Hello} picks one option per message. It is useful for small, natural variation, but it does not make a bulk send look unique to a spam filter, and every extra option is another sentence you have to proofread. Use it sparingly, count what you have built, and read a sample of the output before you send.
#What spintax is and how it is written
Spintax puts alternatives inside curly braces and separates them with a vertical bar. {Hi|Hello|Hey} is a group with three options, and when a message is built, exactly one of the three is chosen.
Two details matter in practice. First, groups can nest, so {We help studios {fill quiet class slots|reduce no-shows}|Our tool helps studios {fill quiet class slots|reduce no-shows}} is a group whose options each contain another group. Second, spintax shares curly braces with personalization variables. The free spintax tool on this site treats double braces such as {{first_name}} as a variable that passes through untouched, and treats a single brace as the start of a group. Check how your own sending tool handles the two, because a tool that does not make that distinction can mistake a variable for a group.
The tool on this site follows a few more rules that are worth knowing because they decide what counts as valid text. A backslash escapes the next character, so \| is a literal bar. A group may be nested at most 8 levels deep, and the whole text may be at most 20,000 characters. An empty option is allowed, so {a|} is a group that either prints a or prints nothing. Expansion is seeded: the same text and the same seed always produce the same message, which makes a sample reproducible when you want to review it later.
Spintax is not personalization. Spintax varies your own wording at random. A variable such as {{company}} inserts a fact about the recipient. They solve different problems, and mixing them up leads to messages that are varied but not relevant.
#Counting how many variants you have made
The number of different messages a template can produce is a counting problem with two rules. Options inside one group add. Groups that sit one after another multiply. Nesting applies the same two rules from the inside out: first work out how many variants each option contains, add those up for the group, then treat the group as a single factor.
| Pattern | How to count | Variants |
|---|---|---|
{a|b|c} | One group of three plain options: 1 + 1 + 1 | 3 |
{a|b} {c|d|e} | Two groups in a row: 2 x 3 | 6 |
{a|b {c|d}} | Option "a" is 1 variant, option "b {c|d}" is 2 variants, and 1 + 2 | 3 |
{a|} | An empty option still counts as an option: 1 + 1 | 2 |
{Hi|Hi} | The tool counts options, not distinct text, so it reports 2 although both print the same words | 2 counted, 1 distinct |
| Eight independent two-way groups | 2 multiplied by itself 8 times, which is 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 | 256 |
Two lessons follow from the table. Variants grow very quickly because groups in a row multiply, so ten independent two-way groups already give 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 x 2 = 1,024 messages. And the count is an upper bound on distinct wording, not a measure of it: duplicate options and options that differ only in a comma inflate the number without changing what a reader sees.
#Worked example: count and validate a short template
This fictional template is for an invented company, Brightside Studio, writing to yoga studios. Every name and fact in it is made up for the example.
{Hi|Hello|Hey} {{first_name}},
{I noticed|I saw} {{company}} {recently opened a second studio|is hiring a studio manager}. {We help studios {fill quiet class slots|reduce no-shows}|Our tool helps studios {fill quiet class slots|reduce no-shows}}.
{Worth a short chat?|Open to a quick call?}| Part of the template | Working | Factor |
|---|---|---|
Greeting {Hi|Hello|Hey} | Three options | 3 |
Opener {I noticed|I saw} | Two options | 2 |
Observation {recently opened a second studio|is hiring a studio manager} | Two options | 2 |
| Pitch sentence, outer group | Option one holds an inner group of 2, option two holds an inner group of 2, so 2 + 2 | 4 |
| Closing question | Two options | 2 |
| Whole template | 3 x 2 x 2 x 4 x 2 = 96 | 96 |
The validator reports 96 for this text, which matches the hand count. Notice what the number means for a real send. If 500 recipients each received one randomly chosen variant, the average variant would reach 500 / 96, about 5.2 people. The mail is varied at the level of a few phrases, but the structure, the offer and most of the words are identical in all 96 messages. That detail is the subject of the next section.
Validation checklist before you send
- Run the template through a validator and confirm it reports valid. The common failures are a group that is never closed, a stray closing brace, a bar outside any group, an empty group, and a variable whose double braces are never closed.
- Compare the reported count with your own hand count. A big gap means a group is nested or placed differently from how you meant it.
- Expand at least five messages with different seeds and read each one aloud. Check grammar, spacing and punctuation at every seam where a group meets plain text.
- Check that every option in a group is interchangeable. If one option makes a claim that another option does not, you have written two different messages, and the one that is true for the recipient may not be the one chosen.
- Confirm that no group hides filler text. Padding a message with words that readers cannot see is the kind of hidden content that the Google sender guidelines warn against, and it has nothing to do with legitimate wording variation.
- Make sure the same variable is not used in a way that breaks when it is empty. A group such as
{{company}} {is hiring|just moved}reads badly if the company field is blank. - Keep the unsubscribe wording, your sender name and your postal address outside any group, so they appear in every message.
#What spintax cannot do for deliverability
The common pitch for spintax is that varied wording stops filters from recognising a bulk send. The published evidence points the other way. The Distributed Checksum Clearinghouse, an anti-spam system that has been in use since late 2000, works by comparing checksums of messages across many recipients, and its documentation says the checksums include values that are constant across common variations in bulk messages, including personalizations. Its FAQ answers the question of whether its fuzzy checksums ignore personalizations with yes, they ignore many personalizations and hash busters.
That is one filter design, not every filter, and it would be wrong to claim that all mailbox providers use it. The useful conclusion is narrower: a technique that changes a few words per message is the kind of variation that this design says it is built to see through, and its maintainers have kept adjusting those checksums since 2000. If your template is 90 percent identical across variants, treat the variants as one message when you think about how a filter sees it.
What Google says it reacts to is behaviour and reputation. Google states that if messages from your domain are frequently reported as spam, future messages from you are more likely to be marked as spam, and that user spam reports can lower your domain reputation over time. The same page asks bulk senders to keep their spam rate reported in Postmaster Tools below 0.30 percent. None of that is changed by how many ways you can say hello. Relevance, a clean list and an easy way to opt out move those numbers; wording shuffles do not.
Google also warns that using HTML and CSS to hide content might cause messages to be marked as spam. Padding a message with invisible text to dilute repeated phrases is exactly the behaviour that guideline describes, so do not do it.
#When spintax is worth using
Spintax earns its place in a narrow set of situations, and it costs you in the others. A good test is whether a human writing fifty one-to-one emails would naturally vary the words. They would vary greetings, the way they open and the way they ask for a reply. They would not rewrite their offer fifty ways.
- Use it for small, low-stakes choices such as greetings, sign-offs and the phrasing of a closing question. The wording differences are real but harmless, and you can read every option.
- Use it to rotate genuinely different openers, such as two different observations about the recipient, when the choice depends on data you have. A variable or a conditional rule is better than a random pick, because random choice cannot tell which opener is true.
- Avoid it in the offer, the price, the claim and the proof. Random variation there means different recipients are told different things, and you cannot later tell which wording produced a reply.
- Avoid it when you want to learn from a send. If every message is different, comparing replies by wording needs a lot of volume. A deliberate test with two fixed versions is much easier to read.
- Keep it shallow. Every nested level makes the template harder to read and the output harder to predict, and beyond a few levels the count stops being something you can check by hand.
For most senders the better investment is specificity. A first line that proves you looked at the recipient, a clear single question and a short body do more than a thousand permutations. See the guides on custom variables and personalization at scale for ways to get there without random wording, and the guide on whether repeating a message hurts deliverability for what is known about identical content.
#Frequently asked questions
Does spintax help cold email avoid the spam folder?
This guide found no published evidence that it does, and one long-running filter design documents that its checksums ignore many personalizations and variations. Google says user spam reports can lower domain reputation, which spintax does not change. Treat it as a way to avoid sounding robotic, not as a deliverability tool.
How do I count how many variants a spintax template has?
Add the variant counts of the options inside a group, and multiply the counts of groups that follow one another. For nested groups, count the inner group first. For example, {a|b {c|d}} has 1 + 2 = 3 variants, and {a|b} {c|d|e} has 2 x 3 = 6.
How many options should one group have?
Two or three is usually enough. More options rarely change how a message reads, and each one is another sentence you must check for grammar and meaning in every position where it can appear.
Is spintax the same as personalization?
No. Spintax picks among wordings you wrote. Personalization inserts facts about the recipient, such as a first name or company. A template can use both, and the double-brace variables pass through spintax unchanged.
#Sources
- Distributed Checksum Clearinghouses (DCC) overviewRead 2026-10-19. The anti-spam system counts recipients per checksum, and its checksums include values that are constant across common variations in bulk messages, including personalizations.
- DCC frequently asked questionsRead 2026-10-19. The answer to whether the fuzzy checksums ignore personalizations: yes, they ignore many personalizations and hash busters.
- Email sender guidelines (Gmail Help)Read 2026-10-19. Frequent spam reports make future mail more likely to be marked as spam, the 0.30 percent spam rate guideline, and the warning against hiding content with HTML and CSS.