INI to PROPERTIES Converter Online — Free & Private

Flat INI only, with no [sections]: convert key=value INI lines to Java .properties. For sectioned INI configs, use INI → TOML or INI → YAML instead.

Loading…
INI → Properties for flat files
Writes a flat INI file as Java .properties lines. A file with [sections] stops with an error that names the section.

Developer notes

The input must be flat INI with key = value lines only. A [section] header turns its keys into a nested object, and the conversion stops with an error. Comments that start with # or ; are skipped, and quotes around a value are removed. Key/value separator sets = or : between each key and its value, to match your Spring or Java toolchain. For files with sections, use INI → TOML or INI → YAML instead.

Conversion options

Key/value separator
The character written between each key and its value, = or :. The default is =.

Use cases

Turn a flat legacy INI file into application.properties. Give a team that works with .properties the settings of a flat INI snippet. Export one file without a build plugin.

About these options

For CSV output, choose the delimiter, how fields are quoted, the line endings and whether to write a header row. Auto uses a comma in English and a semicolon in French, German and Spanish, as Excel expects. For CSV input, the delimiter is detected on the first line (comma, semicolon, tab or pipe). You choose whether that line holds the column names. JSON output can use 2 or 4 spaces or a single line, with an optional recursive key sort. XML output can be pretty-printed with a chosen indent width. YAML output takes an indent width and a quoting mode for strings. XML comments are dropped, because the conversion goes through a JSON tree.

Examples

Flat service keys

Input

app.name = FastMinify app.version = 2.1.0 app.env = production db.host = db.internal db.port = 5432 db.ssl = true feature.checkout-v2.enabled = true feature.dark-mode = false

Output

app.name=FastMinify app.version=2.1.0 app.env=production db.host=db.internal db.port=5432 db.ssl=true feature.checkout-v2.enabled=true feature.dark-mode=false

Colon separator

Input

server.port = 8080 server.ssl = true

Output

server.port:8080 server.ssl:true

Related tools

Does your file have [sections]? Use INI → TOML or INI → YAML. To see the data as JSON first, use INI → JSON.

INI → Properties FAQ

Flat INI only

Why does an INI file with [database] fail?

A .properties file has no sections. The keys under [database] form a nested object, so the conversion stops and names the key. Use INI → TOML or INI → YAML for such files.

Can I use : as the separator?

Yes. Set Key/value separator to : in the options. The default is =.

Can I paste the output of INI → TOML here?

No. TOML with [database] tables is not flat INI.

Is my data sent to a server?

No. The conversion runs in your browser, and FastMinify never receives what you paste.

Convert INI configs to JSON, YAML, Properties (flat INI only) and TOML.