What is Spintax?
Spintax (spin syntax) is a template language for turning one source into many genuinely unique variants of a text. You — or an AI — write the variation logic once; the engine renders thousands of distinct, deterministic outputs locally, at near-zero cost.
The Basic Idea
A spintax template is ordinary text with embedded variation markers. Each time it is rendered, the engine picks one option from each marker and produces a distinct output — but every choice is one you defined, so the result stays correct and on-brand rather than a probabilistic guess.
The simplest example uses curly braces and pipes:
{Hello|Hi|Hey} {world|everyone|there}
This single line produces 9 possible outputs: "Hello world", "Hi everyone", "Hey there", and so on. A real template with dozens of variation points can generate thousands or millions of unique variants from one source.
Spintax and classic spinners
Spin syntax grew up in SEO software. GSA Search Engine Ranker, ZennoPoster and the open source spintax libraries all read {a|b|c}, and spinners such as The Best Spinner, Spin Rewriter and WordAi write it for you from a synonym base or a rewriting model. A template in plain braces works as is in our engines. What we added is branching on any value, plurals by number, templates that include each other, and the training an AI agent needs to write all of it.
| Feature | Classic tools | spintax.net |
|---|---|---|
{a|b}, nested | Everywhere; the npm spintax 1.1.2 package breaks on nesting | Yes, any depth |
| Shuffle with a separator | ZennoPoster [+_+Red|White|Blue]; GSA ~{…} shuffles without one | [<sep=", ">a|b|c] |
| Values from data | GSA project fields and CSV columns; ZennoPoster project variables | %name% from your data, #set / #def |
| Branch on a value | GSA, on the target site’s domain only | {?VAR?then|else} on any value |
| Plural by number | Not in any documented syntax | {plural N: one|many}, by locale |
| Same text again | Not documented for GSA, ZennoPoster or the spinners; among small third-party libraries, AceLewis/spintax for Python takes a seed | Every engine can repeat a render: a seed, or your own random source in PHP and Pascal |
| Reuse | GSA %spinfile-<filename>% and #file[] | #include "slug" |
| Who writes it | A synonym base or a rewriting model: The Best Spinner, Spin Rewriter, WordAi | An AI agent with our skills and guides, checked over MCP |
Checked on 5 November 2026 against these sources: the GSA SER macro guide, ZennoPoster’s text processing docs, the Spin Rewriter API, WordAi, The Best Spinner as archived in June 2024 (its site did not respond), and the source of npm spintax, PyPI spintax and bjoernffm/spintax for PHP. “Not in any documented syntax” means we did not find it in those pages; a tool may still do it some other way.
Here is what values, branches and plurals do together in one template:
%name% {comes|is available} in %colours% {plural %colours%: colour|colours}{?waterproof? and {is waterproof|keeps out the rain}}.
A row with Kestrel, one colour and a waterproof flag renders as “Kestrel comes in 1 colour and is waterproof.” A row with Heron, four colours and an empty flag renders as “Heron is available in 4 colours.” GSA or ZennoPoster can fill the name and the number from a field, but nothing in their documented syntax picks “colour” or “colours” by the number or drops the clause when the flag is empty. With plain braces that takes a template per product, or a spin that states the fact at random.
The spinners that write spintax do a different job. The Best Spinner, Spin Rewriter and WordAi turn an existing article into nested braces of synonyms and reworded sentences. We teach the model to write the template itself, with the data, conditions and plurals in it. Three agent skills install into Claude Code, Codex, Cursor and other agents with one command, npx skills add https://spintax.net. The MCP server lets the agent validate and render what it wrote. The guides cover reverse authoring, grammar-safe options and repair, and AI spintax templates gives the prompt we use and the mistakes models make. The five engines that render the result are held to one shared test corpus, so a construct means the same thing in JavaScript, PHP, Python, .NET and Pascal. If your tool only understands plain braces, ask its vendor for the full syntax: the request is ready to paste.
Beyond Simple Spinning
Modern spintax goes far beyond {a|b|c}. The full syntax includes:
- Enumerations
{a|b|c}— pick one option, with arbitrary nesting depth - Permutations
[a|b|c]— pick N elements, shuffle, join with configurable separators - Variables
%name%— reusable values defined with#set/#defor passed at render time - Conditionals
{?VAR?then|else}— value-driven branching, not a coin flip - Plural agreement
{plural N: one|few|many}— the correct noun form by count, locale-aware - Includes
#include "slug"— embed one template inside another - Comments
/#...#/— author notes stripped from output - Verbatim spans
/!...!/— text kept exactly as written, such as a Markdown link or a macro for another tool - Post-processing — automatic capitalization, spacing, and punctuation correction
The full specification is in the syntax reference.
Spintax + AI: The Modern Workflow
Content teams already use AI as their default writing interface. The question is what happens after the AI writes.
The workflow is reverse-authored: you don't write every variant by hand. You write the final text once and add the variation markup last, so the engine executes your intent instead of guessing at it — reverse for the source, diverse for the output. That is how you create diverse content from a single, reviewable template.
So spintax inverts the usual AI model:
- Use AI to create a template once — a structured document with variation logic
- Validate it — syntax checking, preview, human review
- Render on-site — each output is a local string operation: no API call, no cost, no latency
The output is deterministic and depends only on the quality of the template, so a single asset captures your brand voice and variation strategy — and generates unique content safely and cheaply forever.
Use Cases
- Content at scale — product descriptions, landing pages, FAQ blocks, and meta descriptions across many pages, each genuinely different
- Localization — locale-specific variants from one template, with variables and locale-aware plurals
- Multi-site & agency — reusable template packs; each site gets its own text instead of a copy that search engines fold together with the others
- Email & messaging — subject-line and body variations for testing and personalization
- QA & test data — varied, realistic content for staging environments
Getting Started
Read the syntax reference to learn the markup, or try it live in the playground — no install. To render in your own app, pick an engine by runtime: @spintax/core (JavaScript), spintax/core (PHP), spintax-core (Python), Spintax.Core (.NET), or the Free Pascal engine — all open-source, zero-dependency, MIT, and held to one shared corpus. WordPress users get the free plugin with an editor, caching, and field bindings. See all engines.