Word Combinations by Mask (Spintax Generator)

Enter a template mask with {option1|option2} blocks (including empty options like {truck|} and nested groups up to 5 levels deep). All combinations are generated locally in your browser.


How Mask / Spintax Word Combinations Work

A mask-based combination generator (often called Spintax) lets you write a single sentence or template containing inline variation groups wrapped in curly braces {...} and separated by vertical pipes |. Instead of maintaining separate word lists in multiple columns like the classic Word Combinations tool, you embed choices directly inside natural text - and even nest sub-choices inside existing branches.

Syntax Features & Examples

  • Basic Alternatives: {Jane|Mike} expands to two variants: Jane and Mike.
  • Optional / Empty Branches: Leaving one side of the pipe empty - such as {truck|} or {|very }fast - produces both the word and an empty string. With Collapse extra spaces enabled, I'm a {truck|} driver cleanly becomes I'm a truck driver and I'm a driver without awkward double spaces.
  • Nested Groups: Place a {...} block inside another branch, for example {drive|drink coffee with {milk|sugar}}. This produces three outcomes: drive, drink coffee with milk, and drink coffee with sugar.
  • Escaping Literal Braces or Pipes: Prefix a character with a backslash (\{, \}, \|) if you need literal braces or pipes in your output text.

Safety Limits (Nesting Depth & Max Output)

Because each additional {a|b} group multiplies the total number of combinations, deeply nested or overly long masks can grow exponentially (for example, twenty {a|b} blocks produce over 1,000,000 strings). To keep your browser fast and responsive, this generator enforces two client-side guardrails:

  • Maximum Nesting Depth (5 levels): Templates nested deeper than 5 {...} levels are rejected with a clear error message.
  • Maximum Output Cap (2,000 lines): If a template produces more than 2,000 combinations, generation stops safely at 2,000 lines and displays a notice.

Practical Use Cases & FAQ

  • QA & Test Data Generation: Quickly generate dozens of realistic user prompts, search queries, API test payloads, or localized greeting strings from a single readable mask.
  • Ad Copy, Email Subject Lines & SEO Titles: Brainstorm and review every possible permutation of a headline ({Free|Fast|Online} {JSON|XML} {Formatter|Validator}) before picking the strongest phrasing.
  • CLI & URL Permutations: Generate lists of test URLs or shell commands (e.g. https://{dev|staging|prod}.example.com/{api|admin}) without writing a loop in Python or Bash.
  • Why did I get an "Unclosed '{'" error? Every opening { must have a matching }. If your text contains a literal brace (like JSON), escape it as \{ and \}.
  • Is my template sent to the server? No. Parsing and expansion run 100% locally in your browser using JavaScript.
Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy