PROPERTIES to TOML Converter Online — Free & Private

Move Java .properties into TOML for Cargo.toml or pyproject.toml. Flat dotted keys stay at the root, and all processing stays in your browser.

Loading…
Properties → TOML with flat quoted keys
Moves Java .properties into TOML. Dotted keys stay flat at the root, written in quotes.

Developer notes

A key such as server.port is written as "server.port" in quotes, a flat key at the TOML root. It does not become a [server] table. Sort TOML keys orders the keys alphabetically. Values stay strings, because a .properties file has no types. Reshape the data first if you need numbers or booleans. For nested TOML tables, restructure the data first, for example in JSON, and convert it with JSON → TOML.

Conversion options

Sort TOML keys
Orders the keys alphabetically, so the output stays stable from one run to the next.

Use cases

Explore a Rust or Python TOML configuration from an old .properties file. Draft a Cargo.toml or a pyproject.toml from a Java export. Preview a conversion before you script it.

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

Keys sorted alphabetically

Input

zebra=z alpha=a mango=m beta=b gamma=g delta=d epsilon=e zeta=z2

Output

alpha = "a" beta = "b" delta = "d" epsilon = "e" gamma = "g" mango = "m" zebra = "z" zeta = "z2"

Spring-style service keys

Input

app.name=FastMinify app.env=production server.port=8080

Output

"app.name" = "FastMinify" "app.env" = "production" "server.port" = "8080"

Related tools

Need YAML instead? Try Properties → YAML. Have a file with sections? Use INI → TOML.

Properties → TOML FAQ

Flat dotted keys

Why are there no nested [server] tables?

The converter keeps Java dotted keys flat at the TOML root, in quotes. This is the same rule as Properties → YAML.

What does Sort TOML keys do?

It orders the keys alphabetically, which keeps diffs stable.

Can lists be converted?

No. .properties values are strings, so arrays are out of scope for this converter.

Is my data sent to a server?

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

Convert Java .properties files to JSON, YAML, INI and TOML.