Google Services JSON Tool

Generate, parse and validate google-services.json for Firebase and Android apps

Paste or upload your file
Output will appear here...

What is Google Services JSON Tool?

google-services.json is a configuration file used by Firebase and Google services in Android applications. It contains essential information including project details, API keys, OAuth client IDs, and service configurations. This file is automatically generated by the Firebase Console when you add an Android app to your project, and it's required for Firebase SDK initialization.

How to Use

  1. Parse Mode: Paste your google-services.json content to validate and inspect its structure
  2. Generate Mode: Fill in your project details to create a valid google-services.json file
  3. Upload your existing google-services.json file to check for errors or missing fields
  4. Download the generated file and place it in your Android app's app/ directory
  5. Use the validation results to fix configuration issues before deploying your app

Why Use This Tool?

Validate google-services.json structure before integration
Generate valid configuration files for new Firebase projects
Identify missing or incorrect fields with detailed error messages
Understand your Firebase configuration with parsed output
Quick template loading for learning and testing
One-click download for immediate use in your project

Tips & Best Practices

  • Always download google-services.json from Firebase Console for production apps
  • Keep google-services.json in version control but restrict API key usage in Firebase Console
  • Use different google-services.json files for debug and release builds if needed
  • Verify package_name matches your app's applicationId in build.gradle
  • Never expose API keys in public repositories without proper restrictions

Frequently Asked Questions

What is google-services.json?

google-services.json is a configuration file used by Firebase and Google services in Android apps. It contains project information, API keys, OAuth client IDs, and other settings required for Firebase integration. This file is downloaded from the Firebase console when you add an Android app to your project.

How do I generate google services json?

You can generate google-services.json from the Firebase Console by creating a new project and adding an Android app. Alternatively, use this tool to create a valid google-services.json file by filling in your project details like Project ID, App ID, Package Name, and API Key.

Is google-services.json required for Firebase?

Yes, google-services.json is required for Firebase integration in Android apps. It provides essential configuration data that the Firebase SDK needs to connect to your Firebase project. Without it, Firebase services like Analytics, Cloud Messaging, and Authentication won't work properly.

How do I fix invalid google services json?

Use this validator tool to check your google-services.json file. Common issues include: missing required fields (project_info, client), invalid JSON syntax, incorrect API key format, or mismatched package names. The tool will highlight specific errors and suggest fixes.

Can I use google-services.json for multiple apps?

Yes, a single google-services.json can contain configuration for multiple Android apps (clients). Each client entry has its own package name and API keys. This is useful when you have multiple app variants (debug, release) or multiple apps in the same Firebase project.

Is google-services.json safe to commit to version control?

Generally yes, google-services.json can be committed to version control as it doesn't contain highly sensitive secrets. However, the API keys inside should be restricted to specific package names and SHA-1 certificates in the Firebase Console. For maximum security, consider using Firebase Remote Config for sensitive values.

Related Tools