Write a template once.
Generate content 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), and runtime variable scopes with clean inheritance.
Nested Templates
Embed templates within templates via #include. Circular reference detection keeps your site 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.
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. Structural validation catches broken braces; the preview renders real variants.
Render anywhere
Ship it with @spintax/core in JS, the WordPress plugin, or your own runtime — one template, every surface.
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.
GTW History & Downloads
The Generating The Web engine that defined the syntax standard. Downloads and editor support.
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 ships as two MIT-licensed, zero-dependency packages — one for JavaScript, one for PHP — and the WordPress plugin is 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
About Spintax
Spintax (spin syntax) is a template markup language that emerged in the early 2000s for SEO content generation. The syntax was standardized by the Generating The Web (GTW) desktop application and includes enumerations, permutations, variables, template includes, and a post-processing pipeline. Today, spintax powers template-based content workflows where a single source document can produce thousands of unique text variants.
The modern spintax workflow combines AI and template logic: use a language model to draft a richly varied template once, then render unlimited unique variants locally at near-zero cost. This approach eliminates per-request API fees, keeps content generation on your own server, and gives you full control over output quality through explicit variation rules rather than probabilistic generation.
The Spintax WordPress plugin is a free, open-source implementation of the full GTW-compatible syntax. It runs entirely within your WordPress installation — no external services, no tracking, no data leaves your server. Templates are cached via the WordPress object cache and can be regenerated on a cron schedule, making spintax a production-ready tool for dynamic content at scale.