Skip to content

Glob Pattern Tester

Test glob patterns against file paths in real time. See which paths match your pattern with instant highlighting. Free, 100% in your browser.

No matches

What are glob patterns?

Glob patterns are wildcard expressions used to match file and directory paths. They originated in Unix shells and are now used across virtually all programming languages, build tools, and configuration files. Globs provide a concise syntax for selecting groups of files based on their names and paths without using full regular expressions.

Glob syntax reference

* — matches any sequence of characters within a single path segment (not /). ** — matches zero or more path segments (directories). ? — matches exactly one character (not /). [abc] — matches any one character in the set. [a-z] — matches any character in the range. [!abc] — matches any character NOT in the set. {a,b,c} — matches any of the comma-separated alternatives (brace expansion). !(pattern) — negation (match if pattern does not match).

Common use cases

.gitignore — define which files Git should ignore. Build tools — configure file inputs for webpack, Vite, Rollup, and other bundlers. CI/CD pipelines — trigger workflows based on changed file paths. Linters & formatters — target specific files with ESLint, Prettier, or Stylelint. Test runners — select which test files to run with Jest, Vitest, or Mocha.

Privacy

All pattern matching runs 100% in your browser. No data is sent to any server.