A cgi file extension is related to the Common Gateway Interface and used for its script files.

There are 2 other file types using
the CGI file extension!

cgi icon.cgi - Perl cgi script

empty icon.cgi - RAD Studio configuration

Detailed description

Software that works with cgi file extension

Add comment

Bookmark & share this page with others:

CGI file extension - Common Gateway Interface script

What is cgi file? How to open cgi files?

File type specification:

Source code and script file type icon Source code and script file type

Internet related file type icon Internet related file type

cgi file icon: cgi filetype icon

The cgi file extension is related to the The Common Gateway Interface. CGI is a standard for interfacing external applications with information servers, such as HTTP or Web servers.

A plain HTML document that the Web daemon retrieves is static, which means it exists in a constant state: a text file that doesn't change. A CGI program, on the other hand, is executed in real-time, so that it can output dynamic information.

For example, let's say that you wanted to "hook up" your Unix database to the World Wide Web, to allow people from all over the world to query it. Basically, you need to create a CGI program that the Web daemon will execute to transmit information to the database engine, and receive the results back again and display them to the client. This is an example of a gateway, and this is where CGI, currently version 1.1, got its origins.

The database example is a simple idea, but most of the time rather difficult to implement. There really is no limit as to what you can hook up to the Web. The only thing you need to remember is that whatever your CGI program does, it should not take too long to process. Otherwise, the user will just be staring at their browser waiting for something to happen.

MIME types:

The default software associated to cgi file type:

NotePad++ text editor icon

Notepad++ Team logoNotePad++ text editor  Microsoft Windows software

Company or developer:
Notepad++ Team

Notepad++ is very popular free text and source code editor. It supports syntax highlighting and syntax folding for C, C++, HTML, ASP, Java, Pascal, PHP, Cobol, CSS etc. Notepad++ also supports plugins to add new features. It is localized to many languages.

Coda for Mac icon

Panic Inc. logoCoda for Mac  Apple macOS / Mac OS X software

Company or developer:
Panic Inc.

Coda is HTML source code editor and web designing tool for Apple Mac computers.

Help how to open CGI files:

Use any text editor or source code editor to view content of *.cgi script file.

How to convert file with extension CGI:

As far as we know, this .cgi file type can't be converted to any other file format. This is usually the case of system, configuration, temporary, or data files containing data exclusive to only one software and used for its own purposes. Also some proprietary or closed file formats cannot be converted to more common file types in order to protect the intellectual property of the developer, which is for example the case of some DRM-protected multimedia files.

List of software applications associated to the .cgi file extension

Recommended software programs are sorted by OS platform (Windows, macOS, Linux etc.) and possible program actions
that can be done with the file
: like open cgi file, edit cgi file, convert cgi file, view cgi file, play cgi file etc. (if exist software for corresponding action in File-Extensions.org's database).

Click on the tab below to simply browse between the application actions, to quickly get a list of recommended software, which is ableto perform the specified software action, such as opening, editing or converting cgi files.

  • Open cgi file
  • Edit cgi file

Software that open cgi file - Common Gateway Interface script

Click on the link to get more information about listed programs for open cgi file action.

Microsoft Windows:

Main software associated with cgi file by default:
NotePad++ text editor small icon NotePad++ text editor
Other suggested software:
Adobe Contribute small icon Adobe Contribute
Microsoft Windows NotePad small icon Microsoft Windows NotePad
Sublime Text small icon Sublime Text
Atom small icon Atom

Apple macOS / Mac OS X:

Main software associated with cgi file by default:
Coda for Mac small icon Coda for Mac
Other suggested software:
TextMate small icon TextMate
BBEdit small icon BBEdit
TextEdit small icon TextEdit
Sublime Text for Mac small icon Sublime Text for Mac
Atom for Mac small icon Atom for Mac


Previous file extension
CG file extension

File-Extensions.org > Source code and script file types

Next file extension
file extension CGI


Follow us!

Enter any file extension without dot (e.g. pdf)
Search for file extension details and associated application(s)

RSS feed