.cfg files
.cfg file
Configuration File
A settings file whose exact syntax depends entirely on the program that reads it.
What opens a .cfg file
- Windows
- Notepad (built in), Visual Studio Code, Notepad++
- macOS
- TextEdit (built in), Visual Studio Code
- Linux
- Text Editor (built in), Visual Studio Code, nano
What a .cfg file is
CFG is a generic extension for configuration, usually plain text in INI-like or a program-specific syntax — game settings, server configs and application preferences all use it. Open one in a text editor to see which. A few programs write binary .cfg files, in which case the text will be unreadable and only that application can change them.
Converting it
A .cfg file is commonly converted to .ini, .json or .txt. It is a plain text format, so any text editor can open and edit it directly.
Details
- Extension
- .cfg
- Full name
- Configuration File
- Category
- Data
- MIME type
- text/plain
- Created by
- Various
- Format
- Plain text
Common questions
- How do I open a .cfg file?
- On Windows use Notepad (built in); on macOS use TextEdit (built in); on Linux use Text Editor (built in). A settings file whose exact syntax depends entirely on the program that reads it.
- What is a .cfg file?
- Configuration File. CFG is a generic extension for configuration, usually plain text in INI-like or a program-specific syntax — game settings, server configs and application preferences all use it. Open one in a text editor to see which.
- Can I convert a .cfg file?
- Yes. It is usually converted to .ini, .json or .txt, either by exporting from one of the programs listed above or with a format converter.
Related pages
- .csv — Comma-Separated Values A spreadsheet as plain text, one row per line — the universal data exchange form
- .json — JavaScript Object Notation The standard text format for structured data on the web and in config files.
- .xml — Extensible Markup Language A tag-based text format for structured data, still everywhere in enterprise syst
- .yaml — YAML Data File An indentation-based configuration format, readable but unforgiving about whites
- .log — Log File A plain-text record of what a program did, newest events usually at the bottom.
- .torrent — BitTorrent Metainfo File A few kilobytes of metadata describing what to download and from whom — not the
- .dat — Generic Data File A meaningless extension — .dat says only that some program stored data here.
- .vcf — vCard Contact File One or more contacts as plain text — the standard way to move an address book.
- .sql — SQL Script A text file of database commands — often a full database dump.
- .ics — iCalendar Event A calendar invitation or event feed in a plain-text standard format.
- .sqlite — SQLite Database A complete relational database in a single file — the most deployed database in
- .db — Generic Database File An extension many programs use for their data — it does not identify one format.
Sources
- Media Types Registry — IANA
- Official vendor product documentation — At One Place