HTML Viewer

Preview HTML, CSS and JavaScript as you type

Runs on this device
Editor
index.html
styles.css
script.js
Preview
Live

Tab inserts 2 spaces, Shift+Tab leaves the editor  ·  Double-click a tab to rename

CSS and JS files are added to the HTML preview

What does the HTML Viewer do?

HTML Viewer renders HTML, CSS and JavaScript as a live preview and downloads page.html. Opening a file, up to 2 MB, replaces the selected editor's contents.

Is my code uploaded or saved anywhere?

The editor saves code in this browser's localStorage without uploading it. Scripts, images or stylesheets linked from other sites are still requested from those servers in preview.

Can the previewed JavaScript access this website?

No. The sandboxed iframe lacks same-origin access, so it cannot read this site's storage or cookies. localStorage will not work in the preview.