How do I export data from Firebase Realtime Database?

Grimthorr picture Grimthorr · Nov 8, 2017 · Viewed 30.6k times · Source

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?

Answer

Grimthorr picture Grimthorr · Nov 8, 2017

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.