Firebase Rules Generator
Craft secure & reliable rules for Firestore, Storage, and Realtime Database with an intuitive interface.
Join Our Community!
Stay updated with the latest features, get support, and connect with other developers on our Telegram channel.
This generates the rule: get(/databases/$(database)/documents/users/$(request.auth.uid)).data.isAdmin == true
AI suggestions are experimental and may require adjustments. Always review carefully.
Applying a template will replace your current rule definitions for firestore.
Define Your Rules (1)
Use {variable} for Firestore/Storage or $variable for RTDB wildcards.
Using 'userId' from path for 'Owner Only' checks.
Powerful Features, Simplified
Everything you need to craft robust Firebase security rules without the headache.
Quickly generate complex Firebase rules for Firestore, Storage, and Realtime Database.
Emphasizes secure defaults like 'owner-only' access and robust validation options.
Customize paths, permissions, data types, validation (regex, min/max), and admin checks.
See your generated rules update instantly as you make changes in the UI.
Use the generator seamlessly on any device, desktop or mobile.
Easily define and configure 'Admin Only' access with customizable checks.
Start with pre-built templates and enjoy light/dark mode for comfortable usage.
How It Works
Generating Firebase rules is a breeze with our intuitive interface.
Choose Firestore, Storage, or Realtime DB. Add rule paths like 'users/{userId}'.
Set read/write permissions (public, owner, admin) and add data validation rules.
Specify how 'Admin Only' access is verified for each service if defaults don't fit.
Copy or download your production-ready rules file and deploy it to Firebase.
About This Tool
The Firebase Rules Generator is a powerful, open-source tool designed to simplify the often complex task of writing secure and reliable Firebase Security Rules. Whether you're working with Cloud Firestore, Cloud Storage, or Realtime Database, this generator provides an intuitive interface to define paths, permissions, and data validations, helping you protect your application and user data effectively.
Created by Dr King BD
Connect on Telegram