     [Answers](https://scrapfly.io/blog)   /  [tools](https://scrapfly.io/blog/tag/tools)   /  [How to edit Local Storage data using browser Devtools](https://scrapfly.io/blog/answers/how-to-edit-local-storage-using-devtools)   # How to edit Local Storage data using browser Devtools

 by [Bernardas Alisauskas](https://scrapfly.io/blog/author/bernardas) Aug 03, 2023 1 min read [\#tools](https://scrapfly.io/blog/tag/tools) 

 [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-edit-local-storage-using-devtools "Share on LinkedIn")    

 

 

Local storage is a web browser feature that allows websites to store data on the user's computer in a key-to-value format.

To control and edit local storage access the developer tools using `F12` key or `right-click -> inspect` and select the `Application` tab:



Here the value can be changed to any other string value that is under 5MB in size.

Note that all local storage values are stored as strings though can be any object like JSON or number as local storage is handled by Javascript.

In this example, the [web-scraping.dev/product/1](https://web-scraping.dev/product/1) page is tracking the shopping cart state using local storage and JSON. Every "add to cart" button click updates the local storage JSON dataset with product id and quantity:



So, we have full control of the shopping cart just by manipulating this value.



 

    



Scale Your Web Scraping

Anti-bot bypass, browser rendering, and rotating proxies, all in one API. Start with 1,000 free credits.

  No credit card required  1,000 free API credits  Anti-bot bypass included 

 [Start Free](https://scrapfly.io/register) [View Docs](https://scrapfly.io/docs/onboarding) 

 Not ready? Get our newsletter instead. 

 

## Explore this Article with AI

 [ ChatGPT ](https://chat.openai.com/?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-edit-local-storage-using-devtools) [ Gemini ](https://www.google.com/search?udm=50&aep=11&q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-edit-local-storage-using-devtools) [ Grok ](https://x.com/i/grok?text=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-edit-local-storage-using-devtools) [ Perplexity ](https://www.perplexity.ai/search/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-edit-local-storage-using-devtools) [ Claude ](https://claude.ai/new?q=Summarize%20this%20page%3A%20https%3A%2F%2Fscrapfly.io%2Fblog%2Fanswers%2Fhow-to-edit-local-storage-using-devtools) 



 ## Related Articles

 [  

 headless-browser 

### How to scrape Local Storage using Headless Browsers

Introduction to scraping local storage - a key value store available in all browsers and used in many modern SPAs - all ...

 

 ](https://scrapfly.io/blog/posts/what-is-local-storage-and-how-to-scrape-it) [  

 ai 

### Guide to Local LLMs

Discover the benefits of deploying Local LLMs, from enhanced privacy and reduced latency to tailored AI solutions.

 

 ](https://scrapfly.io/blog/posts/guide-to-local-llm) [     

 api ai 

### Scraper API vs Crawler API - When to Use Each for AI

Scraper API for pages, Crawler API for domains. Learn when to use each Scrapfly API for AI training, RAG applications, a...

 

 ](https://scrapfly.io/blog/posts/scraper-api-vs-crawler-api) 

  ## Related Questions

- [ Q How to edit cookies in Chrome devtools? ](https://scrapfly.io/blog/answers/how-to-edit-cookies-using-chrome-devtools)
- [ Q What are devtools and how they're used in web scraping? ](https://scrapfly.io/blog/answers/browser-developer-tools-in-web-scraping)
- [ Q How to select elements by class using CSS selectors? ](https://scrapfly.io/blog/answers/how-to-select-elements-by-class-css-selectors)
- [ Q How to find HTML elements by text value with BeautifulSoup ](https://scrapfly.io/blog/answers/how-to-find-html-elements-by-text-with-beautifulsoup)
 
  



   



 Scale your web scraping effortlessly, **1,000 free credits** [Start Free](https://scrapfly.io/register)