Skip to content
OnlineToolStudio

Online HTML Editor

runs in your browserno sign-upfree

Write HTML with a live preview, or edit visually like a document (WYSIWYG) — then format, minify or clean up the HTML.

Checking…

About this tool

This online HTML editor gives you two ways to work on the same HTML. In Code + Preview you write HTML, CSS and JavaScript with syntax highlighting and see the page update live beside the code — with error checking, Prettier formatting and minifying. In Visual mode you edit the page like a document — headings, fonts, colours, lists, links, images and tables — while the HTML is written for you, optionally side by side with the code. Paste from Word or Google Docs, clean up the result with one click, then copy or download the HTML. Everything runs in your browser.

How to use

  1. Paste or type HTML, open an .html file, or start from the sample page.
  2. Choose a view: Code + Preview to write code and see the page, Visual + Code to edit visually next to the code, or Visual alone.
  3. Use Format to tidy the code, Minify to make it smaller, and Clean up (in the visual views) to remove inline styles, classes, empty tags or comments.
  4. Switch views at any time — it is the same HTML. Use Full screen for more space.
  5. Copy the HTML or download it as an .html file.

FAQ

Which view should I use?

Code + Preview if you write HTML yourself — you see the real page, including your CSS and JavaScript. Visual if you want to format content like in a word processor without writing code, for example for a blog post, email or product description.

What happens to my <head> in the visual views?

The visual editor edits what is inside <body>. The doctype, <head> (title, styles, scripts) and everything outside the body are kept exactly as they are, so switching views never loses them.

Do scripts run?

In Code + Preview, JavaScript runs in the preview so you can test buttons and other interactions; the preview is sandboxed and cannot access this site, your cookies or other tabs. The visual editor never runs scripts — it removes scripts, frames and on… event handlers from the body, so keep pages with scripts in Code + Preview.

Can I paste from Microsoft Word or Google Docs?

Yes, in the visual views. Word content is cleaned of Word-specific markup automatically; use Clean up to remove inline styles or classes you do not want.

I just want to write notes with formatting — which tool?

Use the Online Notepad: the same visual editor in one full window, without HTML code, and your notes are saved in this browser.

Is my HTML uploaded?

No. Editing, previewing, formatting and minifying all run in your browser, and images you add in the visual editor are embedded in the HTML. Your last HTML is only saved in this browser.

Related tools

All tools