file in abyss
Back to formats

Data

INI INI Configuration

INI Configuration is a data format commonly identified by .ini, .conf, .cfg. Use the listed signatures, MIME types, and structure notes to validate files beyond the extension.

Extensions .ini, .conf, .cfg
MIME text/plain

Magic numbers

Analyze your file
offset 0 INI Configuration leading signature
5B 73 61 6D 70 6C 65 5D
[sample]

Structure

  1. Sections
  2. Key-value pairs
  3. Comments

Caveats

  • Do not trust the extension alone. Check the MIME type, the first bytes such as 5B 73 61 6D 70 6C 65 5D, and format-specific structure when possible.
  • Container formats and damaged files can share the same opening bytes, so deeper validation may be required for production upload, preview, or conversion flows.

Detection example

SIGNATURE = bytes.fromhex("5b73616d706c655d")
OFFSET = 0

def is_ini(path: str) -> bool:
    with open(path, "rb") as f:
        f.seek(OFFSET)
        head = f.read(len(SIGNATURE))
    return head == SIGNATURE

Practical usage

Use cases

INI Configuration is used for data exchange, imports, exports, parser testing, and validation workflows. Encoding, delimiters, versions, and container structure often change implementation behavior.

Common detection mistakes

  • The .ini / .conf / .cfg extension alone does not prove the file contents. Upload and conversion flows should combine extension, MIME type, leading bytes, and format-specific structure checks.
  • INI Configuration can start with signatures such as 5B 73 61 6D 70 6C 65 5D, but related containers and damaged files may require additional validation.

Security notes

Untrusted input is not safe just because the format was detected. Account for parser exceptions, large files, unexpected encodings, and external references.

Using samples

11 samples help test leading-byte detection, parser errors, upload limits, and download behavior.

Sample files

11 / 11 files
Sample Traits Size Source / license / SHA-256
Data

Blue Sky INI

Blue Sky INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

01-blue-sky.ini
Type Sample
Small file
159 B
SHA-256 5390986ec25e1dcc50005c53502b63a293c5b4bee6481ccda0aec4b9b27aa38f
Download
Data

Flower Garden INI

Flower Garden INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

02-flower-garden.ini
Type Sample
Small file
256 B
SHA-256 0d455776327b7f8c380abc20446c6aeb3174645ea4e0e9f1057ca7eb452f9c46
Download
Data

Navy Blue Sky INI

Navy Blue Sky INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

03-navy-blue-sky.ini
Type Sample
Small file
297 B
SHA-256 753d1c06b41a2fc055122dd24d90a571b3ce03f54cb4370ff1fa9454e51d6492
Download
Data

Nature of the Sky INI

Nature of the Sky INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

04-nature-sky.ini
Type Sample
Small file
354 B
SHA-256 adcd4cc0325b644736310105256c77af44db4919fa9cea2c31e758c2620df943
Download
Data

Sky Landscape INI

Sky Landscape INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

05-sky-landscape.ini
Type Sample
Small file
458 B
SHA-256 293916ec89df7044fc3316b739c64399c67118841b93531ce884335b009b8448
Download
Data

Starry Sky INI

Starry Sky INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

06-starry-sky.ini
Type Sample
Small file
400 B
SHA-256 ed8cf89e846fbbc88bc02f3b5097547826718feda363fffcd672f40f1f479f01
Download
Data

Blue Night Sky INI

Blue Night Sky INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

07-blue-night-sky.ini
Type Sample
Small file
504 B
SHA-256 8fca89858072b208f983603607f87302eadb5a167c115f78de17609bd3cb7f23
Download
Data

Hibiscus Flower INI

Hibiscus Flower INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

08-hibiscus-flower.ini
Type Sample
Small file
679 B
SHA-256 e5b555c7d83a19837d888e086c27e8acbffc7fbde1a3f5faabf8ac9e68749b1f
Download
Data

Arctic Sky INI

Arctic Sky INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

09-arctic-sky.ini
Type Sample
Small file
612 B
SHA-256 4351d21df768292f6dc8f010686d84120bfe015a7f9c436f7b14bb82e5f634c2
Download
Data

Sunset Rays INI

Sunset Rays INI is a INI Configuration sample based on Wikimedia Commons. It can be used to test downloads, parsers, previews, and file type detection.

10-sunset-rays.ini
Type Sample
Small file
680 B
SHA-256 36685bc27e8418c2dffe2e6ea5a9ece1c21efeb009ced7c28dbed22dd4bd590d
Download
Data

NASA Blue Marble INI

NASA Blue Marble INI is a INI Configuration sample based on NASA Image and Video Library. It can be used to test downloads, parsers, previews, and file type detection.

nasa-blue-marble-2012-east.ini
Type Sample
1.2 KB
SHA-256 74de688d81b9ef2c50a3659225d5b16cdc1bdd0a954b5181a7e119bf9b58b957
Download

Frequently asked questions

What is the magic number (file signature) of INI Configuration?

INI Configuration files begin with the byte signature 5B 73 61 6D 70 6C 65 5D ("[sample]"). Detect the format by reading these leading bytes rather than trusting the file extension alone.

What is the MIME type of INI Configuration?

The MIME type for INI Configuration is text/plain.

What file extension does INI Configuration use?

INI Configuration files use the .ini, .conf, .cfg extension. The extension is a convention only and does not guarantee the file contents, so combine it with signature and structure checks.

Related formats