/ Developer tools

HTML Viewer

Paste HTML or open a file to see it rendered live. The preview is sandboxed and isolated from this site.

How to preview HTML

Paste any HTML, including inline <style> and <script> tags, into the editor. The preview updates as you type. Use the width selector to check how your page looks on tablets and phones, or drag an .html file straight onto the editor.

Is it safe to preview unknown HTML?

The preview runs inside a sandboxed iframe with its own isolated origin, so scripts can't read this site's storage or cookies. If you don't trust the code, untick Run JavaScript to render only the markup and styles.

Tips

Relative links to images or stylesheets won't load because the file isn't on a server. Use absolute URLs (starting with https://) or inline the assets.