HTML5 Please

IndexedDB

Use with caution with fallbackapi

IndexedDB was a volatile spec for a year, but has settled down.

Verdict
Use with caution
Category
JavaScript APIs
Browser support
Can I Use
Works in
IE9+

Should you use IndexedDB in 2026?

Chrome, Firefox, Opera and IE10 have shipped it. Safari started to support it in iOS8.

The IndexedDB Polyfill is a polyfill for the IndexedDB APIs over WebSql. This enables IndexedDB to work on browsers that support WebSql. IDBWrapper helps smooth out the cross-browser differences. You may consider falling back to WebSQL when IndexedDB isn't available, but do keep in mind that WebSQL has been abandoned.

How to use it

const req = indexedDB.open('app', 1);
req.onupgradeneeded = () => req.result.createObjectStore('notes', { keyPath: 'id' });
req.onsuccess = () => {
  const tx = req.result.transaction('notes', 'readwrite');
  tx.objectStore('notes').put({ id: 1, text: 'hello' });
};

Polyfills and fallbacks

IDBWrapper, IndexedDB Polyfill