Geek Dashboard Home
  • News
  • Smartphones
    • Android
    • iOS
  • Computers
    • Windows
    • macOS
  • Internet
  • Reviews
  • Tools
    • Password Generator
    • iFrame Tester
Search Geek Dashboard
Home • Computer

How to Open, Edit and Save .CFG Files in Windows Computer

Anmol Mishra • Updated December 31, 2020 • 5 min read •

Have you ever encountered a .cfg file while wandering in different places on your Windows computer? A .cfg or .config file is a configuration file that stores settings for various applications, games, and software installed on your computer. While in most cases you don’t need any special software or tool to open CFG files, it can be easily opened in any text editor.

What Are CFG Files?

The .cfg or .config extension stands for configuration and various software stores their settings with this extension. Most CFG files are plain text files but in some cases, they can be in a specific format depending on their corresponding software code structure.

For example, the project IGI 2 contains a file by the name networkconfig.cfg, which contains settings related to network configuration.

IGI 2 networkconfig.cfg file

While deleting or editing this particular file doesn’t affect the game performance but in some cases .cfg files store execution codes as well and deleting them can make those programs inoperable. In most cases, these instructions are commented on at the start of those files.

The one example of this case is file handling.cfg of GTA Vice City 2010 where it is mentioned: “Tweak at your own risk”. So before editing a .cfg file, you should know what you are doing or it may make the application crash when you open it next time.

Also Read: How to Convert WebM Videos to MP4 Format on Mac and Windows

How to Open CFG Files

While there are various programs and applications which use .cfg files for storing their data, Microsoft Office, Visual Studio, Project IGI, GTA Vice City, Bluestacks, and Celestia are some popular names using these types of files. As mentioned earlier, you don’t need any special application or tool to open CFG files, you can open or view them with Notepad (the default text editor of Windows OS).

Some .cgf files contain data in WML programming language like from the game The Battle for Wesnoth. While network configuration files like networkconfig.cfg of IGI 2 store information related to server connection, IP address, and passwords. Normally, users don’t need to access these files as these files are used by those programs internally for running smoothly.

To open CFG files, follow these simple mentioned below. We are taking the network configuration file of IGI 2 for the demonstration.

  1. Locate the file you need to open.
  2. Right-click on .CFG file and select “Open with” option.
  3. Choose Notepad from the list.
  4. Enable “Always use this app to open .cfg files” (optional).
  5. Click on OK to open the .CFG file.

Notepad selection for cfg files

How to Edit and Save CFG Files

While old school Notepad works fine if you want to just view the CFG files. But for editing the .CFG files correctly, we recommend using Notepad++ for more robust viewing and editing. It offers a variety of features like color and syntax highlighting that helps you editing the CFG files without syntax errors. You can also use Notepad++ to save the CFG file to any format you like.

However, there isn’t any important reason for you to change the configuration of these files as applications need these files in CFG format for normal operations. Otherwise, there isn’t any other way by which these programs/ applications can find those files. In that case, most probably programs will use their default setting and will create those files again.

About Notepad++, we can say that it is an advanced version of Notepad with features like tabbed editing, Autosave, simultaneous editing, and multiple language support. Using Notepad++ we can convert files from .cfg/.config to XML, JSON, HTML and more. While most CFG files can be edited using Notepad++ but few .cfg files like celestia.cfg need a special tool for editing. In the case of Celestia, it will need a Celesia Config Manager.

Follow the steps below to edit a CFG file using Notepad++ 

  1. Download and install the latest version of Notepad++ software on your computer.
  2. Locate the CFG file and create a copy of it for backup (Optional).
  3. Now right-click on the original CFG file.
  4. Choose the “Open With” option.
  5. Select Notepad++ from the list of installed software.
    Notepad++ selection to Open CFG files
  6. Edit the CFG file as per your requirements.
  7. Click on the File menu in the upper left corner.Notepad++ file menu
  8. Select the Save option to save the file with same .CFG extension.
  9. If you wish to change the extension, click on the “Save as” option, and choose the extension from the drop-down list. Save as option in Notepad ++

Additional Information About Configuration Files

Changing the file extension will never alter the file contents. For example, if you change the .cfg extension to .txt format, you can still open it with any text editor or IDE’s. Though the file contents remain the same, the way the software process the file is different.

A software can store their application settings in any file format they like. Ultimately the corresponding software knows how they have stored the information and how to parse that file to retrieve the information.

Also Read: How to Generate and Extract APK Files from Android App Bundle (AAB)

Let’s have a look at a few other file extensions which can be used for storing configuration files.

  • In most of the cases, configuration files use CNF or .cf extension.
  • macOS use PLIST while Windows uses the INI extension.
  • JSON, PROPERTIES, and CONF are some other extensions.

There are different types of extensions in which programs and applications save their data and the .CFG extension is one of the popular formats. Other extensions may need special tools to open them but to open CFG files you just need a simple text editor like Notepad, WordPad, or Notepad++.

Computer CFG macOS Notepad Windows

Be the Change!

Spread the word and help us create better tech content

Facebook Twitter Reddit WhatsApp Pinterest
Avatar for Anmol Mishra

Anmol Mishra

•
Facebook Instagram

Anmol is a writer and technology buff. He loves to research and learn about new gadgets and technology.

Read all 6 articles from Anmol

Over 1,30,286+ Followers

Join now to get all latest updates from Geek Dashboard

Facebook Twitter Telegram Pinterest YouTube Instagram

Recently Published

  1. TAGRY X08 True Wireless Earbuds Review: Budget-Friendly Excellence with Long Battery Life
  2. Why Are Tech Lawsuits Becoming the New Normal in the US
  3. My Experience of Using TuneFab Amazon Video Downloader
  4. Wondershare Dr. Fone 13 Review - The Ultimate Mobile Toolkit for iOS and Android
  5. TOZO OpenEgo Review - Is It a Reliable and Practical Headphone?
  6. Samsung Lost its Crown as the Top Foldable Smartphone Seller Worldwide

Download the Apps Now

We put a lot of effort and resources in writing our articles, and we believe it is our responsibility to satisfy your tech hunger

Download Geek Dashboard Android App on Google PlayAndroid App onGoogle Play Download Geek Dashboard Extension on Chrome Web StoreBrowser Extension onChrome Web Store
Geek Dashboard Logo

Geek Dashboard brings you the latest and greatest in technology news, reviews, and how-to guides. From smartphones to laptops, drones to VR and everything in between, we've got you covered

Got a Tip? Write In? tip@geekdashboard.com

© 2012 - 2025 · Geek Dashboard, product of ikva eSolutions

  • Blog
  • Advertise
  • About
  • Jobs
  • Contact
  • Privacy Policy
  • Write For Us
  • T&C
  • Office Setup

No dogs were injured while working on this website because we love them