.INC

INC File

HTML Server Side Include File
Ask a question
QUICK ANSWER

An INC file is a plain-text fragment - most often an HTML snippet (site header or footer) that a web server inserts into pages before sending them to the browser. Open it in any text editor: Notepad++, VS Code, or Vim. The browser never receives the .inc file directly; it is processed entirely server-side.

Developer: N/A (SSI originated at NCSA HTTPd ~1994; standardized informally; Apache mod_include) Category: Developer Files Open standard MIME: text/html
OPENS ON Windows macOS Linux
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Aug 15, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the INC file format?

An .inc file in the web context is an HTML fragment designed to be inserted into other pages by a web server using Server Side Includes (SSI). SSI originated around 1994 with the NCSA HTTPd server; Apache's mod_include module later became the dominant implementation and remains maintained in Apache 2.4.x.

The web server processes SSI directives written in HTML comment syntax - for example <!--#include virtual="/header.inc" --> - and substitutes the fragment into the assembled response before sending it to the browser. The browser never receives the .inc file directly; it only sees the merged HTML output.

Typical uses are site-wide reusable elements such as page headers, footers, and navigation bars. Because any change to the .inc file propagates instantly to every page that includes it, SSI offered a primitive form of server-side templating before PHP and other scripting languages became standard.

The .inc extension is a convention with no enforced format: the same extension is also used by PHP include files, assembler include files, and Delphi/Pascal source fragments. An .inc file intended for SSI is plain UTF-8 or ASCII text - an HTML fragment without <html>, <head>, or <body> wrappers. SSI is largely obsolete for new projects, replaced by PHP include/require, template engines such as Jinja2 and Twig, and static site generators such as Jekyll or Hugo.

Security & safety

RISK: LOW

An .inc file is plain text - it contains no executable binary code and is not a malware vector by itself. However, an .inc file containing PHP or SSI code processed by a server does execute on the server; a maliciously crafted .inc with server-side code could cause harm if uploaded to a server and included. As a file you download and open in a text editor: safe. The main risk is a web server misconfigured to serve .inc files directly (exposing database credentials in a config.inc, for example).

Format details

in a nutshell
FULL NAMEHTML Server Side Include Fileaka SSI include file, server include
DEVELOPERN/A (SSI originated at NCSA HTTPd ~1994; standardized informally; Apache mod_include)since ~1994 (NCSA HTTPd server includes); Apache adopted and extended
MIME TYPEtext/html
TYPEText file - HTML/SSI fragment included server-side into other pages
STANDARDOpen · royalty-free
This extension is also used by…
  • PHP Include File - PHP developers commonly name included PHP code fragments with .inc extension (e.g. config.inc, db.inc); processed server-side by PHP, never served directly to browsers.
  • Assembler/Pascal/Delphi Include File - Many programming languages (x86 assembler NASM/MASM, Pascal/Delphi, Fortran) use .inc for include files containing constants, macros, or shared declarations.
  • Game/Engine Data Include - Game engines including GZDoom (DECORATE/ZScript), Quake/Source engine, and AutoHotkey use .inc for data or script fragments included into larger scripts.

Programs that open INC files

Windows4 apps
Microsoft Visual Studio Freemium Open directly; supports .inc as HTML or code include depending on project context.
Sublime Text Freemium File > Open File. Set syntax to HTML or PHP for proper highlighting.
Notepad Open-source File > Open. Excellent HTML/PHP syntax highlighting for .inc files.
Visual Studio Code Open-source Open folder or drag file into VS Code. Associate .inc with HTML or PHP syntax for highlighting.
macOS3 apps
TextMate Open-source Open the .inc file and assign HTML or PHP bundle for syntax highlighting.
BBEdit Freemium Open directly; BBEdit supports SSI syntax coloring.
Visual Studio Code Open-source Open the .inc file; set language mode to HTML or PHP for syntax highlighting.
Linux2 apps
Vim Open-source vim file.inc - set ft=html or ft=php for syntax. Widely used in server-side contexts.
Visual Studio Code Open-source Open file; set language mode to HTML or PHP.

Technical details

deep spec
File typePlain text - HTML fragment (partial page content without structural wrappers)
MIME typetext/html (primary); text/plain (alternate)
EncodingUTF-8 or ASCII - matches the encoding of the including page
CompressionNone - uncompressed plain text
EncryptionNone - access controlled at the web server level, not the file
Typical sizeUnder 10 KB (reusable HTML fragment such as a site header or footer)
Magic bytesNone - plain text file with no binary signature
SSI directive syntaxHTML comment syntax: <!--#include virtual="/path/file" --> or <!--#include file="relative/path" -->
Server processingApache mod_include or Nginx ngx_http_ssi_module processes directives and injects the fragment before sending the response to the browser
Browser visibilityBrowser never receives the .inc file directly - receives only the fully assembled HTML response
IIS supportSupported via the IIS Server Side Includes (SSINC) module on Windows
Associated OSLinux, Windows, macOS (any OS hosting Apache, Nginx, or IIS)
Common usesSite-wide headers, footers, and navigation bars - HTML fragments reused across multiple pages
Superseded byPHP include/require, Jinja2, Twig, and static site generators (Jekyll, Hugo, Next.js) for new development
Released~1994 (NCSA HTTPd server includes); Apache adopted and extended
Latest versionN/A - SSI is a static web technology; Apache mod_include still maintained in Apache 2.4.x
Open standardYes · royalty-free
Specificationhttpd.apache.org

INC conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with INC files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about INC files.

Frequently asked questions

How do I open an INC file?
An INC file is plain text - open it in any text editor: Notepad++ (Windows), VS Code (all platforms), Vim (Linux/macOS), BBEdit (macOS). It contains HTML fragments, PHP code, SSI directives, or other source code.
Why can't I open the INC file in my browser?
The browser is the wrong tool. An INC file is a server-side include fragment - the web server inserts it into pages before sending them to browsers. Access it via a text editor, not a browser.
What creates INC files?
Web developers create them manually as reusable HTML fragments (header.inc, footer.inc). They also come from PHP projects (config.inc), game mods, assembler projects, and build tools.
Is an INC file dangerous?
As a file opened in a text editor, no - it's plain text. If it's a PHP or SSI include file, the code runs on the server, not your computer. The main risk is accidentally exposing a config.inc with credentials on a web server.
What is the difference between SSI and PHP includes?
Both insert file content server-side. SSI (<!--#include -->) is processed by the web server (Apache mod_include) and works only on static HTML. PHP include/require is processed by PHP and can include any PHP code. PHP has largely replaced SSI in modern web development.

References

1Wikipedia - Server Side Includesen.wikipedia.org
2Apache - Introduction to Server Side Includeshttpd.apache.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.RPMSGRestricted Permission Message
9.MDMarkdown Document
10.TMPTemporary File

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z