IT lexicon › Web › localStorage

localStorage

Web På svenska → Updated: 2026-05-23

Browser API for storing small amounts of data (5-10 MB) per domain — persists until explicitly cleared.

Synchronous key-value API: localStorage.setItem('theme','dark'). Strings only; use JSON.stringify for objects. Not a secure place — any script on the page can read it.

← Back to the lexicon