Security
- Allow with no condition or if true
- Test-mode rules open until a date
- Writes allowed to any signed-in user
- Email domain checked without email_verified
- Every client request denied (locked mode)
Paste your firestore.rules to pinpoint syntax errors, documented limits, and the insecure patterns Firebase warns about—each with its exact line and column. Free, no account required.
Runs locally in your browser. Nothing you enter leaves this page.
Last reviewed:
Checked as you type. Nothing you paste leaves this page.
Load an example
Tab inserts two spaces. To leave the editor with the keyboard, press Esc, then Tab.
The rules parse. Found 1 note.
access-call-countFirebase docs for access-call-count (opens in a new tab)
A static check, not the Firebase compiler. It reads the text of your rules and never runs them against data. Before you deploy, test them with the Firestore emulator or the Rules Playground.
A parser built from Firebase's rules language reference reads every match, allow, and function using the documented operator precedence, reporting all syntax errors with their exact line and column—not just the first.
Once parsed, the checker inspects each rule against the risks in Firebase's insecure rules guide alongside common mistakes disallowed by the language.
It also checks the security rule limits visible in static analysis: nesting depth, wildcard count, function arguments, let bindings, and the number of get() and exists() calls per rule.
Each finding links directly to the Firebase documentation behind it. When static analysis can't be certain, the checker stays quiet to avoid false positives.
With if true—or no condition at all—anyone who knows your project ID can read, modify, or delete your data (insecure rules).
match /{document=**} {
allow read, write: if true;
} The Firebase CLI's starter rules leave your entire database public until a cutoff date—after which every client request suddenly fails.
allow read, write: if request.time < timestamp.date(2027, 1, 3); request.auth != null grants access to every authenticated user in your app, not just the document owner. Firebase flags this so you can verify that broad access is intentional (insecure rules).
// Every signed-in user can write every note
allow write: if request.auth != null;
// Only the owner can
allow write: if request.auth.uid == userId; Checking an email address alone trusts an unconfirmed address. Require email_verified alongside the domain check (insecure rules).
allow read: if request.auth.token.email_verified
&& request.auth.token.email.matches('.*@example[.]com'); During a create operation, no document exists yet, so resource is null and resource.data fails (Firebase codelab). Read incoming fields from request.resource.data instead.
allow create: if request.auth.uid == request.resource.data.ownerId;
allow update, delete: if request.auth.uid == resource.data.ownerId; When multiple match blocks cover the same document, access is granted if any single one allows it—a false rule never overrides a true one (overlapping match statements).
match /cities/{city} { allow read, write: if false; }
// Still allows everything under /cities:
match /cities/{document=**} { allow read, write: if true; } resource.data.ownerId exists or has the expected type is only known at runtime; a missing field causes the rule to fail (rules and fields).get() and exists(). The checker counts calls against Firestore's limits, but it cannot fetch the referenced documents.@firebase/rules-unit-testing (unit tests) to evaluate real requests and inspect coverage.firebase deploy --only firestore:rules (manage and deploy rules). Remember that each named database maintains its own rules.No. It is a static analyzer that runs in your browser to catch syntax errors, documented limits, and risky patterns. Firebase's own compiler validates rules on deploy, and only the Firestore emulator or Rules Playground evaluates rules against real requests. A file accepted here can still be rejected by Firebase, and vice versa.
No. The checker runs completely locally in your browser—nothing you paste is uploaded, stored, or logged.
Without that declaration, Firebase defaults to version 1. Version 2 is required for collection group queries (allowing recursive wildcards anywhere in a path and matching empty paths) and adds support for let bindings inside functions.
Yes, partially. It parses Cloud Storage rules and runs all shared checks—such as syntax, open access, and expiring test-mode dates—while skipping Firestore-specific checks like resource on create or get() call counts.
Run them against the local Firestore emulator using @firebase/rules-unit-testing for repeatable automated tests, or test individual requests in the Firebase console's Rules Playground. When ready, deploy with firebase deploy --only firestore:rules.
Fuego is a desktop app for Firestore, Realtime Database, Authentication, and Storage on macOS, Windows, and Linux. The Free plan covers one project.