HTML Viewer
Paste or upload HTML, CSS and JavaScript and see the result instantly. Check how your page looks on mobile, tablet and desktop widths before you publish it
- Paste a full page or just a snippet. You can keep CSS in a <style> tag and JavaScript in a <script> tag in the same box
- Turn off live update if your code is heavy or has scripts you do not want to re-run on every key. Then press Run when ready
- Use Desktop, Tablet and Mobile to test how the layout responds. Full screen gives the preview the whole screen
- Upload file opens a .html file from your device. Download .html saves your code as a file
- Links to other websites, images and fonts load normally if you use full web addresses. Links to files on your computer will not load
- Because the preview is isolated, browser storage such as localStorage and cookies is not available to your code
- Only run code you trust. A page you paste can run scripts, though it cannot reach this website
- Your code is rendered in your browser and is never uploaded. It is kept on this device so it is here when you return
HTML Viewer FAQ
It lets you preview and debug HTML code in real time, with syntax highlighting and error checking.
- Paste your HTML into the editor.
- See the live preview update.
- Fix any highlighted errors.
- Copy the finished code.
It colors tags, attributes and text differently, so mistakes such as a missing closing tag are easier to spot.
Your site's theme CSS, scripts and fonts affect how a page looks. The viewer only shows the code you paste, so styles that live elsewhere will not appear.
Yes, it works well for checking small blocks of HTML. Always test again in the real place you will use it.