How to Open .CFG File in Windows 11

Published by Nyau Wai Hoe - Updated on

A .CFG file is a configuration file used by programs to store configurations and settings about how things work. CFG files are commonly found in software, applications and games, and are supported by Windows. It is a common case that some users would want to manually edit the configuration file of an app or game to tweak settings that are not usually editable in the app or game. This guide will show you how to open and edit .CFG files in Windows 11.

How to open CFG file in Windows 11

CFG configuration files are often named config.cfg or settings.cfg, containing a variable and a value per line. These variables and values tell the application or game how things should work. A .CFG extension file is generally viewable and editable by any text editor program such as Notepad or WordPad in Windows.

Open and edit .CFG file in Windows 11

CFG files usually contain only texts and numbers (parameters and initial settings) that can be read by any text editor. In Windows 11, you can easily open and view a .CFG file with the built-in Notepad or WordPad application. You can also edit the .CFG file provided you have the required privileges to do so. Listed below are several text editors which allow you to open and edit .cfg files in Windows 11.

Related: How to Take Ownership of a File, Folder or Drive in Windows 11


The easiest and quickest way to open a .CFG file is to just open it with Notepad. By default, Windows does not recognize CFG extension file and will not assigned any default app to open a .cfg file. You will have to manually open it with a supported app, in this case, the Notepad.

To open a .cfg file with Notepad, right-click the file and select Open with.

Open With CFG file Windows 11

Under “How do you want to open this file”, click More apps. Then, select Notepad from the list of available apps and click OK to open it.

Open .cfg files with Notepad

Optionally, enable the “Always use this app to open .cfg files” option to set Notepad as the default app to open all .cfg files in the future.

Open CFG files Windows 11

If the CFG extension file already has a default app to open it with, if the default app isn’t what you are looking for to open the file, right-click the .cfg file, select Open with, then select Choose another app.

Open With Choose another app Windows 11

Next, select Notepad from the list of apps and check the checkbox for “Always use this app to open .cfg files” to tell Windows to always open all .cfg files in Notepad.


WordPad is another built-in word processing app in Windows with many extra formatting features. You can think of WordPad as a stripped down version of Microsoft Word. However, when you save the .cfg file after making changes using WordPad, be sure to save it as text-only file to prevent any formatting from breaking the configuration file.

Edit CFG file in Windows 11

If you prefer WordPad over Notepad, here’s how to open a .cfg file with WordPad in Windows 11.

Right-click the .cfg file you want to open, select Open With. Click More apps and then select WordPad from the list of available apps. Next, click OK to open the CFG file in WordPad.

View CFG file with WordPad


Notepad++ is a text and source code editor for use with Windows. It is very popular especially among web developers for code writing and editing. It is a much better version of Notepad with enhanced features to allow making viewing and editing text and code a lot easier. Most importantly, it is free to download and use.

CFG file Notepad++ Windows 11

To open CFG files with Notepad++, first download Notepad++ from and install it.

Once installed, right-click the .cfg file you want to open, select Open With > Choose another app.

If Notepad++ is not listed in the “open with” pop up, click “Look for another app on this PC“.

Look for another app on this PC Windows 11

Then, browse to where the Notepad++ was installed. The installation folder is usually located in C:\Program Files\Notepad++. Once you are in the folder, select notepad++.exe and click Open to open the CFG file in Notepad++.

Open with Notepad++ in Windows 11

Can’t open .CFG file due to insufficient permission

If you receive permission errors such as “Access denied” or “You don’t have permission to open this file” in Windows when you try to open a .CFG file, it indicates that your user account does not have the privilege to view or edit the file.

Try to run Notepad as administrator, then open the CFG file from within Notepad (File > Open > Browse to and open the CFG file).

.CFG file unreadable

Most CFG files use a standard format such as XML or JSON, making them easier to view and edit. However, if a .cfg file contains custom format or style designed by the developer of the app or game, a generic text editor such as Notepad may not be able to read them properly.

If you forcefully open a large .cfg file that contains custom formatting with Notepad, the texts may appear messy along with unknown codes that only the software developers themselves could understand.

Categories: AppWindows 11

Nyau Wai Hoe
Nyau Wai Hoe is the Founder and Chief Editor of With a degree in software engineering and over 12 years of experience in the tech support industry, Nyau has established himself as an expert in the field, with a primary focus on the Microsoft Windows operating system. As a tech enthusiast, he loves exploring new technologies and leveraging them to solve real-life problems.

Share via
Copy link