Export IndexedDB from a web app using devtools

  1. Find out the database name of the IndexedDB databases.
  2. Include dexie-export-import into the page.
  3. Export the database to a blob.
  4. Generate a “download link” to click on.

1. Find out Database Name

I personally use chrome devtools but most of these instructions would work in Firefox, opera, edge and possible Safari as well. To open devtools on mac, click CMD+ALT+I. On Windows, press F12.

2. Include dexie-export-import into the page.

In devtools, click Console tab. Write the following line in console ONE line at a time:

3. Export database to a blob

4. Generate a “download link” to click on.

How to use the exported file

The exported file will be a JSON file that you can inspect or parse or re-import using dexie-export-import package on your own application. See how that package works in the docs at dexie.org.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store