We're looking for a person or people to help audit MDN to find places we could speed up. Is this you or someone you know? Check out the RFP: https://mzl.la/2IHcMiE

The indexedDB read-only property of the WindowOrWorkerGlobalScope mixin provides a mechanism for applications to asynchronously access the capabilities of indexed databases.


var IDBFactory = self.indexedDB;


An IDBFactory object.


var db;
function openDB() {
 var DBOpenRequest = window.indexedDB.open('toDoList');
 DBOpenRequest.onsuccess = function(e) {
   db = DBOpenRequest.result;


Specification Status Comment
Indexed Database API 2.0
The definition of 'indexedDB' in that specification.
Recommendation Defined in a WindowOrWorkerGlobalScope partial in the newest spec.
Indexed Database API
The definition of 'indexedDB' in that specification.
Recommendation Initial definition.

Browser compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 23webkit
(Yes) 10 moz
16.0 (16.0)
52.0 (52.0)[1]
10, partial 15 7.1
Available in workers (Yes) (Yes) 37.0 (37.0) ? (Yes) ?
Indexed Database 2.0 58 ? ? ? 45 ?
Feature Android Webview Chrome for Android Edge Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
Basic support (Yes) ? (Yes) 22.0 (22.0)
52.0 (52.0)[1]
1.0.1 10 22 8
Available in workers (Yes) ? (Yes) 37.0 (37.0) (Yes) ? (Yes) ?
Indexed Database 2.0 58 58 ? ? ? ? 45 ?

[1] indexedDB now defined on WindowOrWorkerGlobalScope mixin.

See also

Document Tags and Contributors

 Contributors to this page: jpmedley, nmve, arronei, chrisdavidmills, libbymc, teoli, fscholz
 Last updated by: jpmedley,