How to Save a Text File as an HTML

by Scott Stanchak
website layout image by 6922Designer from <a href=''></a>

You can convert a text file to HTML without using special software. Such a conversion can be done with a pre-installed program on your PC or Mac. The conversion process is essentially like saving a file for the first time. All you'll have to do is add a file extension to it.

Step 1

Right-click on the text file you want to save as HTML.

Step 2

Select "Open With" and then "Notepad." If you're using a Mac, the program will be called TextEdit.

Step 3

Click "File" and "Save As" in the program's navigation bar.

Step 4

Choose the location you would like to save your new HTML file. Give your file a title in the text field "File name." Don't leave any spaces and remember to add ".html" (without quotes) at the end of the title. In the drop-down box labeled "Save as type" select "All Files." Select "Save."

Minimize Notepad's window. Locate the HTML file you just saved. Right-click on it, select "Open with" and choose the browser of your choice. The file will open as an HTML document.


Photo Credits

  • website layout image by 6922Designer from

About the Author

Scott Stanchak has been a professional journalist since June 2000, specializing in sports and technology. He has contributed to,,, Time Warner, AT&T and Clear Channel, among other media outlets. Stanchak graduated with a bachelor's degree in communication arts from Ramapo College in New Jersey.

More Articles