01What is Glob Pattern Tester?
Paste a list of file paths, type a glob, and every path gets a tick or a cross as you type. We built it for the moment your ESLint config, Jest testMatch or Actions path filter silently skips a file and you can't see why. The matcher follows the default rules of minimatch and picomatch, the two libraries behind most JavaScript tooling. Under the hood each pattern becomes a regular expression anchored to the whole path. A single * matches any run of characters inside one path segment, and ? matches exactly one character. A ** used as a whole segment matches zero or more directories. So src/**/*.tsx matches src/App.tsx and src/a/b/c.tsx, but not App.tsx at the root. Hidden files get special care. Wildcards never match a leading dot, so **/* skips .gitignore and src/.env. Spell the dot out (.*, **/.*) when you want them. Bracket classes like [abc] and [a-z] work, as do POSIX classes such as [[:digit:]], with ! or ^ to negate. Braces expand before matching, including nested sets, globs inside braces and ranges, so file{1..3}.txt matches file1.txt and file3.txt but not file4.txt. A leading ! flips the whole result, a backslash escapes the next character, and a leading ./ is dropped from both the pattern and each path. A quick worked case. With the pattern !**/*.test.ts, the path a.test.ts gets a cross and src/a.ts gets a tick. That is the negated-entry behaviour you see in ignore files. Likewise, src/** matches the folder src itself as well as everything under it. The counter above the list shows how many paths matched, and Copy Matched copies only those lines. Reset puts back the sample pattern and path list. The paths you paste are only tested inside this page. They are never uploaded. Now the limits. Extglobs such as +(a|b) or !(x) are not supported, so +(a|b).js only matches a file literally named +(a|b).js. The tester checks one pattern at a time, not a full .gitignore with its ordering rules. And Git's own matching differs: in .gitignore a pattern without a slash matches at any depth, while here *.json only matches top-level files. For the exact Git behaviour, read the gitignore page in the official Git documentation.
Developers configuring build tools, linters and CI pipelines, and DevOps engineers writing ignore files or deploy filters. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Glob Pattern Tester
- Type your pattern into Glob Pattern, for example src/**/*.tsx
- Paste the paths to test into File Paths (one per line), such as output from git ls-files
- Read the check and cross marks next to each path, plus the matched count
- Click Copy Matched to copy only the matching paths, or Reset to restore the sample
03Worked examples
- Input:
Pattern src/**/*.tsx against src/App.tsx, src/a/b/c.tsx, App.tsx, src/App.ts - Result:
src/App.tsx match, src/a/b/c.tsx match, App.tsx no, src/App.ts no - ** matches zero or more directories, so files directly in src/ match too.
- Input:
Pattern *.{js,ts} against index.js, index.ts, lib/index.ts - Result:
index.js match, index.ts match, lib/index.ts no - A single * never crosses a /, so files in subfolders are not matched.
- Input:
Pattern !**/*.test.ts against a.test.ts, src/a.ts - Result:
a.test.ts no, src/a.ts match - A leading ! negates the pattern: everything except test files matches.
- Input:
Pattern file{1..3}.txt against file1.txt, file3.txt, file4.txt - Result:
file1.txt match, file3.txt match, file4.txt no - Numeric brace ranges expand before matching.
- Input:
Pattern **/* against .gitignore, src/.env, src/a.ts - Result:
.gitignore no, src/.env no, src/a.ts match - Wildcards skip dotfiles unless the dot is written in the pattern.
- Input:
Pattern [[:digit:]]*.log against 1.log, app.log - Result:
1.log match, app.log no - POSIX character classes are supported inside brackets.
04Common use cases
- Checking that a .gitignore or .dockerignore entry catches the build output you expect
- Debugging an ESLint or Prettier files setting that isn't picking up nested components
- Writing include and exclude patterns for tsconfig.json or a Jest testMatch config
- Verifying path filters in a GitHub Actions workflow before pushing
- Testing a Webpack, Vite or Rollup plugin's include pattern against real file names
05Tips
- A leading ./ is stripped from both the pattern and the paths, so ./src/index.ts and src/index.ts behave the same.
- Like minimatch and picomatch without the dot option, wildcards here skip hidden files. Add the dot explicitly (.*, **/.*) to match them.
- A pattern without a slash, like *.json, only matches files at the top level here. .gitignore is different: there a slash-free pattern matches at any depth, so test **/*.json to mimic it.
- Tools disagree on a few edge cases. picomatch reads [!a] at the start of a pattern differently and doesn't expand {1..3} ranges unless configured, and minimatch doesn't let a/** match a itself; this tester follows minimatch on the first two and picomatch on the last.
- Run git ls-files or find . -type f to get a realistic path list to paste in.
06Related concepts
glob patterns, wildcards, brace expansion, gitignore, regular expressions.
Frequently Asked Questions
What is Glob Pattern Tester?
Glob Pattern Tester is a free, browser-based developer tool on AIDToolStack. Test glob patterns against file paths It requires no installation or sign-up and works entirely in your browser.
Is Glob Pattern Tester free to use?
Yes. No sign-up, no fees and no usage cap.
Does Glob Pattern Tester store my data?
No. It runs in your browser; nothing is uploaded.
Cheat sheet
- AI Agent Rules Files Cheat Sheet: CLAUDE.md, AGENTS.md, Cursor, Copilot, Gemini and More
- CODEOWNERS and SPDX Cheat Sheet: Owners, Patterns and Licence IDs
- find and xargs Cheat Sheet: Tests, -exec, -print0 and Parallel Runs
- Glob Patterns Cheat Sheet: Bash, .gitignore and Node fs.glob
- rsync Cheat Sheet: Flags, Trailing Slash, Excludes, scp and sftp