This article explains what a CGI file is, how to open it on your computer, and how to convert it to another format.
How do I save a CGI file?
A file with the CGI file extension is a Common Gateway Interface script. They are text files, but because they are written in a programming language like C or Perl, they can function as executable files under certain circumstances.
An example is a CGI file that contains scripts responsible for sending emails from a form on a website. These are often seen in the "cgi-bin" directory of a web server.
Because CGI files are text files, you can view and edit them with Windows' built-in Notepad, as well as other text editors.