Glob Pattern Tester
BetaThis tool is in beta. Some features may change or have limited functionality.Test glob patterns against file lists in real-time. Supports wildcards (*, **), character classes ([abc]), brace expansion ({a,b}), and negation patterns.
Common Patterns:
Results Label3 / 20 matched
- src/index.ts
- src/app.tsx
- src/components/Button.tsx
- src/components/Modal.tsx
- src/utils/helpers.ts
- src/utils/format.js
- src/hooks/useAuth.ts
- src/styles/global.css
- tests/app.test.ts
- tests/utils.test.js
- package.json
- tsconfig.json
- README.md
- node_modules/react/index.js
- dist/bundle.js
- public/logo.png
- public/favicon.ico
- docs/guide.md
- src/assets/hero.jpg
- src/assets/icon.svg
Syntax Title
*Any characters except path separator**Any characters including path separators (recursive)?Any single character[abc]Syntax Bracket{a,b}Syntax Brace!Syntax NegateWhy Use Our Glob Pattern Tester?
Glob patterns are used everywhere — in .gitignore files, CI/CD configurations, build tools, and shell commands. Getting them wrong can include unwanted files or miss critical ones. Our tester lets you paste your file list and test patterns instantly in the browser. No installation needed, and it supports all standard glob syntax including **, brace expansion, and negation.
Frequently Asked Questions
What is a glob pattern?
A glob pattern is a wildcard syntax used to match file paths. Common in shell commands (ls *.txt), .gitignore files, and build tools. Key operators: * matches any characters except /, ** matches across directories, ? matches a single character.
What is the difference between * and **?
* matches any characters within a single directory level (e.g., src/*.js matches src/index.js but not src/lib/utils.js). ** matches across multiple directory levels (e.g., src/**/*.js matches both).
How do brace expansions work?
Braces create comma-separated alternatives. For example, *.{js,ts} matches both .js and .ts files. {src,lib}/**/*.tsx matches .tsx files in either src/ or lib/ directories.
Can I use this for .gitignore patterns?
Yes, the syntax is very similar. You can test your .gitignore patterns here to verify they match the correct files before adding them to your repository.
Is this tool free to use?
Yes, completely free with no signup required. All pattern matching happens in your browser — nothing is uploaded to any server.