How do I save a file in notepad with a different extension?

If you’ve ever tried saving a file from notepad with a different file extension,you might find that sometimes it works,but sometimes it doesn’t.

Example: you save a file as index.php and it turns out it’s call index.php.txt

The problem is that notepad will often add a .txt extension to the file even if you have specified one in the filename.

Solution: when you type in the file name, put double-quotes on either side of the name and is will save it “as-is”

Example: “index.php”

About Author


David has been programming computers for over 30 years. It's more of an obsession than a hobby! As well as having his own moderately successful retail business, David works as a Web Designer for a company called Radilks in the South of the UK.

Leave a Reply