How to edit an HTML file (on Windows, Mac, or a page you already shared)
An .html file is plain text, so any text editor can change it. Which app to use on Windows and Mac, how to find the line you want, how to save without breaking the file, and how to change the words on a page that is already live.
An HTML file is plain text with tags around it. You do not need special software to change it: open it in a text editor, change the words or code, save, and reload it in the browser. Most problems come from opening it in the wrong app or saving it in the wrong format.
On Windows
- ✓Right-click the .html file, choose Open with, then Notepad. (Double-clicking opens it in a browser, which only shows the page.)
- ✓Press Ctrl+F to find the text you want to change. The words on the page appear in the file between tags, for example <h1>Spring menu</h1>.
- ✓Save with Ctrl+S. Notepad keeps the .html name and UTF-8 encoding, so the file stays a web page.
- ✓Reload the browser tab (F5) to see the change.
On a Mac
- ✓Control-click the file, choose Open With, then TextEdit.
- ✓If TextEdit shows the page as formatted text instead of code, close it, open TextEdit > Settings > Open and Save, and tick "Display HTML files as HTML code instead of formatted text". Open the file again.
- ✓Find text with Command-F, change it, and save with Command-S. If TextEdit offers to add .txt, choose to keep .html.
- ✓Reload the page in Safari or Chrome (Command-R).
A code editor for bigger changes
For anything past a few words, a free code editor such as VS Code is easier. It colours tags, closes them for you, and flags a missing quote or bracket. Open the file with File > Open, edit, save, and reload the browser.
Files made by an AI tool are often one long file with the styles and scripts inside it. Search for the visible text rather than scrolling. If you would rather not touch the code, paste the file back into the chat and ask for the change, then save the new version over the old one.
Edits in the browser do not save
Right-click > Inspect lets you change text on any page, and the change shows at once. It is gone when you reload. Use it to try wording, then make the same change in the file.
Common mistakes
- ✓Editing in Word or Google Docs. They save their own format, not HTML. Use a plain-text editor.
- ✓Deleting part of a tag. If the layout breaks after an edit, check that every < has its > and every quote is closed. Undo (Ctrl+Z or Command-Z) and try again.
- ✓Saving as page.html.txt. Check the full file name and remove .txt.
- ✓Straight quotes turned curly. TextEdit and some Mac settings swap " for “ ”, which breaks attributes. In TextEdit, turn off Edit > Substitutions > Smart Quotes.
Change a page you already shared
If the file is already out as a link on FileShare Pro, you do not have to edit, re-save and send a new copy. Open the link while signed in, switch the header to Edit, click any text and type. The change publishes as a new version at the same link. You can also hide a section the same way.
Every publish is kept in version history, and restoring an older one is its own version, so nothing is lost. People you share with can suggest text changes in Edit mode too; their changes show as tracked suggestions and go live only when you accept them.
- ✓For changes to layout or code, edit the file on your computer and replace it without changing the link.
- ✓Reviewers can also leave comments on the page without an account.
- ✓Shared pages carry a noindex header, so drafts stay out of Google.
Start
Sign up free, upload the .html file, and edit its text from the link. The Free plan holds 50 files.
Related: opening an HTML file in Chrome, on a Mac, and seeing HTML code as a web page.
Frequently asked
Any plain-text editor: Notepad on Windows, TextEdit on Mac (set to show HTML as code), or a free code editor such as VS Code. Do not use Word or Google Docs.
The browser is the default app for .html files. Right-click (Control-click on a Mac), choose Open with, and pick the text editor.
Changes made with Inspect in a browser are lost on reload. A host with an edit mode, such as FileShare Pro, lets you change the text of a shared page from its link and keeps each change as a version.
Usually a tag or quote was cut in half, or the editor swapped straight quotes for curly ones. Undo, or compare with the original file and fix the broken tag.
Drop the file, copy the link — live in seconds, free plan included.
Start sharing free