[{"data":1,"prerenderedAt":161},["ShallowReactive",2],{"extension:v3:en:ini":3},{"resolvedFromAlias":4,"canonicalExt":5,"ext":5,"name":6,"category":7,"categoryName":8,"updatedAt":9,"popularity":10,"summary":11,"howToOs":12,"quickAnswer":18,"answerIntro":19,"whatIs":20,"description":21,"furtherReading":22,"openInstructions":41,"commonIssues":55,"securityNotes":80,"faq":84,"aliases":97,"mimeTypes":98,"relatedExtensions":100,"breadcrumbs":118,"categoryAnchor":128,"categoryFuturePath":129,"metaDescription":130,"availableHowToOs":131,"openOnDeviceLinks":132,"cannotOpenReasons":148,"cannotOpenFixes":149,"convertOptions":150,"securityAffiliateMessaging":151,"securityAffiliates":152},false,"ini","INI configuration file","config","Configuration","2026-06-12T08:05:28.448Z",85,"An INI file is a plain-text configuration file format commonly used to store settings as sections and key/value pairs. You can open it in any text editor, and many apps (especially on Windows) read it as an initialization/config file.",[13,14,15,16,17],"windows","mac","linux","ios","android","To open .INI files on Windows, right-click the .ini file and choose Open with → Notepad (or another plain-text editor).","To open a .ini file, use a plain-text editor (for example Notepad on Windows, or a text editor on macOS/Linux). If you need to interpret or edit settings safely, treat it as text and follow the section/key structure used by the app that created it.","INI is a simple text-based configuration format typically organized into named sections in square brackets (for example, [Section]) containing key=value entries. It is widely associated with Windows “initialization files”, and is also commonly parsed as “INI-style” configuration by libraries such as Python’s configparser. The exact keys and meanings are defined by the application using the file, not by the INI format itself.","INI files are commonly used to store application settings in a human-readable way. A typical file contains sections (like [General]) and settings expressed as key/value pairs; many tools and scripts can read and write them because they are simple plain text.\n\nOn Windows, INI files are historically tied to “initialization files” and are directly supported by Windows API functions that read values from them (for example, GetPrivateProfileString). In modern software, they are still frequently used for lightweight configuration where a full database or more complex structured format is unnecessary.\n\nOutside of Windows, INI-style configuration is still common, especially for cross-platform applications and developer tooling. Python’s configparser documentation describes an INI-like syntax (sections and name/value pairs) and is widely used in scripts and applications that prefer readable configuration files.",[23,26,29,32,35,38],{"title":24,"url":25},"INI file (Wikipedia)","https://en.wikipedia.org/wiki/INI_file",{"title":27,"url":28},"GetPrivateProfileString function (Microsoft Learn)","https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-getprivateprofilestring",{"title":30,"url":31},"configparser — Configuration file parser (Python 3.9 docs)","https://docs.python.org/3.9/library/configparser.html",{"title":33,"url":34},"IANA media types registry (W3C mirror)","https://www.w3.org/ns/iana/media-types/",{"title":36,"url":37},"Common MIME types (MDN)","https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types",{"title":39,"url":40},"Shared MIME-info Database specification (freedesktop.org)","https://apol.pages.freedesktop.org/xdg-specs/shared-mime-info-spec/shared-mime-info-spec-latest.html",{"windows":42,"macos":45,"linux":48,"ios":51,"android":53},[43,44],"Right-click the .ini file and choose Open with → Notepad (or another plain-text editor).","If you need to change settings, edit only the values you understand and keep the same section and key=value structure, then save.",[46,47],"Open the .ini file with a plain-text editor (for example, a code editor or a basic text editor configured for plain text).","Edit carefully without changing the overall structure (sections in [brackets] and key=value lines), then save.",[49,50],"Open the .ini file with a plain-text editor (for example, a GUI text editor or a terminal editor).","Preserve the INI structure (sections and key=value pairs) and save the file as plain text.",[52],"Open the .ini file in a text-editing app that supports plain text; if the app that uses the file is on a desktop, transfer the file and edit it there to avoid formatting changes.",[54],"Open the .ini file in a plain-text editor app; if the file controls a desktop application, edit it on the desktop to reduce the risk of changing line endings or encoding unexpectedly.",[56,62,68,74],{"title":57,"description":58,"steps":59},"Double-clicking opens the wrong program (or nothing happens)",".ini files are plain text and may be associated with an unexpected app on your system, or the system may not have a preferred association for them.",[60,61],"Use “Open with” and choose a plain-text editor (Notepad on Windows or another text editor).","If you want, set the text editor as the default app for .ini files so future opens go to the editor.",{"title":63,"description":64,"steps":65},"Settings changes do not take effect","Many applications read the INI file only at startup, or they may use a different configuration location than the file you edited.",[66,67],"Close and restart the application after saving changes.","Confirm you edited the correct INI file used by the application (some apps keep multiple copies or use per-user vs per-system locations).",{"title":69,"description":70,"steps":71},"The app reports an INI parse error or ignores parts of the file","INI parsers typically expect sections like [name] and key=value pairs; missing brackets, duplicated keys, or unexpected characters can cause a parser to ignore settings or fail.",[72,73],"Check that section headers are in square brackets (for example, [General]) and settings use key=value on one line.","Undo recent edits and re-apply changes gradually to find the problematic line; keep a backup copy of the original file.",{"title":75,"description":76,"steps":77},"Non-ASCII characters display incorrectly","INI files are plain text, but the encoding used can vary by application; some programs expect a specific encoding and may misread characters if it differs.",[78,79],"Re-save the file as plain text with the encoding expected by the application (if documented by that app).","Avoid introducing special characters unless you know the target software supports them.",[81,82,83],"INI files are plain text, but they can change application behavior (for example, paths, plug-in settings, or feature flags). Only use INI files from sources you trust and review changes before applying them.","Be cautious when editing system- or application-managed INI files: incorrect values can break app startup, alter network endpoints, or weaken security-related settings chosen by the application.","If an INI file is used by scripts or tooling that automatically expands variables or file paths, a malicious configuration could redirect outputs, logs, or resource loading to unexpected locations.",[85,88,91,94],{"question":86,"answer":87},"Is an .ini file just a text file?","Yes—INI files are plain text. They typically use section headers in square brackets and key=value pairs, but the specific keys are defined by the application that uses the file.",{"question":89,"answer":90},"What does an INI file look like?","Commonly it contains sections like [SectionName] followed by lines such as key=value. Many tools (including Python’s configparser) treat this as the standard INI-style layout.",{"question":92,"answer":93},"Why are INI files associated with Windows?","Windows historically used “initialization files” and provides API functions for reading values from them (for example, GetPrivateProfileString), which is why .ini is strongly associated with Windows configuration.",{"question":95,"answer":96},"Is there an official MIME type for .ini files?","A dedicated IANA-registered MIME type for “INI files” is not established in the provided sources. In practice, INI files are usually treated as plain text (often served as text/plain when no specific type is registered).",[],[99],"text/plain",[101,106,112],{"ext":102,"name":103,"category":7,"categoryName":8,"popularity":10,"summary":104,"howToOs":105},"env","Dotenv environment variables file",".env is a plain-text configuration file commonly used to store environment variables as key=value pairs for local development and deployment tools.",[13,14,15,16,17],{"ext":107,"name":108,"category":7,"categoryName":8,"popularity":109,"summary":110,"howToOs":111},"toml","TOML configuration file",75,"A .toml file is a human-readable configuration file written in TOML (Tom's Obvious, Minimal Language). It’s commonly used by developer tools (for example, Rust’s Cargo.toml and Python’s pyproject.toml) and can be opened with any text editor.",[13,14,15,16,17],{"ext":113,"name":114,"category":7,"categoryName":8,"popularity":115,"summary":116,"howToOs":117},"dtd","XML document type definition (.DTD)",15,".dtd files are Document Type Definition files used with XML (and related SGML-family) documents to define the allowed structure, elements, and entities. You typically open them in a text editor or an XML-aware editor/IDE.",[13,14,15,16,17],[119,122,125],{"label":120,"to":121},"Home","/",{"label":123,"to":124},"File Extension Index","/file-extension",{"label":126,"to":127},".INI","/file-extension/ini","category-config","/category/config","Learn what .INI files are, how to open them on every platform, common fixes, and security best practices.",[13,14,15,16,17],[133,136,139,142,145],{"os":13,"label":134,"to":135},"Open .INI on Windows","/how-to/open-ini-on-windows",{"os":14,"label":137,"to":138},"Open .INI on Mac","/how-to/open-ini-on-mac",{"os":15,"label":140,"to":141},"Open .INI on Linux","/how-to/open-ini-on-linux",{"os":16,"label":143,"to":144},"Open .INI on iOS","/how-to/open-ini-on-ios",{"os":17,"label":146,"to":147},"Open .INI on Android","/how-to/open-ini-on-android",[57,63,69,75],[60,61],[],"untrusted_source",[153,157],{"name":154,"description":155,"affiliateUrl":156},"Avast","Avast offers free and premium antivirus software that protects against viruses, malware, ransomware, and phishing. Scan files before opening them to ensure safety.","https://www.avast.com/lp-aff-consumer-store?expid=inf601",{"name":158,"description":159,"affiliateUrl":160},"Norton","Norton 360 delivers comprehensive antivirus protection, VPN, and identity theft monitoring. Scan files for threats before opening to keep your device secure.","http://buy.norton.com/aff_home?utm_campaign=en-ww_nor_n36_aff_nas_nau_nah_cj_nad_low:_sec_nat_mktc_norton_360",1781269501130]