An INI file stores settings for a program in plain text that both humans and computers can read

An INI file is a straightforward text document that holds configuration settings — things like window size, color preferences, login information, or which features are turned on. The name comes from the file extension: .ini, short for "initialization". When you open a program and it remembers that you like the dark theme, or that you always save documents to a specific folder, that information is probably stored in an INI file somewhere on your computer.

The reason INI files exist is practical: they let programs save your choices without needing a complicated database. A program can read an INI file in milliseconds, find the setting it needs, and explore it before the window even appears on your screen. They are also human-readable, which means if something goes wrong, you can open one in Notepad and see exactly what is stored there.

INI files are most common on Windows computers, though they appear on Mac and Linux systems too. You will rarely need to edit one yourself — most programs have a settings menu that changes the INI file behind the scenes. But understanding what they are helps explain why deleting them sometimes fixes a broken program, or why moving a program to a new computer sometimes loses your settings.

Key Takeaways

  • An INI file is a text document that stores program settings like preferences, window size, and user choices in a format both humans and computers can read.
  • Programs read INI files when they start up, which is why your settings appear the same way you left them the last time you used the program.
  • INI files are usually hidden in system folders on Windows, so you will not see them unless you turn on the option to show hidden files.
  • Deleting an INI file resets a program to its default settings, which sometimes fixes problems caused by corrupted or conflicting settings.
  • Most programs let you change settings through their menu instead of editing the INI file directly, which is the safer approach.

How an INI file is organized

An INI file uses a straightforward structure that makes it straightforward to find what you are looking for. Settings are grouped into sections, marked by a word in square brackets like [Settings] or [Display]. Under each section, individual settings appear as pairs: a name on the left, an equals sign, and a value on the right.

Here is what a real INI file might look like inside:

[Display] Theme=Dark WindowWidth=1024 WindowHeight=768 [Folders] DefaultSave=C:\Users\YourName\Documents LastOpened=C:\Users\YourName\Downloads

This structure is so straightforward that a program can scan through it in a fraction of a second. When the program starts, it looks for the section it needs, finds the setting it wants, and reads the value. If a setting is missing, the program uses a built-in default instead. This is why you can delete an INI file and a program will still work — it just reverts to factory settings.

Where INI files live on your computer

On Windows, INI files are usually stored in hidden system folders that you do not see by default. Many programs keep their INI files in the AppData folder, which is tucked away in your user directory. Other programs store them in the program's own folder, or in the Windows system directory itself.

To see hidden files on Windows 10 or 11, open File Explorer, click the View tab at the top, and check the box next to "Hidden items". Then you can navigate to C:\Users\YourName\AppData and look for the program's folder. On Mac, INI files are less common — Mac programs usually use a different format called plist files instead. On Linux, configuration files often use INI format but may have different names or locations depending on the program.

You do not need to know exactly where your INI files are unless something goes wrong. Most of the time, the program handles them automatically and you never think about them.

When you might need to know about INI files

The most common reason to think about INI files is when a program starts behaving strangely — crashing on startup, showing corrupted text, or refusing to save your settings. Sometimes the INI file itself becomes corrupted, usually because the program crashed while writing to it. In these cases, deleting the INI file and letting the program recreate it from scratch often fixes the problem.

Another reason is when you move a program to a new computer. The program itself transfers fine, but the INI file stays behind on the old machine. This is why your settings do not follow you — the new computer has no INI file yet, so the program starts with defaults. Some programs let you export and import settings, which copies the INI file information in a safer way.

Occasionally, someone might edit an INI file directly to change a setting that the program's menu does not expose. This is rare and usually only done by people troubleshooting advanced problems. If you ever need to do this, make a backup copy of the INI file first, because a typo can break the program.

INI files versus other configuration formats

INI files are old — they have been around since the early days of Windows — but they are not the only way programs store settings. Modern programs often use JSON files, XML files, or databases instead. JSON and XML are more powerful and can store more complex information, but they are also harder for humans to read at a glance.

Windows Registry is another system that stores settings, especially for system-level programs and Windows itself. The Registry is more complex than an INI file and requires special tools to edit safely. Many newer Windows programs use the Registry instead of INI files, though INI files are still common in older programs and in portable programs that need to carry their settings with them on a USB drive.

Despite being old, INI files remain popular because they are straightforward, fast, and work the same way on every operating system. A program that needs to run on Windows, Mac, and Linux can use INI files on all three without any changes.

How to safely work with INI files

If you ever need to edit an INI file, the safest approach is to make a backup first. Right-click the INI file, select Copy, and paste it in the same folder with a different name like "filename_backup.ini". Then open the original with Notepad (right-click, select Open With, choose Notepad), make your change, and save it.

Be careful with spacing and punctuation. An INI file is strict about format — if you add an extra space or forget an equals sign, the program might not read it correctly. Change only the value on the right side of the equals sign, not the setting name on the left. If something goes wrong after your edit, you can always delete the broken file and restore from your backup.

Most of the time, you should let the program's settings menu make changes instead of editing the INI file yourself. The menu is designed to prevent mistakes and handles the file format automatically. Only edit directly if you are following specific troubleshooting steps from someone who knows what they are doing.

Frequently Asked Questions

Can I delete an INI file without breaking the program?

Yes. Deleting an INI file resets the program to its default settings, but the program will work fine. It will recreate the INI file the next time it starts. This is actually a useful troubleshooting step when a program is crashing or behaving strangely.

Why does my program lose its settings when I move it to a new computer?

The INI file stays on your old computer — only the program itself transfers. The new computer has no INI file, so the program starts with factory defaults. Some programs have an export or backup feature that lets you copy settings to the new machine.

Is it safe to edit an INI file in Notepad?

It is safe if you are careful. Make a backup copy first, change only the values (not the setting names), and do not add or remove spaces or punctuation. If you make a mistake, delete the file and restore from your backup.

Do Mac computers use INI files?

Mac programs rarely use INI files. They typically use a format called plist instead, which stores settings in a similar way but with different formatting. The concept is the same — a file that holds your preferences.

What is the difference between an INI file and the Windows Registry?

An INI file is a straightforward text document that any program can create and read. The Windows Registry is a system-wide database that Windows itself manages. Registry entries are more powerful but require special tools to edit safely, while INI files can be opened in Notepad.