Spintax — the language of content.
Write once, generate forever.
The home of spintax. Learn the syntax, create AI-assisted content templates, and generate unique variants at near-zero cost.
Key Features
The modern spintax engine for template-based dynamic content.
Enumerations
{a|b|c} — randomly pick one option from the list. Full nesting support for complex variant trees.
Permutations
[<config>a|b|c] — pick N elements, shuffle, and join with custom separators and connectors.
Variables
%var% — global, local (#set / #def), and runtime variable scopes with clean inheritance.
Nested Templates
Any element nests inside any other — and #include composes whole templates. Circular reference detection keeps every render safe.
Conditionals — value-driven branching
Our distinctive extension: {?VAR?then|else} picks based on whether a variable is truthy. Show, hide, or substitute content per-tenant without sprinkling random picks where logic belongs.
Plurals — grammatical agreement
{plural N: one|few|many} — the number picks the right form. Russian needs three, English two — the engine handles both per locale.
@spintax/core — the OSS engine
The engine ships on npm: zero dependencies, MIT, TypeScript. Render spintax anywhere JavaScript runs — not just WordPress.
Playground
Write a template, see the variants instantly. Live validation, variables, and shareable URLs — in the browser, nothing to install.
AI Authoring
Have a model draft the template once — then render variants with no API calls. Prompts, workflow, and the mistakes models make.
MCP Server
Agents validate, render, and analyze templates over MCP — hosted at spintax.net/mcp or local via npx.
Spintax Studio
A native Windows editor with live syntax checking and preview. Free in the Microsoft Store.
n8n Node
Render spintax inside your automations — unique emails, product feeds, and replies from one node.
Spintax Syntax
Spintax markup that turns a single template into thousands of unique variants.
#set %city% = {London|Berlin|Tokyo|New York} #set %hasPriority% = 1 Welcome to %city%!{?hasPriority? Priority support included.|} We offer [<minsize=2;maxsize=3;sep=", ";lastsep=" and "> fast delivery|free returns|24/7 support| price matching|expert advice]. {Our team|The crew|We} {will|can} help you {find the perfect|choose the right|pick the best} solution for your needs.
Welcome to Berlin! Priority support included. We offer free returns, expert advice and 24/7 support. The crew can help you pick the best solution for your needs.
How spintax works
From an AI draft to a live spintax template in three steps.
Draft with AI
Ask ChatGPT, Claude, or any AI to turn your brief into a spintax template.
Validate & preview
Paste it into the playground, or open it in Spintax Studio on Windows. Both check the structure and show the variants the template really produces.
Render anywhere
Generate the number of variants you need right in Studio and save them as TXT or XLSX — or render the same template with @spintax/core, the WordPress plugin or your own runtime.
Docs & Knowledge
Learn spintax from the ground up. Syntax reference, background, and tooling.
Syntax Reference
Complete reference for enumerations, permutations, variables, includes, and post-processing.
What is Spintax?
The history and evolution of spintax — from SEO tool to AI-powered content system.
Spintax Editors
Spintax Studio, the native Windows editor from the Microsoft Store — plus engine-accurate highlighting for VS Code and Sublime Text, the live playground and the archived GTW app.
Free WordPress Plugin
Already know spintax? Install the free plugin to render templates on your WordPress site — tested up to WordPress 7.0, with ACF and WooCommerce field bindings.
Field Bindings
Bind a template to an ACF field, post meta, or a WooCommerce product field. Every matching post gets its own variant — on save, on cron, or on demand.
Object Cache
Rendered output cached via WP Object Cache API. Redis and Memcached ready out of the box.
Cron Regeneration
Optional scheduled cache refresh per template. Set TTL overrides and let WordPress cron keep content fresh.
Open Source
The engine exists as independent, MIT-licensed implementations — for JavaScript, PHP, Python, Object Pascal and .NET — while the WordPress plugin stays GPL-2.0. No external services, no tracking: every render happens in your own runtime.
@spintax/core
The spintax engine for JavaScript and TypeScript. Runs in Node and in the browser — it is what powers the playground on this site.
npm install @spintax/core
spintax/core
The same engine for PHP 8.0+. Framework-agnostic, and the engine behind the WordPress plugin — extracted so any PHP app can use it.
composer require spintax/core
Using a tool that only understands flat braces? Ask its vendor to support the full syntax — here is the request, ready to paste:
Proposal: update the built-in spintax engine. This is not about replacing {option 1|option 2} — existing templates keep working and everything new is opt-in: permutations, variables, conditionals, plural agreement, reusable template parts, and a syntax check before generation. Open implementations for JavaScript, PHP, Python, Pascal and .NET, held to one shared compatibility corpus: spintax.net/spintax-engines/
What is Spintax?
Spintax (spin syntax) is our own template language for producing many genuinely unique variations of a text from a single source you control. You write one template that encodes every choice — alternatives, orderings, conditions, variables — and the engine expands it into thousands of distinct, ready-to-use variants. Every variation is one you defined, so the output stays on-brand and correct rather than a probabilistic guess.
The modern workflow pairs a language model with that template logic. Have an AI draft the richly varied template once; the engine then renders unlimited unique variants locally, deterministically, and at near-zero cost. There is no per-generation API call and no data leaves your infrastructure — the model supplies creativity once, the engine supplies scale forever. An editor reviews one template instead of writing every variant.
This is what sets spintax apart from generating each page straight from an LLM. Raw AI output is patterned and largely uncontrolled — the same prompts converge on the same shapes, quality drifts, and near-identical text invites duplicate-content penalties. With spintax the result depends only on the quality of your template: you fix the wording, tone, and structure once, and every one of the thousands of variants inherits it. That lets you roll genuinely distinct content across hundreds of pages, sites, or locales — unique by construction, not spun gibberish.
Modern spintax is far more than the flat {a|b|c} most tools stop at. It adds permutations that select and order a subset, scoped variables, value-driven conditionals, locale-aware plural agreement, reusable includes, and a post-processing pass for spacing and capitalisation. One structured template covers a much larger, better-controlled output space than the same length of flat spintax.
And it runs wherever you do. The engine ships as independent, open-source, zero-dependency implementations — for JavaScript, PHP, Python, Object Pascal, and .NET — alongside the WordPress plugin, all held to one shared corpus of golden fixtures so a template renders identically on every one. Nothing calls an external service: every variant is generated inside your own runtime, on your own hardware, at your own scale.