HTML viewer
Paste HTML code, open an .html file or load a web page, and see it rendered as you type. Check how it looks on a phone, tidy or shrink the code, find unclosed tags and download the file. It all runs in your browser.
Type or paste HTML in the editor below. The preview updates as you type.
Shows the HTML a page sends to browsers. Scripts, inline styles and comments are removed for safety, so the preview may look plainer than the real page.
HTML
Tab adds two spaces. Press Escape, then Tab, to move out of the editor. Control and Enter updates the preview.
PreviewFits the panel
Page summary
What search engines and browsers will read in this HTML.
- Title
- Meta description
- Language
- Words of text
- Links
- Images
- Also contains
Quick checks
Common mistakes in the code. Click a line number to jump to it.
What you can do with the HTML viewer
See HTML rendered instantly
Paste code from an email template, a CMS block or a code snippet and see exactly how a browser draws it, updated as you type.
Open HTML files on any device
Open a saved .html or .htm file on your phone or computer without a code editor. The file is read on your device and never uploaded.
Test phone and tablet sizes
Switch the preview between laptop, tablet and phone widths to check how the layout responds before you publish.
Format or minify code
Indent messy HTML so it’s easy to read, or strip spaces and comments to make it smaller. Undo works if you change your mind.
Find broken tags
Quick checks list unclosed tags, stray closing tags, repeated IDs and images without alt text, with the line to look at.
View a page’s source
Load any public web page to read the HTML its server sends, then check its title, description and headings in the page summary.
How to view an HTML file online
- Choose Open a file and pick your .html file, or drag it onto the box. You can also paste the code straight into the editor.
- The page appears in the preview. Use Phone or Tablet to see it at a smaller width, or Full screen for a closer look.
- Edit the code if you need to, then use Format to tidy it and Download to save your changes as a new file.
What is an HTML viewer?
An HTML viewer shows what HTML code looks like as a web page, the way a browser would display it. It’s handy for checking code from emails, templates or website builders, and for opening .html files when you don’t have a code editor.
Is my code private?
Yes. Code you paste or files you open stay in your browser and are never uploaded. Your last code is saved in your own browser so it’s still there if you reload. Only “Load from a URL” sends the page address to this site’s server so it can read that public page for you.
Why doesn’t JavaScript run in the preview?
Scripts are off by default so pasted code can’t do anything unexpected. Turn on “Run JavaScript” to test them. Even then, the preview runs in a locked-down frame that can’t reach this website, your cookies or your other tabs.
Why does a page loaded from a URL look different?
For safety, scripts, inline styles and comments are removed before the page reaches you, and many sites build parts of the page with JavaScript. Stylesheets linked from the page still load, so the layout is usually close, but menus and sliders may not work.
Can I edit the HTML and save it?
Yes. Edit the code in the editor, check the preview, then click Download to save it as a new .html file. To check the page’s title, description and headings in more detail, use the on-page SEO checker.
Want your website checked by a person?
Request a free SEO audit. Anand reviews your website and tells you which fixes will make the biggest difference first.