Click the "Select File" button above, and choose your INC file.
You’ll see a preview, if available.
Click the "Convert file to..." button to extract text information.
Convert INC to another file type
To convert your INC file to another format, you need Visual Studio Code or other Developer software.
Convert a file to INC
To convert other file formats to the "Source Code Include" file type, you need software like Visual Studio Code or a similar tool.
About INC files
An .INC file is a text-based Include File used primarily in software development and web programming to store reusable code snippets, variables, or functions. By referencing a single .INC file across multiple pages (e.g., headers, footers, or database connection strings), developers adhere to the "Don't Repeat Yourself" (DRY) principle. These files are most commonly associated with PHP and Microsoft ASP, but are also essential in Pawn scripting for game mods (like SA-MP or AMX Mod X) and Rainmeter desktop skins.
A significant issue with .INC files is that they are not executable on their own and most operating systems do not associate them with a default application. Furthermore, if a web server is not configured correctly, it may serve the .INC file as plain text to the browser, potentially exposing sensitive data like API keys or database passwords to the public - a major security vulnerability. Users often need to convert these files to verify their contents without risking accidental execution or modification.
For safe viewing and quick auditing, converting .INC to TXT is the most practical solution, ensuring compatibility with any device. For documentation or sharing code snippets with non-developers, converting to PDF is ideal. If you are developing for the web, renaming or converting the content to PHP ensures the code is treated with the correct syntax highlighting and server-side processing rules.
Convert.Guru analyzes your INC file, detects the exact format, and lets you read the text inside.
If you want to convert INC file to JS, TS, PY, JAVA, CPP, C, CS, PHP, RB, GO, RS or SWIFT, you can use Visual Studio Code or similar software from the "Modular Source Code Storage" category. In the File menu, look for Save As… or Export….
To convert SH, PY, KT, PS1, SWIFT, LUA, PL, JAVA, SCALA, JS, VBS or TS files to INC, try Visual Studio Code or another comparable tool in the "Modular Source Code Storage" category.
The INC Converter Story
The history of Convert.Guru began over 25 years ago in California with Tom Simondi’s file-format database. A former contributor to Space Shuttle development and a software pioneer of the 1980s, Simondi established a trusted resource for file type analysis that was even referenced by Microsoft Windows XP. Today, we use modern technology to process and convert thousands of file formats while continually improving our INC converter.