Free INI sample, test and dummy files
Simple key = value settings grouped into sections. Old, informal and still everywhere. Download valid INI test files in 19 exact sizes, from 1 KB to 100 MB, each with a checksum. Or create one of any size up to 1 GB.
- Extension
- .ini
- MIME type
- text/plain
- Kind
- Text
- Category
- Configuration
Create a INI file of any size
Choose any size from 120 bytes to 1 GB. The file is made in your browser, so nothing is downloaded from our server. Smaller files usually finish quickly; generation time depends on your device and format. Larger ones are streamed straight into your downloads list in browsers that support it (current Chrome, Edge and Firefox on computers and Android); elsewhere, such as Safari and every browser on iPhone and iPad, the largest size is lower and is shown below.
INI files by size
Every file below is a valid INI configuration file file of exactly the stated size. Open a file's page for its checksum and contents, and to preview it in your browser before downloading.
| File | Size | Contents | Download |
|---|---|---|---|
| 1 KB INI samplesample-ini-1kb.ini | 1 KB1,024 bytes | Sections: 8 | Download INI |
| 5 KB INI samplesample-ini-5kb.ini | 5 KB5,120 bytes | Sections: 44 | Download INI |
| 10 KB INI samplesample-ini-10kb.ini | 10 KB10,240 bytes | Sections: 89 | Download INI |
| 25 KB INI samplesample-ini-25kb.ini | 25 KB25,600 bytes | Sections: 223 | Download INI |
| 50 KB INI samplesample-ini-50kb.ini | 50 KB51,200 bytes | Sections: 445 | Download INI |
| 100 KB INI samplesample-ini-100kb.ini | 100 KB102,400 bytes | Sections: 888 | Download INI |
| 200 KB INI samplesample-ini-200kb.ini | 200 KB204,800 bytes | Sections: 1,762 | Download INI |
| 500 KB INI samplesample-ini-500kb.ini | 500 KB512,000 bytes | Sections: 4,380 | Download INI |
| 1 MB INI samplesample-ini-1mb.ini | 1 MB1,048,576 bytes | Sections: 8,952 | Download INI |
| 2 MB INI samplesample-ini-2mb.ini | 2 MB2,097,152 bytes | Sections: 17,758 | Download INI |
| 3 MB INI samplesample-ini-3mb.ini | 3 MB3,145,728 bytes | Sections: 26,548 | Download INI |
| 5 MB INI samplesample-ini-5mb.ini | 5 MB5,242,880 bytes | Sections: 44,118 | Download INI |
| 10 MB INI samplesample-ini-10mb.ini | 10 MB10,485,760 bytes | Sections: 88,052 | Download INI |
| 15 MB INI samplesample-ini-15mb.ini | 15 MB15,728,640 bytes | Sections: 131,463 | Download INI |
| 20 MB INI samplesample-ini-20mb.ini | 20 MB20,971,520 bytes | Sections: 174,670 | Download INI |
| 25 MB INI samplesample-ini-25mb.ini | 25 MB26,214,400 bytes | Sections: 217,891 | Download INI |
| 30 MB INI samplesample-ini-30mb.ini | 30 MB31,457,280 bytes | Sections: 261,097 | Download INI |
| 50 MB INI samplesample-ini-50mb.ini | 50 MB52,428,800 bytes | Sections: 433,958 | Download INI |
| 100 MB INI samplesample-ini-100mb.ini | 100 MB104,857,600 bytes | Sections: 866,091 | Download INI |
What is an INI file?
An INI file holds settings as key and value pairs, grouped under section names in square brackets. It originated in early versions of Windows and survives in php.ini, .gitconfig, systemd units and desktop entries.
There is no formal specification. Implementations disagree on comment characters, quoting, duplicate keys and whether values have types.
How to recognise an INI file
INI files have no file signature, the magic bytes that most binary formats begin with.
No signature bytes. INI files are identified by parsing their content.
| Extension | .ini |
|---|---|
| MIME type | text/plain |
| Specification | None; behaviour is defined by each parser |
| Comments | ; or # |
| Types | Everything is a string |
| Nesting | One level of sections |
What to test for
These are the behaviours that most often go wrong when software handles INI files.
- Because nothing is standardised, test with the exact parser you ship; a file that one library accepts another may reject.
Strengths of INI
- About as simple as a configuration format can be.
- Readable and editable by anyone with a text editor.
Limitations of INI
- No standard, so parsers disagree on comments, quoting and duplicates.
- No nesting, lists or data types.
Typical uses of INI test files
- Testing configuration readers
- Checking migration to YAML or TOML
- Testing settings import in desktop software
Software that opens INI
- PHP, Git, MySQL and systemd
- configparser (Python), ini (Node.js)
- Windows applications
Related
INI sample files: questions
- Which comment style do the samples use?
- Semicolons, which the widest range of parsers accept.
- What is the MIME type of an INI file?
- The MIME type is text/plain. The file extension is .ini.
- Is a sample INI file the same as a dummy or example INI file?
- Yes. Sample, test, dummy and example INI files are different names for the same thing: an INI file with known contents that stands in for a real one. Any file on this page will do wherever a tutorial or a test plan asks for a dummy INI file.