TOML to PROPERTIES Converter Online — Free & Private

Generate Java .properties from flat TOML key-value tables. Nested TOML tables raise an error instead of being flattened.

Loading…
TOML → Properties for flat key and value tables
Writes flat TOML as Java .properties lines. Nested tables and arrays stop the conversion with an error that names the key.

Developer notes

The TOML root must be a flat table of strings, numbers and booleans. A table such as [database] with sub-keys stops the conversion with an error, so nothing is flattened for you. Key/value separator sets = or : to match your Spring or Java toolchain. For nested configuration, use TOML → INI or TOML → YAML instead.

Conversion options

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

Use cases

Write application.properties from a flat Cargo or pyproject snippet. Give a team that still uses .properties the values you keep in TOML. 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

name = "FastMinify" version = "2.1.0" env = "production" dbHost = "db.internal" dbPort = 5432 dbSsl = true featureCheckout = true featureDarkMode = false

Output

name=FastMinify version=2.1.0 env=production dbHost=db.internal dbPort=5432 dbSsl=true featureCheckout=true featureDarkMode=false

Colon separator

Input

port = 8080 ssl = true

Output

port:8080 ssl:true

Related tools

Is your TOML nested? Try TOML → INI or TOML → YAML. To go the other way, use Properties → TOML.

TOML → Properties FAQ

Flat input only

Why do nested TOML tables fail?

A .properties file is flat. A table such as [database] cannot be written without flattening it, so the conversion stops with an error.

Can I use : as the separator?

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

Are lists supported?

No. TOML arrays and other non-scalar values are rejected for this target.

Is my data sent to a server?

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

Convert TOML to JSON, YAML, XML, CSV, Properties and INI.