Firebase Environment Helper

I got tired of manually mapping and pasting Firebase config to env vars so I made this tool.

Convert your Firebase configuration and service account JSON to environment variables. Choose between Next.js and Expo prefixes for seamless integration with your project. This tool only runs in the browser—no data is sent to the server.

How to Use

Client Config

Paste your Firebase client configuration (the const firebaseConfig = {...} block from your Firebase console) to convert it to environment variables with NEXT_PUBLIC_FIREBASE_ or EXPO_PUBLIC_FIREBASE_ prefixes.

Service Account

Paste your Firebase service account JSON (downloaded from Firebase console → Project settings → Service accounts) to convert it to environment variables with FIREBASE_ or EXPO_FIREBASE_ prefixes.

Security Note

Never commit your environment variables or service account keys to version control. Add your .env files to your .gitignore.