Search code examples
firebasefirebase-realtime-databasefirebase-console

How do I export data from Firebase Realtime Database?


I am developing with Firebase and have data stored in the Realtime Database. I need to share my database structure for a question here on Stack Overflow, or just take a backup before making breaking changes. How can I do this using the Firebase Console?


Solution

  • Data can be exported from the Firebase Realtime Database as JSON:

    1. Login to the Database section of the Firebase Console.
    2. Navigate to the node you wish to export by clicking on it in the list (skip this to export all data).
    3. Click the 3-dot overflow menu icon, at the top-right of the data panel.
    4. Click Export JSON from the menu.

      console menu screenshot

    Likewise, you can import a structure in the same fashion, using Import JSON.