HTML Preview & HTML Viewer (Live, CSS and Images, Offline) Pro Available
See your HTML page beside its code in VS Code, with its CSS, JavaScript and images. Free, no sign-in, works offline. It sends nothing anywhere and loads nothing from the web unless you click "Load for this file".
Phone, tablet and desktop widths: The Width list sets 320, 375, 768, 1024 or 1440 px, or your own width. Zoom fits the page in the panel or sets 50% to 200%.
Links: links to other local pages open in the preview, with Back and Forward buttons. #anchor links scroll the page. Web and mail links ask first, then open in your browser. Other local files (PDF, images, text) open in VS Code.
Copy: Select text in the preview and press Cmd+C (Ctrl+C).
Console: The Console button shows console.log, warnings, script errors, unhandled promise rejections, alert() text, form submits and the linked files that were not found. A badge counts warnings and errors.
Web resources stay off until you say so: When a page links CSS, fonts, scripts or images from a CDN, a bar shows how many and from which hosts, and nothing is loaded. "Load for this file" loads them for that page; "Always load" turns on htmlPreview.loadRemoteResources.
Dark and light: the toolbar follows your VS Code theme. For pages that set no background of their own, Page: Auto shows them in the theme's colors; Light shows them white, as a browser does. Pages with their own background always show it.
JavaScript on or off: Scripts run by default, sandboxed. JS off shows the page as it looks without scripts. In Restricted Mode (an untrusted folder), scripts do not run.
Scroll sync: Turn on Sync scroll to move the preview with the editor.
ZOVO PRO AVAILABLEOne-time purchase · No subscription
Add Pro tools to HTML Preview & HTML Viewer (Live, CSS and Images, Offline)
Save as one HTML file. Saves the page with its CSS, scripts, images, fonts and local frames inside one .html file that opens anywhere: to send, attach or archive.
Accessibility and SEO check. Checks the page for missing alt text, form fields without labels, links and buttons without names, heading order, duplicate ids, language, title, viewport and description.
Check links in a folder. Reads every HTML page in a folder and lists the local files, pages and #anchors that do not exist, with the line of each link.
Is HTML Preview & HTML Viewer (Live, CSS and Images, Offline) free?
Yes. HTML Preview & HTML Viewer (Live, CSS and Images, Offline) is free and MIT licensed.
How do I install HTML Preview & HTML Viewer (Live, CSS and Images, Offline)?
Click "Install in VS Code" above, or search for zovo.zovo-html-preview in the Extensions view.
Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-html-preview/](https://vscode.zovo.one/extensions/zovo-html-preview/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
Auto rename tag and auto close tag as you type in HTML, JSX/TSX, Vue, Svelte, PHP, Blade, Twig, XML and Markdown. One undo step for both tags, never pairs <br> or TypeScript generics, highlights the matching tag. Free, no sign-in, works offline.
Run C++ and C code with one click: compile and run the current file with gcc, g++, clang or clang++. Interactive input in the terminal, an Input panel with saved test cases and diffs, errors in Problems, Stop for endless loops, per-file flags. Free, no sign-in, works offline. Zovo Pro adds a sanitiz
JavaScript playground and TypeScript scratchpad for VS Code: the value of each line shows at the end of the line as you type, with console.log output and errors on their own lines. A live JS and TS runner for quick tests and a REPL-style scratch file, with no tsconfig, no setup and no sign-in. Free,
Free and offline. CSS class names and id completion in HTML, React, Vue, Svelte, Angular, PHP and Blade, from every CSS, SCSS and Less file in your project, <style> blocks, linked style sheets and CSS modules. Go to definition and hover. Light on CPU in big monorepos.
XSD viewer for VS Code: open XML Schema (.xsd) files and the schemas in .wsdl files as a tree and a diagram, with imports and includes resolved across the workspace, search and jump to line. Offline, no account.
Large JSON viewer with a fast JSON tree. Keeps 64-bit numbers exact, jumps to the line in the editor and reloads when the file changes. Search, copy JSONPath, table view. Offline.