HTML Viewer

Paste HTML or open an .html file to see the page a browser would draw, updated as you type, with scripts kept in a sealed frame.

Screen size
FitPhoneTabletLaptop

The page fills the preview panel

Type or paste HTML, drop a file on this box, or open one.

Your page shows here as a browser draws it, updated as you type.

View HTML code as a real page, test a snippet in an HTML playground, or check an attachment before you trust it.

Works like an HTML editor online with no account and no upload: your code runs inside this tab on any device.

  • Errors named with their tab and line
  • Phone, tablet and laptop widths
  • Safe view for files you do not trust

How to view HTML online

Add your code, watch the page build beside it, then keep it.

  1. Paste or open HTML

    Paste HTML into the HTML tab, or drop an .html or .htm file on it. Styles and scripts can go in their own tabs.

  2. See it render live

    The page on the right redraws a moment after you stop typing. Pick Phone or Tablet to see it at a smaller width.

  3. Download or share it

    Download saves one .html file with your CSS and JavaScript inside. Share copies a link that holds the code itself.

An HTML code runner with CSS and JavaScript

Learners use it to try a tag and see what it does; developers use it to test a snippet away from a big project. Write markup in the HTML tab, rules in CSS and code in JavaScript, or keep it all in one file the way a real page does.

console.log, warnings and errors show in the Console tab with the tab and line they came from, so a typo in a script points to its line instead of failing in silence. Turn off Run as you type for scripts that should start only when you press Run.

Fonts, pictures and libraries linked from a CDN load just as they would on a live site. Paths to your own files, such as style.css, cannot, since the frame has no folder to look in: paste that file into the CSS or JavaScript tab instead.

Open an HTML file safely in a sandbox

HTML files arrive as email attachments, exported reports and saved web pages, and opening one in a normal tab lets its scripts act like any website. Here the page is drawn in a sandboxed frame that counts as a site of its own, with nothing of yours inside.

That frame cannot read this site's storage or cookies, move this window to another address or turn on your camera. For a file you do not trust, switch on Safe view: scripts and forms stay off and nothing loads from the web, so a sender cannot see it was opened.

More than an HTML preview

  • Live HTML editor

    The preview updates in real time as you type. Turn that off to update only with Run or Ctrl + Enter.

  • HTML, CSS and JS tabs

    Keep styles and scripts in tabs of their own. They join the page as if the HTML linked to them.

  • JavaScript console

    Logs, warnings and errors from your scripts, each with its tab and line, and a count on the tab.

  • Screen size tester

    See the page at phone, tablet and laptop widths, scaled to fit the panel, or turned on its side.

  • Full screen preview

    Spread the page across the whole screen to judge it at its true size, with a button to come back.

  • Safe view

    Scripts off and nothing fetched from the web, for an attachment or saved page you are unsure of.

Your code stays in this tab

Pages under test often hold drafts, keys or client work, so Doblique never receives any of it.

  • Processing

    Your browser builds and runs the page. Only the fonts, images and scripts your code links to load.

  • Storage

    Code is kept in this browser so a refresh keeps it. A share link holds it after the #, never sent.

  • Account

    No sign-up and no limits. A free HTML viewer that works the same on a phone, tablet or computer.

Questions about HTML files

What is an HTML file?

A text file of tags, such as <p> and <img>, that tells a browser how to lay out a web page. Its name ends in .html or .htm.

What is an HTML viewer?

A tool that shows HTML the way a browser draws it instead of as code. This one also runs CSS and JavaScript as you type.

How do I open an HTML file in Chrome?

Drag the file onto a Chrome window, or right-click it and pick Open with, then Google Chrome. Ctrl + O opens one too.

How do I open an HTML file on iPhone?

Files shows only a plain preview that runs no scripts. Open this page in Safari, tap Open file and pick it from Files.

How do I make an HTML file?

Type HTML in Notepad, or TextEdit in plain text mode, and save it with a name ending in .html. Or write it here and download it.

How do I link CSS to HTML?

Put <link rel="stylesheet" href="style.css"> inside <head>. Here, paste the CSS into the CSS tab and it is applied for you.

How do I link JavaScript to HTML?

Add <script src="app.js"></script> just before </body>, or write code between <script> tags. The JavaScript tab does it here.

How do I see the HTML code of a website?

Press Ctrl + U in Chrome, Edge or Firefox, or Option + Command + U in Safari once its developer features are on.

Still stuck, or found a problem? Email dobliquestudio@gmail.com and we will help.