Code · Made a little simpler

INI Formatter

Format saved INI without reordering keys and sections. Keep full-line comments and continuation text and compare the formatted source before downloading.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Case-sensitive keys, optional global assignments and one value per physical line. Quotes and interpolation stay literal.

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

INI Formatter: how to use it

  1. Open or paste the INI and choose Literal INI or ConfigParser-style raw INI.
  2. Select whether to add a blank line before sections, then choose Format INI.
  3. Check quote contents, values and comments in the result. Copy the formatted INI or download it.

Limits and notes

Accepts UTF-8 files or pasted text up to 250,000 UTF-16 code units. Literal INI allows global keys and compares names by exact spelling. ConfigParser-style raw INI requires sections, compares keys case insensitively and supports indentation continuations. Quotes and interpolation stay literal in both. Retains key and section order, the original = or : separator, existing line endings and a UTF-8 BOM.

How your privacy works →

INI Formatter: common questions

Does formatting add or remove quote characters?

It retains the original quote characters and anything between them. Spacing outside a value is standardized.

Will it turn a colon into an equals sign?

The formatter keeps the source separator and standardizes the adjacent spaces.

How do added section gaps affect CRLF files?

The new gap uses the preceding line’s separator. Open the original file directly for exact BOM and line ending handling.

Guides