Preview HTML safely inside a sandboxed iframe.
Paste or load HTML and see it rendered right next to the editor, inside a sandboxed frame that is kept separate from the site. Scripts are off unless you switch them on. It is a quick way for developers to test snippets, email markup or layouts without creating a file.
An iframe embeds another HTML document inside a page. The sandbox attribute puts the embedded document under strict restrictions: with an empty sandbox value it cannot run scripts, submit forms, open popups, navigate the parent page or access the parent's cookies and storage, and it is treated as coming from a unique origin. Individual permissions can be added back by listing tokens, such as allow-scripts to let JavaScript run. This tool feeds your HTML to the frame through the srcdoc attribute, so the markup is shown as its own document and is never inserted into the surrounding page. That makes it a reasonably safe way to preview markup you did not write.
Scripts are blocked by default and the page runs in a sandboxed iframe, so it cannot touch this site. Even with scripts allowed the frame stays isolated, but only run code you understand.
Scripts are off by default. Tick Allow scripts in preview and the frame reloads with JavaScript permitted.
Resources referenced by absolute URL are requested by the browser as usual. Relative paths do not resolve because the frame is a standalone document without a base location.
No. The sandbox blocks form submission and popups, and navigation is restricted, so links and forms do not behave as on a normal page.
No. It renders whatever the browser can parse, and browsers are forgiving about errors. It does not report problems or reformat the code.