EZ
EZ2Conv

YAML ↔ Properties Converter

Convert configuration files between YAML and Properties formats in either direction, with automatic format detection for nested structures, arrays, and comment preservation. Adjust indentation, array style, and string quoting, making it a good fit for Spring Boot application settings.

14px
Output will appear here...

Bidirectional Conversion

Automatically detects YAML or Properties format and converts to the other format.

Spring Boot Compatible

Fully compatible with Spring Boot configuration files including nested properties and arrays.

Comment Preservation

Preserves comments and maintains data types during conversion process.

How to Use

  1. Enter YAML or Properties content in the input area
  2. Format is automatically detected and displayed
  3. Configure conversion options (preserve comments, indentation, array format)
  4. Click Convert button to generate the output in the opposite format
  5. Download the converted file or copy the results

💡 Useful Tips

  • Supports bidirectional conversion between YAML and Properties formats
  • Automatically preserves comments and data types during conversion
  • Fully compatible with Spring Boot configuration files
  • Upload files directly or paste content for instant conversion

Working with YAML and Java Properties Configuration

What this converter does

YAML and Java .properties are two ways of writing the same configuration. Properties files store one flat key=value pair per line, using dots to imply hierarchy (server.servlet.context-path=/api). YAML expresses that same hierarchy as real indentation and nesting. This tool reads either format, works out which one you pasted, and rewrites it as the other — expanding dotted keys into a nested tree, or flattening a tree back into dotted paths.

Because the conversion is bidirectional and runs on detected structure rather than a fixed template, you can round-trip a file (YAML → Properties → YAML) and get an equivalent result back.

When to use it

The most common case is a Spring Boot project migrating between application.properties and application.yml. Teams usually start with properties and switch to YAML once the configuration grows deep enough that dotted keys become hard to read. Going the other direction is just as useful when a tool or deployment pipeline expects flat properties.

It is also handy for quickly diffing two configs, converting a snippet from documentation into the format your project actually uses, or normalising indentation and array style before committing.

Example: a server block

The properties lines server.port=8080 and server.servlet.context-path=/api become a nested YAML block where server contains port: 8080 and a servlet key holding context-path: /api. Convert it back and the dotted keys reappear exactly. Numbers like 8080 stay unquoted so they keep their integer type instead of becoming strings.

Format notes and edge cases

Comments can be preserved through the conversion when the option is enabled, which matters for documented config files. Arrays can be emitted as YAML dash lists or as indexed properties (name[0], name[1]). Adjustable indentation and string-quoting (auto, always, never) let you match your team's style guide. Auto type detection keeps booleans, integers, and null values from being wrapped in quotes.

Frequently Asked Questions

Convert unlimited configuration files between YAML and Properties at no cost, with comment preservation, type auto-detection, and adjustable indentation all included. There are no premium tiers, usage caps, or accounts to create.
Yes. Both YAML-to-Properties and Properties-to-YAML conversions run in your browser with JavaScript, so the configuration content you paste, including keys, secrets, and connection settings, is never sent to a server. It all stays on your device.
No account or login is required. Paste your YAML or Properties content, and the format is detected and converted automatically. There is no email step, sign-in, or registration needed.
Yes, this converter is fully compatible with Spring Boot configuration files. It properly handles nested properties, arrays, and complex structures commonly used in Spring Boot applications.
Yes, you can enable the 'Preserve Comments' option to maintain comments during conversion. The tool also supports auto-detection of data types and configurable indentation for YAML output.