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: MEDIUMA 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 nutshellPrograms that open INI files
Technical details
deep spec| File type | Plain-text configuration file |
| Structure | Named [sections] containing key=value pairs on individual lines |
| Section syntax | Section name enclosed in square brackets on its own line, e.g. [Database] |
| Key-value syntax | key=value; spaces around the = sign are optional and handled differently by parsers |
| Comment character | Semicolon (;) is the standard comment prefix; some parsers also accept hash (#) |
| Encoding | Typically ANSI (Windows-1252) or UTF-8; Windows API also accepts UTF-16 LE with BOM |
| File signature | None - no magic bytes; files are identified by their [section] / key=value text structure |
| MIME type | text/plain |
| Line endings | CRLF (\r\n) on Windows; most modern parsers also accept LF-only |
| Case sensitivity | Section and key names are case-insensitive in the Windows API; third-party parsers vary |
| Nesting | No native support for nested sections - structure is intentionally flat |
| Data types | All values are plain strings; type conversion (integer, boolean, etc.) is left to the reading application |
| Duplicate keys | Behaviour is undefined in the original format; common parsers use first-wins or last-wins strategy |
| Windows API functions | GetPrivateProfileString and WritePrivateProfileString for reading and writing values programmatically |
| Multi-line values | Not supported in the original format; some extended parsers allow line continuation with a trailing backslash |
| Released | Early Windows (1985, Windows 1.0 era); win.ini / system.ini popularized the format |
| Open standard | Yes · royalty-free |
| Specification | en.wikipedia.org |
INI conversions
Community Q&A
asked by usersNo questions yet - be the first to ask about INI files.