Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 822747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:50:34+00:00 2026-05-15T02:50:34+00:00

Since localStorage (currently) only supports strings as values, and in order to do that

  • 0

Since localStorage (currently) only supports strings as values, and in order to do that the objects need to be stringified (stored as JSON-string) before they can be stored, is there a defined limitation regarding the length of the values.

Does anyone know if there is a definition which applies to all browsers?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:50:35+00:00Added an answer on May 15, 2026 at 2:50 am

    Quoting from the Wikipedia article on Web Storage:

    Web storage can be viewed simplistically as an improvement on cookies, providing much greater storage capacity (10 MB per origin in Google Chrome(https://plus.google.com/u/0/+FrancoisBeaufort/posts/S5Q9HqDB8bh), Mozilla Firefox, and Opera; 10 MB per storage area in Internet Explorer) and better programmatic interfaces.

    And also quoting from a John Resig article [posted January 2007]:

    Storage Space

    It is implied that, with DOM Storage,
    you have considerably more storage
    space than the typical user agent
    limitations imposed upon Cookies.
    However, the amount that is provided
    is not defined in the specification,
    nor is it meaningfully broadcast by
    the user agent.

    If you look at the Mozilla source code
    we can see that 5120KB is the default
    storage size for an entire domain.
    This gives you considerably more space
    to work with than a typical 2KB
    cookie.

    However, the size of this storage area
    can be customized by the user
    (so a
    5MB storage area is not guaranteed,
    nor is it implied) and the user agent
    (Opera, for example, may only provide
    3MB – but only time will tell.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've begun creating web apps that use localStorage , and since the data stored
Since REST is stateless, each request that comes in has no knowledge of the
Since now I have only used plugin for editing and the way I use
I have a web application that is currently using backbone.js 0.5.3 with backbone local
I'm building a guestlist app for my company using PHP, Javascript/jQuery/Ajax, JSON and localstorage.
Since (html5) localStorage and its equivalencies persist in between tabs and windows, I've thought
I'm currently looking at different ways to use various web/internet technologies in order to
I have a web application that uses both localstorage but also server side SQL
Since cookies are server-side and Localstorage is client-side, which is the fastest for the
since memcpy should be highly optimized nowadays, does it still make sense to optimize

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.