What Is Firestore Document Format?
Cloud Firestore is a flexible, scalable NoSQL database from Firebase. It stores data in documents that use typed fields such as stringValue, integerValue, booleanValue, mapValue, and arrayValue. The Firestore REST API requires data in this structured format, making conversion from plain JSON essential for programmatic database imports and exports.
How to Convert JSON to Firestore
- Paste your JSON data into the input box. Ensure it is valid JSON with proper syntax.
- Click Convert to transform each value into its typed Firestore equivalent using the
mapValue,arrayValue, and primitive field types. - Copy or download the resulting Firestore document structure for use in Firebase REST API calls, security rules, or batch imports.
Frequently Asked Questions
What Firestore field types are supported?
The converter maps JSON types to Firestore types automatically: string to stringValue, number to integerValue or doubleValue, boolean to booleanValue, null to nullValue, arrays to arrayValue, and objects to mapValue.
Can I convert Firestore documents back to JSON?
Yes. Use the Swap button to reverse the conversion. The bidirectional converter supports both directions so you can extract plain values from Firestore typed structures.
Is this tool safe for sensitive data?
Absolutely. All processing happens entirely in your browser. Your data is never uploaded to any server.