Ventora
PricingBlogCasesAbout
Log inGet started
  1. Ventora
  2. Free tools
  3. Free HTML Viewer: Preview and Edit HTML Online
Website & design

Free HTML Viewer: Preview and Edit HTML Online

Paste or open an HTML file and see it rendered instantly. It all runs in your browser.

  • 100% free
  • No signup
  • No limits
  • Runs in your browser
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Brightside Yoga Studio</title>
  <meta name="description" content="Small-group yoga classes for beginners in a calm, friendly studio.">
  <style>
    :root { --brand: #e85d75; --ink: #1f2933; --soft: #fdf2f4; }
    * { box-sizing: border-box; }
    body { margin: 0; font-family: Georgia, serif; color: var(--ink); }
    header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; }
    nav a { margin-left: 1rem; color: var(--ink); text-decoration: none; font-family: system-ui, sans-serif; }
    .hero { padding: 4rem 1.5rem; text-align: center; background: var(--soft); }
    .hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); margin: 0 0 1rem; }
    .btn { display: inline-block; background: var(--brand); color: #fff; padding: .8rem 1.4rem;
           border-radius: 999px; text-decoration: none; font-family: system-ui, sans-serif; }
    section { padding: 3rem 1.5rem; max-width: 960px; margin: 0 auto; }
    .grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .card { border: 1px solid #eee; border-radius: 16px; padding: 1.25rem; }
    .price { font-size: 1.75rem; font-weight: bold; }
    form { display: flex; gap: .5rem; flex-wrap: wrap; }
    input { flex: 1; min-width: 200px; padding: .8rem; border: 1px solid #ccc; border-radius: 999px; font-size: 1rem; }
    button { background: var(--ink); color: #fff; border: 0; padding: .8rem 1.4rem; border-radius: 999px; font-size: 1rem; }
    footer { text-align: center; padding: 2rem; color: #6b7280; font-family: system-ui, sans-serif; }
  </style>
</head>
<body>
  <header>
    <strong>Brightside</strong>
    <nav>
      <a href="#classes">Classes</a>
      <a href="#pricing">Pricing</a>
      <a href="#join">Join</a>
    </nav>
  </header>

  <div class="hero">
    <h1>Yoga for real beginners</h1>
    <p>Small classes, patient teachers, no fancy poses on day one.</p>
    <a class="btn" href="#join">Book a free first class</a>
  </div>

  <section id="classes">
    <h2>Classes</h2>
    <div class="grid">
      <div class="card"><h3>Gentle Flow</h3><p>Slow movement and breathing. Mon and Wed, 6 pm.</p></div>
      <div class="card"><h3>Stretch &amp; Relax</h3><p>For stiff backs and long desk days. Tue, 7 pm.</p></div>
      <div class="card"><h3>Weekend Reset</h3><p>A calm hour to start Saturday. Sat, 9 am.</p></div>
    </div>
  </section>

  <section id="pricing">
    <h2>Pricing</h2>
    <div class="grid">
      <div class="card"><h3>Drop-in</h3><p class="price">$18</p><p>One class, no commitment.</p></div>
      <div class="card"><h3>Monthly</h3><p class="price">$79/mo</p><p>Unlimited classes.</p></div>
    </div>
  </section>

  <section id="join">
    <h2>Book your free first class</h2>
    <form>
      <input type="email" name="email" placeholder="you@example.com" required>
      <button type="submit">Send me a time</button>
    </form>
  </section>

  <footer>Brightside Yoga Studio</footer>
</body>
</html>

An HTML viewer shows what an HTML file looks like in a browser. Paste your code or open an .html file above and the page renders on the right as you type. You can check it at phone, tablet and laptop widths, see console.log output and script errors with their line numbers, and get a list of common mistakes with the fix for each one.

The code is saved in your browser as a draft, and the preview runs in a locked-down sandbox.

How to view an HTML file online

  1. 1

    Paste or open

    Paste HTML into the editor, press Open file, or drag an .html file onto the editor. Or pick a sample.
  2. 2

    See it live

    The preview updates as you type. Switch widths to see the phone layout, and open Console or Issues below.
  3. 3

    Save or share

    Download the .html file, copy the code, or copy a share link. “Open in new tab” gives you a full-window preview.

Preview HTML live while you edit

With Auto-run on, the preview re-renders a moment after you stop typing (a little longer while the cursor is inside a <script>, so half-written code doesn’t throw errors at every keystroke). Turn it off for big files and press Run, or Ctrl/Cmd + Enter, when you are ready.

  • Device widths. Fit fills the preview area; 375, 768 and 1280 render the page at a phone, tablet and laptop width and scale it down to fit, so you can check a responsive layout without resizing your window.
  • Console. Messages from console.log, warnings, errors and unhandled promise rejections appear under the preview. Click a line number to jump to it in the editor.
  • Outline. The h1 to h6 headings as a tree: a quick way to check that the page structure makes sense.
  • Open in new tab. A full-window preview that refreshes when you edit in the first tab, handy on a second screen.

Edit HTML online: format, minify and fix common errors

Format re-indents the code: block elements on their own lines, short elements on one line, and the contents of <script> and <style> re-indented as blocks; <pre> is left exactly as it is. Minify removes comments and extra whitespace and compacts CSS; scripts are kept as they are, because safely shrinking JavaScript needs a real parser. Both can be undone with one click.

The Issues panel runs 13 checks every time the code changes:

CheckWhy it matters
Tags that are never closed, or closed in the wrong orderBrowsers guess where the element ends, and the guess can break the layout.
Missing <!doctype html> (or not on the first line)Without it, browsers use “quirks mode” and render some CSS differently.
Missing or empty <title>It is the text in the browser tab and the headline in search results.
<html> without langScreen readers and translation tools use it to pick the language.
No viewport meta tagPhones show a zoomed-out desktop page without it.
No character encoding (meta charset)Accents and emoji can turn into garbage once the file is served.
No meta descriptionSearch engines often show it under your title.
No <h1>, or more than oneOne clear main heading helps visitors, screen readers and search engines.
Images without alt textScreen readers read alt; it also shows when the image fails to load.
Duplicate id values#links, labels and scripts only find the first element with an id.
Files loaded over http:Browsers block or flag them on https: pages (mixed content).
Local files (style.css, img/logo.png)They are not part of a single-file preview; they load once the whole folder is online.
Inline event handlers (onclick=…)They work, but strict security policies block them; addEventListener is easier to maintain.

For a snippet without <html> or <head>, the page-level checks are skipped and the preview wraps it in a page. The checks catch common mistakes; they are not a full validator. For a complete standards check, the W3C’s free Nu HTML Checker is the reference.

How to open an HTML file on iPhone, Android, Windows and Mac

  • iPhone and iPad: in this viewer, tap Open file and pick the file from the Files app (iCloud Drive, On My iPhone or Downloads). Mail and Files can show a quick preview, but you can’t edit the code or see errors there.
  • Android: tap Open file here and choose the file from Downloads or your file manager. This works the same in Chrome, Samsung Internet and Firefox.
  • Windows: double-click the file to open it in your default browser, or right-click → Open with → Chrome, Edge or Firefox. To see or edit the code, right-click → Open with → Notepad, or drag the file onto this page.
  • Mac: double-click to open it in your default browser. TextEdit opens HTML as a formatted page by default; to see the code, turn on “Display HTML files as HTML code instead of formatted text” in TextEdit’s settings (Open and Save), or drag the file onto this page.

To see the source of a page that is already online, open it and press Ctrl + U (Option + Cmd + U on a Mac; in Safari, turn on the Develop menu first). Copy the code and paste it here. This viewer can’t fetch other sites by address.

Turn an HTML file into a website

A preview only lives on your screen. To give the page a public address, a host has to serve the file. If your page has its own CSS, images or scripts, upload the whole folder, not just the .html file, and name the main page index.html.

OptionHowAccountGood to know
Netlify DropDrag the folder onto the Netlify Drop page; it goes live at a unique address.Not needed to publishWithout an account the files are published as they are; treat that as temporary and add a free account to keep and update the site.
Cloudflare PagesDashboard → Workers & Pages → upload a zip or a folder.Free Cloudflare accountDrag-and-drop uploads are limited to 1,000 files and 25 MiB per file.
GitHub PagesPut the files in a repository and turn on Pages in its settings.Free GitHub accountOn the free plan the repository must be public. Sites up to 1 GB, soft limit of 100 GB traffic a month; not meant for online shops or commercial SaaS.
Paid drag-and-drop hostsUpload a file or zip, get a link, add a custom domain.YesConvenient, but compare what the free tier really includes before you rely on it.

When a static file isn’t enough. A static host serves your page as it is: a contact form has nowhere to send its data, there are no sign-ups or payments, and every change means editing code and uploading again. If you want those, Ventora can build the site again from a description of your page, which the button under the viewer writes for you from your HTML. Ventora writes new code (it doesn’t host your file as it is), you change it by chatting, and it includes forms that save, sign-ups and payments. Building uses credits, and going live needs a hosting plan; see pricing.

Viewing HTML that ChatGPT or Claude wrote

AI chat tools often answer with a whole HTML page in a code block. Copy the block (most have a copy button), paste it here, and you see the page right away. Then check three things before you use it:

  • Issues panel: AI-written pages often skip the viewport tag, alt text or a meta description.
  • 375 px width: layouts that look fine on a laptop often overflow on a phone.
  • Console: scripts that reference libraries or elements that don’t exist show up as errors here.

If the page depends on files the chat didn’t give you (a separate CSS file, images), the Issues panel lists them.

Is it safe to paste HTML here?

Yes, and here is why:

  • The editor, the preview and the checks run in your browser. Your draft is kept in your browser’s local storage so it survives a reload; Clear removes it.
  • The preview is sandboxed. It runs in an isolated frame with its own anonymous origin: scripts in it can’t read this site’s storage or cookies, can’t touch the page around it, and can’t redirect your tab.
  • Anyone with a share link can see the code, so don’t share secrets.
  • Links from others open with scripts off. When you open someone’s share link, scripts and forms stay off until you choose to run them. Never type a password into a preview.

Sample pages to try

Each sample loads into the viewer above, so you can edit it and see the result.

Blank page

A minimal, valid HTML5 page to start from.

Landing page

A one-page site with a hero, classes, pricing and a sign-up form.

Email template

A table-based transactional email with inline styles.

Form + script

A tip calculator: a form, a little JavaScript and console output.

Frequently asked questions

Why don’t my CSS and images show?

The viewer previews one file. Files next to it on your computer, such as style.css or img/logo.png, aren’t part of it, and the Issues panel lists them. Paste the CSS into a <style> tag, or link files by their full https:// address. Once the whole folder is online, relative links work again.

Why doesn’t my link to another page work?

Links to other files (about.html, /contact) have nothing to open in a single-file preview, so the viewer shows a short notice instead. Links to #sections on the same page scroll as normal, and links to other websites open in a new tab.

Can I view a website’s source by URL?

Not directly. Open the site, press Ctrl+U (Option+Cmd+U on a Mac) to see its source, copy it and paste it here.

Can I run JavaScript?

Yes. Scripts run in the sandboxed preview, and console output and errors show in the Console panel with line numbers. If a script freezes the page (an endless loop, for example), the viewer opens with scripts paused next time so you can fix it.

How do I share my HTML?

Press “Copy share link”. Very large pages don’t fit in a link; download the .html file and send that instead.

How do I put an HTML file online for free?

Use a static host: Netlify Drop (drag a folder, no account needed to publish), Cloudflare Pages (free account, upload a zip or folder) or GitHub Pages (free account, public repository). Name the main page index.html and upload the whole folder. The guide above compares them.

Can Ventora host my HTML file?

No. Ventora doesn’t host files as they are. It builds a new site from a description of your page (the “Make it a live site” button writes that description from your HTML), which you then change by chatting. Building uses credits, and going live needs a hosting plan. To host this exact file, use one of the free options above.

Updated November 2026

Related free tools

All tools →

Landing Page Examples

A curated gallery of real landing pages by industry, with notes on what makes each one work.

CSS Grid Generator

Build bento grids, page layouts and flexbox rows by dragging, then copy CSS, HTML or Tailwind.

Coming Soon Page Builder

Make a coming soon, waitlist, link in bio or under construction page and download it as one HTML file.

Link Preview and Meta Tag Generator

See how a page looks in Google and when shared on Facebook, LinkedIn, X, Slack and iMessage, then copy the meta tags.

Favicon Generator

Make a favicon from text, an emoji or an image and download every size, plus the HTML to paste.

Ventora

From HTML file to a site that works

Describe changes in plain English instead of editing tags. Ventora builds a new site from your description, with forms, sign-ups and payments; building uses credits, and going live needs a hosting plan.

Plain words are fine. Edit it before you start.

200 free credits, no card.

  • A working product and landing page you can publish
  • Payments, hosting and custom-domain setup built in
  • Describe it in plain words, no code

The AI-powered platform that turns ideas into revenue-generating products.

Product

  • Dashboard
  • Launch
  • Pricing
  • Cases
  • Blog
  • Made with Ventora
  • Free tools

Company

  • About
  • Investors

Legal

  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Data Processing Agreement

For data, legal or abuse inquiries, contact: support@ventora.cc

© 2026 All rights reserved.