BookmarkFilesLocal files · one click

Guides › How to edit and preview an HTML file in your browser

How to edit and preview an HTML file in your browser

Updated October 31, 2026 · Written by the BookmarkFiles team

Maybe you have an email template, a small web page or a saved snippet, and you want to change a line and check how it looks. Many people paste the file into an online HTML viewer, which means uploading the content to someone else’s server. You can do the same job locally. This guide shows how, and what to watch for.

Two jobs: editing the source and seeing the result

An HTML file is text. Editing it means changing that text. Previewing means letting a browser draw the page the text describes. They are different steps, and the easiest workflow keeps both within reach.

Preview a local HTML file in your browser

The simplest check is to open the file itself: drag it onto a Chrome or Edge tab, or press Ctrl + O and choose it. After each edit and save, press F5 to refresh. This gives the most faithful result, because the browser also loads the file's own style sheets, scripts and images from their folders.

Edit and preview in BookmarkFiles

  1. Add the .html file with Add File or drag it onto the editor.
  2. Edit the code in the editor. Use Wrap to wrap long lines and the magnifier buttons to change the text size.
  3. Click Preview, which appears above the editor for HTML files, to see the page drawn. Click Edit to return to the code.
  4. Press Ctrl + S to save the changes into the original file.

What the preview can and cannot show

For a final check of a full page, save the file and open it in a normal browser tab.

Is it safe to use an online HTML viewer?

Many online HTML viewers and editors work by sending your code to their servers. That is fine for a public snippet, and a poor idea for a client's email template, internal page or anything with names and addresses in it. Read the site's privacy policy, and check what leaves your browser. BookmarkFiles reads and writes the file locally and does not upload its contents. The safety guide explains how to verify this yourself.

Common problems

Frequently asked questions

Can I edit an HTML file in Notepad?

Yes, HTML is plain text, so Notepad works. It has no preview, so you would refresh a browser tab after each save.

Does the preview send my HTML anywhere?

The preview itself is drawn in your browser. The only requests are for resources your HTML refers to by web address, such as an online image.

Why is my CSS file not applied in the preview?

Linked style sheets are separate files that the preview cannot read. Put the CSS inside a style tag to see it in the preview, or check the final page in a normal tab.

Related guides

Ready to try it? Open BookmarkFiles in Chrome or Edge on a desktop computer.