# Storing a HTML file in LocalStorage

**URL:** <https://forum.kirupa.com/t/storing-a-html-file-in-localstorage/326314>\
**Category:** web dev\
**Created:** [December 6, 2011, 6:40pm UTC](https://forum.kirupa.com/t/storing-a-html-file-in-localstorage/326314 "2011-12-06T18:40:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 6, 2011, 6:40pm UTC](https://forum.kirupa.com/t/storing-a-html-file-in-localstorage/326314/1 "2011-12-06T18:40:48Z")

</div>

Since localstorage is capable of storing huge content. Is it possible to store a HTML file or a PDF file in local storage.

I know it only accepts String. Is it possible to stringify HTML file and store it in Local Storage and meanwhile retreive it as a HTML.

Thanks.
