---
title: "Spintax expander and validator"
url: "https://coldagentai.com/tools/spintax.md"
canonical_url: "https://coldagentai.com/tools/spintax"
last_updated: "2026-10-19"
type: "tool"
summary: "Expand and validate spintax with a seed, count how many variants a text can produce, and keep personalization variables untouched."
related: ["https://coldagentai.com/tools.md", "https://coldagentai.com/tools/spf-generator.md", "https://coldagentai.com/tools/dmarc-generator.md", "https://coldagentai.com/tools/domain-checker.md"]
install: "claude mcp add --transport http coldagentai-free https://coldagentai.com/api/mcp"
---

# Spintax expander and validator

> **For AI agents:** the complete index of ColdAgentAI pages is [llms.txt](https://coldagentai.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Expand and validate spintax with a seed, count how many variants a text can produce, and keep personalization variables untouched.

Write {Hi|Hello|Hey} style variations, check the braces, count every variation, and preview wording. Or paste a list of phrases and get the spintax.

## Inputs

- Text with spintax
- Seed (optional)
- Phrases, one per line (build mode)

## How it works

- A group like {Hi|Hello} picks one option. Groups can nest up to 8 levels, and a nested group counts inside the option that holds it.
- The variation count is exact: options inside a group add, adjacent groups multiply. It is shown in full up to 1e15 and in scientific notation above that.
- Errors point to the line and column of an unclosed brace, a stray closing brace or a bar outside a group. Warnings flag an empty alternative such as {a||b}, where one version has a blank, and an option that starts or ends with a space, because spaces inside braces are literal.
- {{first_name}} with double braces is a personalization variable and passes through untouched. A backslash escapes the next character, for example \{ or \|.
- Five previews are drawn at random, and Re-roll draws five more. With a seed, the same text and seed always give the same previews, so a lead keeps the same wording across retries.
- Build mode turns one phrase per line into a single {a|b|c} group, trimming blanks and repeats and escaping braces, bars and backslashes.

## Worked example

The text `{Hi|Hello|Hey} {{first_name}}, {quick|short} question.` is valid and has 6 variations. With the seed `lead-1` it always expands to:

```
Hi {{first_name}}, quick question.
```

Build mode turns the lines "Hi there", "Hello" and "Hey" into `{Hi there|Hello|Hey}`.

## Limits

- Everything runs in your browser. The text you type is never sent anywhere.
- Text is limited to 20,000 characters.
- The count is the number of combinations the spintax can produce. Two combinations can read the same, so the number of different texts can be lower.
- Previews are distinct where the text allows it. A text with fewer variations than previews shows only the ones that exist.
- This does not check that your copy is good, only that the syntax is valid.
- No account is needed and no mail is sent.

## In ColdAgentAI

ColdAgentAI sequences use deterministic variants, so a lead gets the same variant for a step every time. See [Sequences](https://coldagentai.com/product/sequences.md).

## Related

- [Free cold email tools](https://coldagentai.com/tools.md)
- [SPF record generator](https://coldagentai.com/tools/spf-generator.md)
- [DMARC record generator](https://coldagentai.com/tools/dmarc-generator.md)
- [Domain email checker: SPF, DMARC, MX](https://coldagentai.com/tools/domain-checker.md)
