.INI

INI File

Initialization (Configuration) File
Ask a question
QUICK ANSWER

An INI file is a plain-text configuration file that stores a program's settings as name=value pairs grouped under [section] headers. Open it with any text editor - Notepad++ or VS Code on Windows, TextEdit (plain text mode) on Mac, gedit or nano on Linux. Always back up the file before editing; a wrong change can stop the program from starting.

Developer: N/A (de facto standard, originated by Microsoft Windows) Category: Settings Files Open standard MIME: text/plain
OPENS ON Windows macOS Linux
Related: .ICA · .DS_STORE · .WMZ · .CFG

On this page

19k+ extensions indexed
Last reviewed Jul 21, 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 INI file format?

.ini files store configuration data for applications on Windows and other operating systems. Introduced during the early Windows era - around 1985 with win.ini and system.ini - the format spread well beyond its origins to Linux, macOS, and cross-platform software.

.ini is a plain-text format that stores application configuration information using a well-defined structure of sections and key=value pairs. A section header appears in square brackets, e.g. [General], and all key-value lines beneath it belong to that section. Comments start with a semicolon (;); some parsers also accept #. Because no official specification exists, parser behaviour varies between implementations. Closely related formats include .cfg, .conf, and the newer .toml.

Can an .ini file be edited manually?

.ini files store data in plain text, making them fully human-readable and hand-editable in any text editor. Any syntax error in an .ini file may cause the application or program that uses it to not run properly or prevent it from starting, so edits should be made carefully.

Is removing an .ini file safe?

Removing .ini files is strongly discouraged. System-level files such as desktop.ini typically have the hidden attribute activated and are not listed in the default folder view. For certain .ini files, Windows automatically generates a missing file if it has been deleted - as is the case with desktop.ini, which determines folder view settings. When this file is not present, Windows will automatically generate one with default settings.

Security & safety

RISK: MEDIUM

A text .ini is safe to open and read - it can't execute. The real risk is in EDITING: because an .ini often controls whether its program starts and how it behaves, a bad value, typo, or wrong character can break the application. Always copy the original to a backup before changing anything, use a plain-text/code editor (never a word processor that adds formatting), and change one setting at a time. Be cautious about downloaded "tweak"/"optimized" .ini files from untrusted sources - a config can point a program at unexpected paths. desktop.ini is a normal Windows system file, not malware.

Format details

in a nutshell
FULL NAMEInitialization (Configuration) File
DEVELOPERN/A (de facto standard, originated by Microsoft Windows)since Early Windows (1985, Windows 1.0 era); win.ini / system.ini popularized the format
MIME TYPEtext/plain
TYPEPlain-text configuration file - [sections] with key=value pairs
STANDARDOpen · royalty-free

Programs that open INI files

Windows4 apps
Windows Notepad Built-in Right-click > Open with > Notepad for quick edits to small .ini files.
UltraEdit Paid Open and edit the .ini in this commercial text editor; offers column editing and large-file handling.
Notepad Open-source Right-click > Edit with Notepad++; it highlights [sections] and key=value and shows line numbers. Best free choice.
Visual Studio Code Free Open the .ini for editing with INI syntax highlighting; good for larger config files.
macOS2 apps
TextEdit Built-in Open the .ini, choose Format > Make Plain Text before saving so it stays plain text (don't save as RTF).
Visual Studio Code Free Open to edit the .ini with highlighting; safer than TextEdit for structured files.
Linux2 apps
GNOME Text Editor / gedit Open-source Open the .ini to read/edit; the default GNOME editor handles config files fine.
nano / vim Open-source Edit in the terminal: nano file.ini - standard for server config files. Back up first.

Technical details

deep spec
File typePlain-text configuration file
StructureNamed [sections] containing key=value pairs on individual lines
Section syntaxSection name enclosed in square brackets on its own line, e.g. [Database]
Key-value syntaxkey=value; spaces around the = sign are optional and handled differently by parsers
Comment characterSemicolon (;) is the standard comment prefix; some parsers also accept hash (#)
EncodingTypically ANSI (Windows-1252) or UTF-8; Windows API also accepts UTF-16 LE with BOM
File signatureNone - no magic bytes; files are identified by their [section] / key=value text structure
MIME typetext/plain
Line endingsCRLF (\r\n) on Windows; most modern parsers also accept LF-only
Case sensitivitySection and key names are case-insensitive in the Windows API; third-party parsers vary
NestingNo native support for nested sections - structure is intentionally flat
Data typesAll values are plain strings; type conversion (integer, boolean, etc.) is left to the reading application
Duplicate keysBehaviour is undefined in the original format; common parsers use first-wins or last-wins strategy
Windows API functionsGetPrivateProfileString and WritePrivateProfileString for reading and writing values programmatically
Multi-line valuesNot supported in the original format; some extended parsers allow line continuation with a trailing backslash
ReleasedEarly Windows (1985, Windows 1.0 era); win.ini / system.ini popularized the format
Open standardYes · royalty-free
Specificationen.wikipedia.org

INI conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with INI 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 INI files.

Frequently asked questions

How do I open an INI file?
It's plain text - open it with Notepad++ or VS Code (recommended) or Notepad on Windows, TextEdit in plain-text mode on Mac, or gedit/nano on Linux. Avoid word processors like Word, which can corrupt it with hidden formatting.
Can I edit an INI file safely?
Yes, but make a backup copy first. Use a plain-text/code editor, change one setting at a time, and keep the original so you can restore it if the program stops working.
What is desktop.ini and can I delete it?
desktop.ini is a normal hidden Windows file that stores a folder's custom icon/view settings. It's safe - best left alone. If you delete it the folder just loses those customizations and Windows may recreate it.
What's the difference between INI, CFG, and CONF files?
Practically none - all three are common names for plain-text configuration files using key=value (and often [sections]) syntax. The extension is just a convention the developer chose.
I edited an INI and now the program won't start - what now?
Restore the backup you made, or delete the .ini so the program regenerates a default one (you'll lose custom settings). This is exactly why copying the file before editing matters.
Is an INI file a virus?
No. An .ini is passive text and cannot run. Just be careful editing it, and don't trust 'optimizer' .ini files from sketchy sources.

References

1Wikipedia - INI file (format and history)en.wikipedia.org
2Microsoft Learn - Structure of an INI file ([section]/key=value)learn.microsoft.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.EXEWindows Executable (Portable Executable)
5.DATProgram Data File (generic)
6.MDMarkdown Document
7.TMPTemporary File
8.BINCD/DVD Disc Image (BIN/CUE)
9.M4AMPEG-4 Audio File
10.JSONJavaScript Object Notation file

Related extensions

.ICACitrix Independent Computing Architecture file
.DS_STOREmacOS Finder Desktop Services Store (.DS_Store)
.WMZWindows Media Player Skin
.CFGConfiguration File
.LICLicense File
.CONFConfiguration 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