IndexedDB

JavaScript application programming interface


title: "IndexedDB" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["world-wide-web-consortium-standards", "database-apis", "web-technology"] description: "JavaScript application programming interface" topic_path: "general/world-wide-web-consortium-standards" source: "https://en.wikipedia.org/wiki/IndexedDB" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0

::summary JavaScript application programming interface ::

::data[format=table title="Infobox technology standard"]

FieldValue
titleIndexedDB
long_nameIndexed Database API
native_nameIndexed Database API
native_name_langen
statusFirst Public Working Draft
year_started
first_published
version3.0
version_date11 March 2021
previewEditor's Draft
preview_date11 March 2021
organization{{Plainlist
* Mozilla<ref name"standard-v2" /
* Oracle<ref name"standard-2015"
committeeWeb Applications Working Group
editors{{Plainlist
* Ali Alabbas<ref name"standard" /
* Joshua Bell<ref name"standard" /
{{Collapsible listtitle
base_standards{{Plainlist
related_standards{{Plainlist
abbreviationIndexedDB
domainNoSQL databases
website
::

| title = IndexedDB | long_name = Indexed Database API | native_name = Indexed Database API | native_name_lang = en | image = | caption = | status = First Public Working Draft | year_started = | first_published = | version = 3.0 | version_date = 11 March 2021 | preview = Editor's Draft | preview_date = 11 March 2021 | organization = {{Plainlist|

The Indexed Database API (commonly referred to as IndexedDB) is a JavaScript application programming interface (API) provided by web browsers for managing a NoSQL database of objects. It is a standard maintained by the World Wide Web Consortium (W3C).

As an alternative to the Web storage standard, IndexedDB can provide more storage capacity. Web storage has fixed limits per website, but IndexedDB limits are "usually quite large, if they exist at all".

Use cases for IndexedDB include caching web application data for offline availability. Some browser modules, such as devtools or extensions, may also use it for storage.

History

Support for IndexedDB was added to Firefox version 4 (March 2011), Google Chrome version 11, Internet Explorer version 10, Safari version 8, and Microsoft Edge version 12.

Web SQL Database was a prior API developed by Apple. But Firefox refused to add support for it and argued against it becoming a standard because it would codify the quirks of SQLite. It was thus deprecated in favor of IndexedDB.

IndexedDB 1.0 became a W3C Recommendation on January 8, 2015.{{Cite web|url=https://www.w3.org/TR/2015/REC-IndexedDB-20150108/|title=Indexed Database API|date=2015-01-08|access-date=2021-05-16|publisher=Web Applications Working Group|author=Web Applications Working Group|website=W3C|version=W3C Recommendation |editor-first1=Nikunj|editor-last1=Mehta |editor-first2=Jonas|editor-last2=Sicking |editor-first3=Eliot|editor-last3=Graff |editor-first4=Andrei|editor-last4=Popescu |editor-first5=Jeremy|editor-last5=Orlow |editor-first6=Joshua|editor-last6=Bell |editor-first=Ali|editor-last=Alabbas |editor-first2=Joshua|editor-last2=Bell

Performance

Because IndexedDB is running inside of the security sandbox of a browser, all operations have to go through various security layers which decreases the performance of IndexedDB. With IndexedDB 2.0 the getAll() method was added which allows to improve performance on bulk read operations.

References

References

  1. Web Applications Working Group. (2021-03-11). "Indexed Database API 3.0". Web Applications Working Group.
  2. Web Applications Working Group. (2021-03-11). "Indexed Database API 3.0". Web Applications Working Group.
  3. (2015-01-08). "Indexed Database API".
  4. "Working with IndexedDB". Google Inc..
  5. "Using IndexedDB". Mozilla.
  6. "IndexedDB - MDC Doc Center". Developer.mozilla.org.
  7. (2012-05-21). "IndexedDB - Chrome Platform Status". The Chromium Projects.
  8. (2012-03-14). "IndexedDB". MSDN.
  9. (2017-07-09). "OS X Yosemite v10.10 § App Features". Apple.
  10. (n.d.). "IndexedDB".
  11. Shankland, Stephen. (2010-03-12). "Consensus emerges for key Web app standard | Deep Tech - CNET News". News.cnet.com.
  12. (2010-06-04). "Well, I'm Back: Not Implementing Features Is Hard". Weblogs.mozillazine.org.
  13. (2010-06-01). "Beyond HTML5: Database APIs and the Road to IndexedDB – Mozilla Hacks - the Web developer blog".
  14. "html5 - Why is Web SQL database deprecated?".
  15. W3C. (2018-01-30). "Indexed Database API 2.0 is now a W3C Recommendation {{!}} W3C News".
  16. (2024-11-07). "Indexed Database API 3.0 publication history".

::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::

world-wide-web-consortium-standardsdatabase-apisweb-technology