YAML to PROPERTIES Converter Online — Free & Private

Turn flat YAML key-value maps into Java .properties lines. Nested YAML blocks are rejected with a clear error.

Loading…
YAML → Properties for flat maps
Writes flat YAML as Java .properties lines. Nested blocks stop the conversion with an error instead of being flattened.

Developer notes

The YAML must parse to a flat mapping of strings, numbers and booleans, the same rule as JSON → Properties. A nested mapping, such as an app block with a name below it, stops the conversion with an error. Key/value separator sets = or : to match your Spring or Java toolchain. The reverse path, Properties → YAML, keeps dotted keys flat, so the two formats are not symmetric.

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 Helm-style YAML snippet. Give a team that still uses .properties the values you author in YAML. 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

Spring profile keys

Input

server.port: 8080 server.ssl: true spring.profiles.active: prod

Output

server.port=8080 server.ssl=true spring.profiles.active=prod

Related tools

Need JSON first? Try YAML → JSON, then JSON → Properties. To migrate from .properties, use Properties → YAML.

YAML → Properties FAQ

Flat input only

Why does nested YAML fail?

A .properties file is a flat list of keys and values. Nested YAML cannot be written without flattening it, so the conversion stops instead of dropping structure.

Can I use : as the separator?

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

Are lists supported?

No. YAML sequences 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 YAML to JSON, XML, CSV, TOML, TSV, Properties and INI, in your browser.