MrHimanshu.comAlways ready to work
Let’s talk

CODE / SANDBOX

HTML Viewer

Edit HTML and preview it live in an isolated sandbox that cannot touch the page around it.

Free · runs in your browser

Preview (sandboxed)

Runs entirely in your browser. Nothing you enter is sent anywhere.

How to use HTML Viewer

  1. Paste or write HTML (and CSS or JavaScript inside it) in the editor.
  2. The sandboxed preview refreshes shortly after you stop typing.
  3. Resize your window to test how the page behaves on different widths.

How the sandbox protects you

The preview is an iframe with the sandbox attribute set so that its content gets a unique origin. Scripts inside can run, but they cannot read this site's cookies or storage, and they cannot navigate this page.

That makes it safe to paste snippets you found online to see what they do. It is still sensible to read code before running it, because a snippet can load files from other websites.

What it is good for

Testing a layout idea, trying a CSS rule on a small page, checking an email-template fragment or reproducing a bug in a few lines. Put CSS in a style tag and JavaScript in a script tag in the same document.

It does not save your work. Copy your code out before closing the tab.

Frequently asked questions

Why is the preview sandboxed?

The preview runs in an iframe with a unique origin, so scripts inside it cannot read this site's cookies, storage or page.

Can the preview load external files?

Yes, images and stylesheets from the web load normally. Nothing is stored on our side.

Does my code leave my device?

No. The code is placed straight into the preview frame in your browser.

All 9 in Developer toolsBrowse all 38 free tools