HTML editor online

Type on the left, see the page on the right. No project, no build step, no account.

Paste HTML, see it rendernothing is uploaded until you publish
Drop the .html file here
Paste, edit, or drop a file

Next step. The preview above lives only in this browser tab — close it and it is gone. To keep the page and hand it to someone, put it in a NOS document: the HTML renders the same way, you can fix the wording by clicking it, and the address you send does not change when you revise.

An online HTML editor is the right tool for one specific moment: the page nearly works, you want to change something, and you want to see the result now.

The HTML editor online: paste or drop, edit on the left, see it on the right.
The HTML editor online: paste or drop, edit on the left, see it on the right.

This one runs in your browser with no project setup, no local server and no build step. Paste on the left, read on the right, copy the result out when it is right.

How to use the HTML editor online

  1. Paste or drop the page. Paste the markup into the left-hand box, or drag an .html file onto the tool. If you have nothing to start from, the buttons along the bottom load a dashboard, a sortable table, a bar chart, a dark slide or a quote.
  2. Change the code and watch the preview. The right pane redraws a moment after you stop typing. Styles inside the page apply and scripts run, so a counter counts and a chart draws.
  3. Check it at phone width. Drag the browser window narrow. If the whole page shrinks instead of reflowing, the head is missing the viewport line, covered below.
  4. Copy the result out. Copy HTML puts the current code on the clipboard. Save it as a file, or paste it into a NOS document to give it an address that keeps working after later edits.
Edit the code on the left and the page on the right follows a moment after you stop typing.
Edit the code on the left and the page on the right follows a moment after you stop typing.

How this differs from a viewer

A viewer answers "what does this file look like". An editor answers "what happens if I change this". Same split pane, different centre of gravity: here the code box is where you live, and the right side is feedback.

The preview redraws shortly after you stop typing rather than on every keystroke. That is deliberate. Redrawing on every character would restart any animation and reset any script on the page, making it impossible to work on anything interactive.

The four mistakes that break a page while you edit

The page is not in one file

When an edit breaks the page, the console says where. The first error is the one to read.
When an edit breaks the page, the console says where. The first error is the one to read.

Styles in a <style> tag. Scripts in a <script> tag. Images either on full https:// addresses or embedded. A page assembled from neighbouring files works on your machine and nowhere else. See self-contained HTML for what to do about images and fonts specifically.

The script runs before the elements exist

<body>
  <button id="go">Count</button>
  <p id="out">0</p>

  <!-- must sit after the two lines above, or it finds nothing -->
  <script>
    var n = 0;
    document.getElementById('go').onclick = function () {
      document.getElementById('out').textContent = ++n;
    };
  </script>
</body>

Move that script above the button and it stops working, because getElementById returns nothing when the button has not been drawn yet. This is the single most common reason a page "renders but does nothing".

The viewport line is missing

<meta name="viewport" content="width=device-width,initial-scale=1">

Without it a phone renders the page at desktop width and then shrinks the whole thing, so the text comes out unreadably small. It is the most common reason a page that looks fine on a laptop is unreadable on a phone. More on the viewport tag.

Padding pushes columns out of their width

<style>
  * { box-sizing: border-box; }
</style>

Without this line, padding is added outside the width you specified, so a column set to 50% overflows as soon as you give it breathing room. With it, width means width. Why box-sizing matters.

Editing a page an AI assistant wrote

Most pages pasted into this editor now come from an AI assistant, and they fail in predictable ways: a stylesheet link to a file that does not exist, a font loaded from a folder, a script above the elements it needs, a layout that assumes a wide screen.

The editor is the fastest place to find which one you have, because the preview shows the failure while the code that caused it is on the left. Fixing AI-generated HTML walks through each one.

What people use an online HTML editor for

  • Tightening a page an assistant wrote. The structure is right, three things are off. Fix them here, with the result in view, instead of asking for another round.
  • Adapting a template. Load a sample, swap the words and colours, copy the HTML out.
  • Testing one idea. Does a two-column layout hold at phone width? Paste, narrow the window, know in ten seconds.
  • Reading someone else's file. Drop it in, see the page and the code side by side, change nothing.

What an editor cannot do for you

It cannot make the page reachable. When you close the tab, the work is gone, which is correct behaviour for a scratchpad and a problem the moment the page matters.

Paste or drop the file Check preview renders it Publish creates the address Send link, not attachment
Paste, check, publish, send. The editor covers the first two.

The gap between "the page is finished" and "the right people have seen it" is where most of the time actually goes, and no amount of editor polish closes it. What closes it is the page having an address: publish once, send the line, and keep revising without re-sending anything.

Comparing the ways to edit a page

Approach Best at Falls down when
This editor Quick changes with instant feedback The page needs to outlive the tab
A code playground Showing other developers how something works A non-developer has to change the wording
A desktop code editor Large projects with many files You want somebody else to see the result now
A document that renders HTML Pages that get revised and read by colleagues You want to restructure the markup itself

They are not competing. The realistic route is to use two of them: an editor while the markup is in flux, and a document with an address once the content is what matters.

When to stop editing markup

There is a point where the structure is right and only the words are wrong: a stale date, a name change, a paragraph that needs cutting. That is no longer a job for a code pane, and handing a markup file to the person who owns those words is how typos survive for months.

In NOS the published page keeps its HTML exactly as written, but the text inside it is clickable text. The person who needs the date changed changes the date. The address does not move, and nobody has to open a code editor to fix a comma.

Where to go next

If you want to Go to
Just look at a file, no editing HTML viewer
Give the page an address HTML to link
Build a table people can type into Editable table builder
Fix a page an assistant wrote Fixing AI-generated HTML
Make the page work as one file Self-contained HTML

Questions people ask

Is this HTML editor free, and do I need an account?

Free, and no. The editor runs entirely in your browser. Nothing is uploaded and nothing is stored, which also means the work is gone when you close the tab unless you copy it out or publish it.

Does the preview run CSS and JavaScript?

Yes. Styles inside the page apply and scripts run, inside a sandboxed frame that cannot reach this site or your machine. The preview redraws shortly after you stop typing, not on every keystroke.

Can I open an existing .html file in it?

Yes. Drop the file onto the tool and its contents appear in the code box. Edit, then use Copy HTML to take the result back out.

Why does my page render but the buttons do nothing?

The script usually runs before the elements it looks for exist. Move the script to the end of the body, after the elements, or wrap it in a load handler.

How do I save what I edited?

Copy HTML puts the current code on the clipboard; paste it into a file or into a NOS document. A document gives the page an address, and the text in it stays editable by clicking, so later wording changes do not need the code editor at all.

Keep reading