How to use it
- Paste HTML into the box, a full page or just a fragment.
- See the live preview below; it updates a moment after you stop typing.
- Switch between Full width, Tablet and Phone to check responsive layouts.
- Use Beautify to tidy the code, then copy it or download it as an .html file.
Preview HTML safely
Sometimes you just need to see what a piece of HTML looks like: an email template, a snippet from a CMS, a page an AI tool wrote, or an HTML file someone sent you. The preview runs in a sandboxed frame with no access to this site, your cookies or your other tabs. JavaScript is off by default; turn on Run JavaScript only for code you trust, and even then it stays inside the sandbox.
The Phone and Tablet widths (375 and 768 pixels) show how the layout behaves on small screens, which is where most Indian users will see it. CSS media queries respond to these widths just as they would on a real device.
Beautify
Beautify re-indents tags so nested structure is easy to follow, while leaving the contents of script, style, pre and textarea blocks untouched. It only changes whitespace between tags, so the page looks the same afterwards. To show HTML code as text on a web page, escape it first with HTML Entity Encode.
Questions
- Is it safe to preview unknown HTML?
- With JavaScript off, the frame cannot run scripts. With it on, scripts run in an isolated sandbox that cannot reach this site or your data, but avoid running code you don't trust.
- Why don't my images or CSS files load?
- Relative paths like images/logo.png have no folder to load from here. Use full https:// links.
- Can I open an .html file?
- Open it in a text editor, copy everything and paste it here.
- Is what I paste sent to a server?
- No. The tool runs as JavaScript in your browser. Your text, files and keys stay on your device, so it is safe to use with internal data, tokens and customer records. It keeps working offline after the page has loaded once.