INI File Viewer
Open and view INI configuration files online with sections, keys, values, and formatted configuration data directly in your browser.
Updated
What is the INI File Viewer?
Open and View INI Files Online
An INI file is a plain-text configuration file made of [sections] and key = value pairs. Windows, games, desktop apps, PHP, Python tools, and many servers still use them. If you have ever wondered how to open an .ini file, this tool shows it as a clean, readable structure instead of a wall of text.
Paste your INI text or drop a file, and the INI File Viewer parses it instantly in your browser. Nothing is uploaded, so your configuration never leaves your device.
Looking for a sample INI file download? Choose Load sample to preview an example, then select Download INI to save it as a file you can edit.
What you can do
- Browse sections and keys in collapsible cards with line numbers, comments, and detected value types (string, number, boolean, URL, path, empty).
- Search across section names, keys, and values with live highlighting.
- Spot problems fast with an Issues tab that flags duplicate keys, duplicate sections, malformed headers, missing delimiters, and unclosed quotes.
- Mask secrets such as passwords, tokens, and API keys while you review a file.
- Convert INI to JSON, YAML, TOML, or .env, or export a tidy, sorted, aligned INI.
- Handle real-world files including UTF-16 Windows files, comments with
;or#, quoted values, and values that span several lines.
Who it is for
Developers, system administrators, QA engineers, gamers editing config files, and anyone who needs to inspect a .ini, .cfg, or .conf file without installing an editor.
How it works
The viewer reads your text, splits it into lines, and builds a structured model of sections, keys, values, and comments. Everything runs locally in your browser.
Step by step
- Add your INI content. Paste text into the editor, drop a file onto the upload area, or press Load sample. Files up to 5 MB are supported.
- Review the parsing options. Choose whether keys and values are separated by
=,:, or either. Turn inline comments, quote handling, line continuations, and case sensitivity on or off to match how your application reads the file. - Explore the result. Use the Sections view for collapsible cards or the Table view for a flat, sortable list. Search by section, key, or value, and expand or collapse all sections at once.
- Check the Issues tab. Every warning and error includes a line number, and affected lines are flagged in the editor.
- Download, convert, or clean up. Use Download INI to save the current editor text as an INI file. Open Convert to export JSON, YAML, TOML,
.env, or a cleaned INI, then copy or download the result.
What the parser understands
| Feature | Behavior |
|---|---|
| Sections | [name] headers, including dotted names like [database.primary] |
| Global keys | Keys before the first section are kept in a global scope |
| Comments | Lines starting with ; or #, plus optional inline comments after a value |
| Quoted values | Double quotes decode escapes such as \n and \", and single quotes stay literal |
| Value types | Booleans (true, yes, on), numbers, URLs, file paths, and empty values |
| Duplicates | Repeated keys and sections are flagged, then handled by your chosen rule on export |
| Sensitive keys | Names containing password, secret, token, or API key are masked in the viewer |
Conversion options
- JSON, YAML, TOML: detect booleans and numbers, nest dotted section names, and choose whether repeated keys keep the first value, the last value, or become a list.
- .env: variables are named
SECTION_KEYin upper case. - Clean INI: sort sections and keys, align delimiters, keep or drop comments, and merge duplicates.
Exports always contain the real values, even if you masked them in the viewer.
Examples
View a simple app configuration
Paste a small INI file to see its sections, keys, values, and detected value types in a structured view.
[server]
host = 0.0.0.0
port = 8080
debug = false
[database]
driver = postgres
pool_size = 202 sections, 5 keys. server: host = 0.0.0.0 (string), port = 8080 (number), debug = false (boolean). database: driver = postgres (string), pool_size = 20 (number).Convert INI to JSON
Switch to the Convert view and pick JSON to turn sections into objects and detect booleans and numbers.
[general]
name = My App
version = 2.4.1
beta = on
max_users = 250{
"general": {
"name": "My App",
"version": "2.4.1",
"beta": true,
"max_users": 250
}
}Find duplicate keys and bad lines
Open the Issues tab to spot repeated keys, duplicate sections, and malformed section headers with line numbers.
[server]
port = 8080
port = 9090
[cache
ttl = 60Warning on line 3: Duplicate key "port" in [server] (first on line 2). Error on line 4: Section header is missing its closing "]".Hide passwords while sharing your screen
Values for keys like password, secret, and token are masked by default so you can review a config safely.
[database]
user = app_user
password = hunter2
api_token = abc123user = app_user is shown. password and api_token are displayed as masked values until you turn masking off.Clean up a messy INI file
Use the Clean INI output to sort sections and keys, align delimiters, and merge duplicate sections.
[b]
zeta=1
alpha=2
[a]
name=x[a]
name = x
[b]
alpha = 2
zeta = 1Frequently asked questions
How do I open an .ini file?
How do I open an .ini file?
An INI file is plain text, so any text editor such as Notepad, VS Code, or TextEdit can open it. To see it as organized sections and keys, paste the text or drop the file into this INI File Viewer and it will parse and display it instantly.
What is an INI file?
What is an INI file?
An INI file is a simple configuration file that stores settings as key = value pairs grouped under [section] headers. Comments usually start with ; or #. Many Windows programs, games, and developer tools use this format.
Can I edit an INI file with this tool?
Can I edit an INI file with this tool?
You can type or change the text directly in the editor and the viewer updates live. Use Download INI to save the current text, or export a cleaned version with sorted sections, aligned delimiters, and merged duplicates.
Is my INI file uploaded anywhere?
Is my INI file uploaded anywhere?
No. Parsing, searching, and conversion all happen in your browser. Your file is never sent to a server, which makes it safe to inspect configuration files that contain internal hostnames or credentials.
Why are some values hidden behind dots?
Why are some values hidden behind dots?
Values for keys that look like passwords, secrets, tokens, or API keys are masked by default so you can review or share your screen safely. Turn off the masking switch to reveal them. Exports always contain the real values.
Can I convert an INI file to JSON, YAML, or TOML?
Can I convert an INI file to JSON, YAML, or TOML?
Yes. Open the Convert view and choose JSON, YAML, TOML, or .env. Sections become objects or tables, and you can choose to detect booleans and numbers, nest dotted section names, and decide how repeated keys are handled.
What do the warnings in the Issues tab mean?
What do the warnings in the Issues tab mean?
The viewer flags things that many applications handle differently. These include duplicate keys, duplicate sections, lines with no delimiter, section headers missing a closing bracket, and quotes that never close. Each issue lists its line number so you can fix it quickly.
What happens to duplicate keys and sections?
What happens to duplicate keys and sections?
Both are marked in the viewer. When you convert, you choose whether to keep the first value, the last value, or collect all values into a list. In Clean INI you can merge duplicate sections and keep only the last value of each repeated key.
How are comments handled?
How are comments handled?
Lines beginning with ; or # are treated as comments and shown above the key or section they precede. Inline comments after a value, such as timeout = 30 ; seconds, are supported when the inline comments option is on. A value like #ffffff is kept as a value, not a comment.
What are global keys?
What are global keys?
Global keys are settings that appear before the first [section] header. The viewer groups them under a global scope so nothing is lost. Some applications ignore them, so the Issues tab notes when they exist.
Which file types and encodings are supported?
Which file types and encodings are supported?
You can load .ini, .cfg, .conf, .config, .properties, .txt, .reg, and .desktop files, or paste any similar text. UTF-8 and UTF-16 files with a byte-order mark are decoded correctly, which covers most Windows configuration files. Files up to 5 MB are supported.
Are INI keys case-sensitive?
Are INI keys case-sensitive?
It depends on the application that reads the file. Windows APIs treat keys and sections as case-insensitive, while many other parsers do not. The viewer lets you choose, and this setting affects how duplicates are detected.
Why does my file show no sections or an error?
Why does my file show no sections or an error?
The tool needs at least one section or key. Empty input, binary files, and text containing only comments are rejected. A non-empty line without = or : is kept as a key with no value and shown with a warning. Check that your file uses the delimiter your application expects, and choose the matching delimiter option when parsing.
Related tools
More utilities you might find handy.
.env File Generator
Generate .env files from key-value pairs with configurable quoting; verify the output with the parser used by your application.
.htaccess Redirect Builder
Generate Apache .htaccess rules for common redirects, HTTPS enforcement, and canonical URL routing; review and test before deployment.
ASCII Converter – Text to ASCII, Hex, Binary & Back
Convert text to ASCII codes and decode back in decimal, hex, binary, or octal — live, private, and 100% browser-based.