HTML Formatter
Beautify or minify HTML and find unclosed tags, stray closing tags, and duplicate attributes.
Paste HTML and see it rendered live in a secure sandbox. Free, private, and 100% in your browser.
Full width · Sandboxed preview · JavaScript off · Offline (no network requests)
An HTML viewer renders HTML code so you can see the result without creating a file or opening a browser tab. It is useful for checking email templates, snippets from documentation, generated reports, and markup you are about to publish.
This viewer renders your code in an isolated sandbox. Scripts and network requests are off unless you turn them on, so previewing a page never runs code or contacts other servers without your permission.
The page re-renders as you type, so you see every change right away.
The preview runs in an isolated iframe that cannot access this site, your cookies, or other tabs.
JavaScript only runs if you enable it, so pasted code cannot do anything unexpected.
External images, stylesheets, fonts, and requests are blocked unless you allow them, so nothing is sent to third parties.
Switch between full width, tablet (768px), and mobile (375px) to check responsive layouts.
Your HTML is rendered locally in your browser. It is never uploaded.
The preview runs in a sandboxed iframe with a unique origin, so it cannot read this site's data, your cookies, or other pages. JavaScript is disabled and network access is blocked by default. Only enable them for code you trust.
To protect your privacy, external resources are blocked by default so that previewing HTML never contacts other servers. Enable Load external resources to load images, CSS, and fonts from the web. Inline styles and data: URLs always work.
Scripts are disabled by default for safety. Enable Run JavaScript to run inline scripts. External script files also need Load external resources.
Yes. Upload or drop an .html file, or paste a complete document including <!DOCTYPE html>, <head>, and <body>. Relative links to other files on your computer cannot be loaded.
No. The preview is rendered entirely in your browser. Your HTML never leaves your device.
Beautify or minify HTML and find unclosed tags, stray closing tags, and duplicate attributes.
Beautify, minify, and validate JSON instantly with exact line and column error reporting.
Compare two JSON documents side by side and see every added, removed, and changed value.
Convert JSON to well-formed XML with custom root and item names, attributes, and indentation.