Opening files, editing, exporting and sharing your HTML.
Open a file or paste HTML
Use Open to choose a text or code file up to 10 MB, or drop it onto the editor. Paste a full HTML document or a snippet directly. CSS in <style> and JavaScript in <script> work; PHP, JSX and template syntax need to be built into HTML first. Help opening HTML files.
Check the layout and scripts
Choose phone, tablet or a custom width to test media queries. This changes the viewport width; it does not emulate another browser or an email client. Open Console to read script errors. Turn Live off while editing a script, then press Run when ready. Responsive testing guide.
Save or share the result
HTML downloads your source. PNG captures the preview; remote images need CORS permission. PDF opens your browser’s print dialog. Share makes a link that carries the document: anyone with that link can read it. Long links may be cut off by messaging apps.
What stays in your browser
HTML Viewer Cat does not upload your document for rendering. Your draft is saved in this browser when storage is available. The preview runs JavaScript, and external images, styles, scripts and requests can contact their own servers. Use code you trust. Why this tool.
A free HTML editor and viewer with live preview, a console, HTML download, PNG and PDF export, and links that carry the source. Paste a snippet or open a file to start.
We do not upload your HTML for rendering. Drafts are saved in this browser when storage is available. External resources and scripts in your document can make network requests. Anyone with a share link can read its source.
Share compresses the current editor source into the part of the URL after #. Opening the link renders that source afresh. It does not save live JavaScript state, entered form values or a paused preview. URL fragments are not included in HTTP requests to our server, but the app or person you send the full link to receives the document. Long links can be truncated by messaging apps.
Yes. Scripts run in a sandboxed iframe that cannot read the parent page. They can still make network requests. Only open code and external resources you trust.
On a desktop or wide screen, use the preview toolbar to choose a phone, tablet or custom width. On a phone, the preview uses the available width. Device frames test CSS viewport sizes; they do not emulate another browser or an email client.
HTML downloads the editor source. PNG captures the preview; remote images need CORS permission. PDF opens the browser’s print dialog and respects print CSS such as @page and page breaks. A screenshot does not preserve interaction.
Cmd/Ctrl+S opens Share. Cmd/Ctrl+Shift+F formats the HTML. Cmd/Ctrl+F opens Find. F toggles preview fullscreen when you are not typing in the editor; Esc exits fullscreen.
Yes. There is no account or paid tier.
PostHog counts page views and feature use without an analytics cookie by default. Declining keeps that mode; it does not stop counting. Accepting adds a stable browser identifier for return-visit measurement. Editor content and share fragments are excluded from analytics, and session replay is disabled.
Your draft is saved in this browser when local storage is available. It is not synced to an account or another device. Clearing site data removes it. Use HTML download to keep a separate copy.
Axel, a developer based in Norway. Contact details are on the About page.