A computer is recommended for the full editing experience.

No HTML loaded
Click to select an element · Double-click to edit text

Upload HTML, edit directly on the web page

Online Visual HTML Editor

Upload or paste HTML to edit text, images and styles directly on the page.

All editing happens in your current browser, with no software to install.

Load PageSelect and EditDownload HTML

Ready. Upload or paste HTML to begin.

Edit locally in your browser

Paste HTML code

Supports full HTML pages as well as HTML fragments.

Code is processed only in your current browser, and page scripts do not run by default.

Confirm action

Clear the current page?

Toggle Advanced Edit

Advanced Edit may affect the page layout. It is recommended for users familiar with CSS.

Resume last edit

Unfinished content from your last session was found.

What can the Online HTML Editor do?

This Online HTML Editor is for editing existing HTML pages directly. You can upload a local .html or .htm file, or paste full HTML source, then see how the page actually renders in the visual view. Select what you want to change and, in the panel on the right, edit its text, image URL, links and common styles, then download the new HTML file when you are done.

Unlike HTML source editors that offer only a code box, this tool provides both visual editing and source editing. To change a line of a heading, just work on the page directly; to change tag structure or a whole block of styles, switch to Source Mode. Both modes use the same page content, so you can switch back and forth as you edit.

  • Edit text in existing HTML pages, AI-generated HTML and static pages.
  • Replace images and adjust link URLs, button text and how links open.
  • Change CSS colors, sizes, borders and spacing, and see how the HTML renders.
  • Undo or redo changes, copy the full source and download the edited HTML.

This tool works on page files you already have; it does not offer site publishing or cloud project management. The original page structure and how its resources are referenced affect the preview, especially for data-driven pages that rely on scripts, build tools or a server.

Upload an HTML file for direct visual editing

Click Upload HTML in the toolbar and choose a .html or .htm file from your computer. Once loaded, the file appears in a separate preview area where you can click elements to edit the HTML file without first locating a specific line of source. The original file is never overwritten; downloading generates a new, edited file.

If the content comes from a chat window, an email or a code snippet, just use Paste HTML. A full HTML document can include a doctype, head, styles and body; HTML fragments are wrapped with the necessary document structure. Embedded CSS, style tags, inline styles, remote images and data:image images all work in the preview.

Before editing HTML online, keep a copy of the original file. A single HTML file is not a full website directory: referenced images, fonts and external stylesheets are not imported automatically. When resources use relative paths, the tool shows a warning; changing addresses to accessible full URLs, or embedding local images, can fix some display issues.

Edit web page text, images and links directly

Edit HTML text online

Double-click a heading, paragraph, text fragment, link, button, list item or table cell to start editing its text. Press Enter to save single-line content and Ctrl+Enter for multi-line content, or click outside to finish. The text box on the right is good for replacing a whole block of content. Before editing a block with several child tags, select the specific text element first to avoid accidentally changing the inner structure.

Replace HTML images online

After clicking an image, you can enter a new image URL, alt text and image link. When you choose a local image, the tool converts it to a Data URL, writes it into the current document and updates the preview immediately. Alt text describes the image and still provides information if the image fails to load or is read by a screen reader. Embedded images make a single file easy to share, but they increase the HTML file size, so compress very large originals first.

Edit HTML links online

Select a link and, in the Properties panel, edit its link text, link URL and how it opens. You can set it to open in the current window or a new window, and images can be given links too. Clicks in the editing area are for selecting elements, so actual navigation is restricted by the isolated preview. Download the page when done, then check the target addresses and navigation in a normal web environment.

HTML source editing and live preview

Click Source Mode to view the full HTML. The source editor offers syntax highlighting, line numbers, Find, Replace and HTML formatting, making it easy to locate repeated text, change attributes or tidy up indentation. The HTML source editor is good for precise changes to tags and styles, especially for content that has no matching field in the visual Properties panel.

Source changes sync to the preview, and after switching back to Visual Mode you can keep selecting elements; visual changes also appear in the full source. Live HTML preview helps you confirm the rendered result, but formatting only tidies the code and will not fix design problems automatically. Browsers try to parse incomplete tags, so check the structure against the preview rather than just looking at whether the code is colorized.

The Desktop, Tablet and Mobile buttons change the preview width: Tablet is 768px and Mobile is 390px. They do not change the width settings of the page itself. Terms like running HTML, online HTML preview or code preview here mean the browser rendering HTML and CSS. JavaScript in imported pages does not run by default, so content produced by scripts may appear empty.

Edit HTML and CSS styles online

After selecting an element, Style Settings on the right lets you adjust text color, background color, font size, weight, alignment, line height and letter spacing. Border color, width, style and radius are good for editing buttons and cards, while width, height, max width and min height control the element size. Depending on the field, sizes accept pixels, percentages or auto values.

Padding is the space between the content and the element border, while margin is the space between the element and surrounding content; they correspond to the CSS padding and margin. Top, right, bottom and left can each be set separately. When adjusting page styles, changing one direction at a time and watching the result is usually easier to reason about than changing every value at once.

The default Safe Edit offers common fields, while Advanced Edit unlocks extra layout properties and shows a warning first. Online CSS editing is still affected by the original page style specificity and parent layout; for example, fixed widths or rules with !important can override the effect you expect. For deeper changes, switch to Source Mode to inspect the relevant selectors, then check both Desktop and narrow-screen layouts after editing.

Great for editing AI-generated HTML pages

After generating HTML with ChatGPT, Claude or Codex, you often only need to change a heading, swap an image, adjust colors, edit a button link or reduce block spacing. Paste the full code into the tool, or upload a saved HTML file, to make these small revisions directly instead of regenerating the whole page every time.

Before loading, remove explanatory text and code fences from the chat reply and keep only the page code. If the output is a framework component, a project file or a template that needs compiling, it cannot be used as plain HTML. This tool works with HTML documents the browser can parse and has no official affiliation with ChatGPT, Claude, Codex or their providers.

Why edit HTML locally in your browser?

The core editing process happens in your current browser. Reading files, parsing the page, modifying elements and downloading HTML require no software installation, no account and no uploading your HTML to a server through an editing API. For quick tweaks to local pages, this flow cuts down on passing files back and forth.

Local processing has real limits: remote images, fonts and stylesheets in the page may still send requests to their servers. Autosave uses the local storage of this browser and does not sync across devices; private mode, storage limits or manual clearing can all affect drafts. For important content, keep the original file and download your edited version promptly.

How do I edit an HTML file online?

1. Upload or paste HTML

Use Upload HTML to choose a local file, or click Paste HTML to load code. First check that the whole page displays correctly; if you see a relative resource path warning, decide whether the image and style addresses need replacing.

2. Select content on the page

In Visual Mode, click text, images, links, tables and other elements; a blue outline marks the current selection. The panel on the right shows the element name and its HTML tag, helping you confirm whether you selected the content itself or an outer block.

3. Edit content or CSS styles

Double-click text to edit it directly, or change content and styles in the Properties panel. Use Element actions to duplicate, delete, move up or move down an element; deletion asks for confirmation. The tool keeps up to 50 document history snapshots so you can undo and redo recent changes.

4. Check the page live

Watch the preview as you edit, and switch to Tablet and Mobile widths to check line breaks, spacing and tables. Source Mode is good for reviewing the full code. Preview width is only a layout reference and cannot replace testing fonts, touch and browsers on real devices.

5. Download the edited HTML

Click Download HTML to generate a full document, or use Copy Source to save the code. After export, check resource addresses and links before using it in the original static site environment. For security, scripts in imported pages are removed and the exported file does not contain them either.

What is the difference between a visual HTML editor and a source editor?

The two approaches solve different needs; pick one for the task at hand, or combine them in the same editing session. Visual editing is good for locating elements from how the page actually looks, while source editing is good for inspecting tag relationships and making precise code changes.

FeatureVisual HTML editingHTML source editing
Edit textDouble-click content or use the Properties panelLocate text inside tags
Edit imagesSelect an image and replace its URL or use a local imageEdit image tag attributes
Edit linksEnter a link URL and how it opensEdit link tag attributes
Edit CSSAdjust with common style fieldsEdit any style rule
View HTML tagsView the current element tag nameView the full document structure
Make precise code changesWork around the selected elementEdit tags, attributes and styles directly
Good for general usersStart from the page contentRequires basic code knowledge
Good for developersQuickly check and tweak page detailsHandle structure and complex styles

What HTML content is supported?

Supports HTML5, .html and .htm files, HTML fragments, embedded CSS, style tags, inline styles, and common content such as text, images, links, tables, lists and buttons. Forms, inputs and dropdowns can be displayed and selected, and data:image images can be embedded directly in the document.

External CSS, images and fonts depend on their URL, network and access rules. Relative paths may break, and the tool does not automatically look for other files on your computer or bundle asset folders. Imported pages are placed in an isolated preview area, where JavaScript does not run by default for security reasons and form submission and some interactions are also restricted.

The download keeps the full document structure and contains neither the editor selection markers nor the scripts removed on import. When delivering a standalone page, check that all resources are embedded or accessible; when deploying to the original site, keep the existing directory structure and check again in the target environment.

FAQ

Here are answers to questions you may have when importing, editing, previewing and saving.

What is an Online HTML Editor?

An Online HTML Editor lets you view and edit HTML in your browser. This site supports importing an existing page, clicking page elements to change content and styles, and switching to Source Mode to edit the full code.

Can I upload an HTML file to edit directly?

Yes. Click Upload HTML to choose a local .html or .htm file, then view and edit it in the visual area once loaded. You can also use Paste HTML to load a full page or an HTML fragment.

Can I edit text directly on the page?

Yes. Double-click a heading, paragraph, link text, button text, list item or table cell to edit its text. Press Enter for single-line content, Ctrl+Enter for multi-line content, or click outside to save; you can also edit it in Text content on the right.

Can I edit images in the HTML?

Yes. Select an image and change its image URL, alt text and image link, or click Choose local image to replace it. Local images are converted to a Data URL and written into the HTML; larger images increase the final file size.

Can I edit HTML links?

Yes. Click a link and, in the Properties panel, change its link text, link URL and how it opens. Clicks in the preview are for selecting elements, so download the page and check link behavior in a normal web environment.

Can I edit CSS styles?

Yes. The Properties panel offers text color, background, font size, weight, alignment, borders, radius, size and spacing settings. More complex CSS can be edited in Source Mode, and layout properties in Advanced Edit may affect the original page layout.

Is live HTML preview supported?

Yes. Visual edits update the preview and source, and source edits sync to the preview too. You can switch between Desktop, 768px Tablet and 390px Mobile widths to check the layout; switching widths does not rewrite the HTML.

Can I run HTML JavaScript?

For security, the editor removes script tags and event-handler attributes from imported HTML, so script-driven interactions cannot be previewed and the exported file does not contain those scripts. To use script behavior, run it in the original project.

Are full HTML pages supported?

Yes, full HTML5 pages and HTML fragments are supported. Structures in a full page such as DOCTYPE, html, head, body and style are preserved as much as possible, and the download is a complete HTML document, not just the body content.

Why do some images or CSS not display?

Remote resources need a valid URL, a working network connection and permission from the source site. Relative paths may break outside the original site or file directory, and the editor will warn you. Switch to full URLs, or choose a local file to embed images.

Are HTML files uploaded to a server?

The core editing process happens in your current browser, and this site does not upload HTML files through an editing API. However, remote images, styles and fonts in the page may still make network requests to their resource servers.

How do I save after editing?

Click Download HTML to save the full file; the default file name is edited-page.html, and uploaded files produce an edited name based on the original. You can also click Copy Source and save the code yourself. The downloaded file does not bundle remote or relative-path resources for you.

Will my content still be there after a refresh?

The tool tries to autosave current content to the local storage of this browser. When a draft is detected on reopening, you can choose Continue editing or Ignore; it is never restored automatically. Private mode, cleared storage or insufficient space can make the draft unavailable, so download your work promptly.

Do I need an account?

No. The tool requires no registration, login or software installation. Just open the page and use it. This site does not offer cloud project saving, online publishing or multi-user collaboration.

Can I use it on a phone?

On a phone you can open the page and read the tool and help content, but selecting elements and editing properties work better on a computer. A computer is recommended for the full editing experience; the Mobile preview button is mainly for checking narrow-screen layouts on the desktop.