Skip to main content
Back to Tools
Web Tools

Glob Pattern Tester

Test glob patterns against file paths with support for wildcards (*), globstar (**), character classes ([a-z]), brace expansion ({js,ts}), and negation (!). Instantly see which paths match your pattern. Runs entirely in your browser — your data never leaves your machine.

glob pattern wildcard file match gitignore filter path

Published May 29, 2026

All interactive tools run entirely in your browser. Your data never leaves your device.

How It Works

Enter a glob pattern and a list of file paths to instantly see which paths match. The matcher supports standard glob syntax used in tools like .gitignore, shell expansion, and bundler configurations.

Features

  • Star wildcard (*): matches any characters within a single path segment
  • Globstar (**): matches across directory boundaries (any depth)
  • Question mark (?): matches exactly one character
  • Character classes ([a-z]): match character ranges, with negation via [!…]
  • Brace expansion ({js,ts}): match any of the alternatives, supports nesting
  • Negation (!): prefix pattern with ! to invert matching
  • Live results: instant match/no-match feedback per path
  • Copy matches: one-click copy of all matched paths
  • 5 examples: star, globstar, braces, character class, negation
  • Private: runs entirely in the browser — no data transmitted

Use Cases

  • Testing .gitignore patterns before committing
  • Verifying file glob patterns for bundler/build tool configuration
  • Debugging path matching in CI/CD pipeline configs
  • Learning glob pattern syntax interactively
  • Filtering file lists for shell scripts