Home › Developer Tools › Properties to YAML Converter

Properties to YAML Converter

Paste a Java .properties file such as Spring Boot's application.properties and get a clean nested application.yml, or switch direction to flatten YAML into key=value properties. Escapes, \uXXXX characters, line continuations, list indexes and #--- profile documents are all handled.

Last updated:

Runs entirely in your browser; your configuration is never uploaded. Spring Boot #--- separators become YAML --- documents and back. Tip: Ctrl + Enter converts.

Advertisement
Advertisement

How to use the Properties to YAML Converter

  1. Choose the direction: Properties → YAML or YAML → Properties.
  2. Paste your file, drop it on the input or press Open. A Spring Boot sample is loaded to start.
  3. Adjust the output: YAML indent and quoting, or separator and ASCII escaping for properties.
  4. Check the result; conflicts and duplicates are listed under the editors and syntax errors show the exact line.
  5. Copy or download application.yml or application.properties, or press Swap direction to convert back.

Example: application.properties and application.yml

application.propertiesapplication.yml
server.port=8080
spring.datasource.url=jdbc:h2:mem:db
spring.datasource.username=sa
app.origins[0]=https://a.com
app.origins[1]=https://b.com
#---
spring.config.activate.on-profile=prod
server.port=443
server:
  port: 8080
spring:
  datasource:
    url: jdbc:h2:mem:db
    username: sa
app:
  origins:
  - https://a.com
  - https://b.com
---
spring:
  config:
    activate:
      on-profile: prod
server:
  port: 443

Properties escape sequences

In the fileMeans
\t \n \r \fTab, line feed, carriage return, form feed
\u00e9The Unicode character é
\= \: \ (in a key)A literal =, : or space that does not end the key
\\A single backslash
\ at the end of a lineThe value continues on the next line (leading spaces there are ignored)

Why Spring Boot teams move to YAML

  • Less repetition: shared prefixes like spring.datasource are written once.
  • Real lists: - item lines instead of numbered [0], [1] keys.
  • Profiles in one file: --- separates documents, each activated with spring.config.activate.on-profile.
  • Watch out: @PropertySource cannot load YAML files, so keep a .properties file for those classes.

Validate the result with the YAML Validator, or convert environment files with ENV to JSON.

Frequently asked questions

How are dotted keys converted to YAML?

Each dot in a key starts a deeper level, so spring.datasource.url=… and spring.datasource.username=… become a spring map containing a datasource map with url and username. Keys that share a prefix are merged, which is exactly how Spring Boot reads application.yml.

How do I write lists in properties?

Use indexes in square brackets: app.origins[0]=a and app.origins[1]=b become a YAML list with two items, and app.servers[0].name=alpha creates a list of objects. Missing indexes are filled with null and reported.

Which properties syntax is supported?

Everything java.util.Properties accepts: key=value, key: value or key value separators, # and ! comment lines, backslash at the end of a line to continue, escaped separators in keys like my\ key, and escapes \t, \n, \r, \f and \uXXXX. Duplicate keys use the last value, like Java.

What happens when a key is both a value and a parent?

YAML cannot give one key both a value and children. If a.b=1 appears after a=x, the second key is written as a quoted "a.b" key next to a, which Spring Boot still binds to a.b. If the parent value comes after its children it is skipped and reported.

How does YAML → properties work?

The YAML is parsed (anchors and merge keys included), then every leaf value is written as a full dotted key. Lists become [0], [1] indexes, null becomes an empty value and multiple --- documents are separated with Spring Boot's #--- marker. Values are copied exactly as written, so 1.0 stays 1.0.

Do I need to escape non-ASCII characters?

Since Java 9, .properties resource bundles are read as UTF-8 and Spring Boot reads application.properties as UTF-8, so é or ☀ can be written directly. Tick Escape non-ASCII as \uXXXX for older tools that expect ISO-8859-1.

Is my configuration uploaded?

No. Both conversions run in JavaScript in this page, so passwords and connection strings never leave your device.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

YAML Validator & FormatterValidate, format and minify YAML, and convert YAML to JSON or back.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.ENV to JSON ConverterConvert .env files to JSON or YAML and JSON back to .env, with quotes and multiline values.INI to JSON ConverterConvert INI and CFG files to JSON and JSON back to INI, with sections, arrays and types.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.CSV to JSONConvert CSV data to JSON with live preview.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.XML to JSONConvert XML to JSON with validation.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.JSON ViewerExplore JSON as a collapsible tree, search keys and values and copy any node's path.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.Chmod CalculatorConvert Linux file permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) notation.JSON to TypeScriptGenerate TypeScript interfaces or types from JSON, with nested types and optional fields.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Binary to DecimalConvert binary to decimal instantly with steps and signed mode.Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.XML to CSV ConverterConvert XML to CSV: detects repeating records, flattens nested data, pick your columns.CSV to XML ConverterConvert CSV to well-formed XML with custom root and row names, escaping and pretty print.TOML to JSON ConverterConvert TOML to JSON and JSON to TOML with a full v1.0 parser and clear error lines.JSON to Go StructTurn JSON into Go structs with inferred types, nested structs and json tags.Excel to VCF ConverterTurn an Excel contact list into a vCard .vcf file for iPhone, Android, Google or Outlook.File to C ArrayConvert any file into a C or C++ byte array header, like xxd -i, with const and PROGMEM options.Image to C ArrayConvert images to monochrome, RGB565 or RGB888 C arrays for OLED, LCD and TFT displays.JSON Merge ToolDeep-merge two or more JSON objects with array concat, replace or union and a conflict rule.JSONL to CSV ConverterConvert JSON Lines / NDJSON to CSV with flattened columns; streams large files locally.PHP Unserialize OnlineDecode PHP serialize() strings to JSON, a tree or print_r, and serialize JSON back to PHP.SQL Dialect ConverterTranslate SQL between MySQL, PostgreSQL, SQLite, SQL Server, Oracle, BigQuery and more.TSV to JSON ConverterTurn tab-separated data pasted from Excel or Sheets into a JSON array or keyed object.XLS to XLSX ConverterConvert old Excel 97-2003 .xls workbooks to modern .xlsx files in your browser, several at once.XML to Excel ConverterTurn repeating XML elements into an .xlsx spreadsheet with attributes and nested data as columns.XSD to XML Sample GeneratorGenerate a sample XML document from an XSD schema, with types, attributes and namespaces.YAML to CSV ConverterTurn a YAML list of objects into CSV with dot-notation columns, custom column order and download.DOCX to Markdown ConverterConvert Word .docx to clean Markdown with headings, lists, tables, links and images in a ZIP.ES6 to ES5 ConverterTranspile modern JavaScript (ES2015+) to ES5 with Babel: targets, module format and loose mode.JavaScript Object to JSONTurn JS object literals and Python dicts into valid JSON: quotes keys, fixes commas and values.JSON Graph VisualizerSee JSON as an interactive node graph with zoom, collapse and search; export PNG or SVG.KML ViewerOpen KML and KMZ files on an interactive map: placemarks, paths, polygons, folders, export.MySQL to PostgreSQL ConverterConvert MySQL dumps and CREATE TABLE statements to PostgreSQL: types, AUTO_INCREMENT, ENUMs, quotes.Text to CSV ConverterTurn space-aligned, fixed-width, pipe or tab separated text into clean CSV with a live preview.VCF File ViewerOpen vCard .vcf files as contact cards with photos, search and duplicate check, export CSV.XML ViewerBrowse XML as a collapsible tree with search, XPath of any node, attributes and big-file support.JSON to Python ClassGenerate Python dataclasses, Pydantic models or TypedDicts with type hints from JSON.JSON to C# ClassConvert JSON to C# classes or records with System.Text.Json or Newtonsoft attributes.JSON SorterSort JSON keys A-Z recursively, sort arrays by value or by a key, then pretty-print or minify.JSON to HTML TableConvert a JSON array of objects into clean HTML table code with CSS styles and a live preview.CSV to SQL ConverterConvert CSV to SQL CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.IPv4 to IPv6 ConverterConvert IPv4 to IPv4-mapped, 6to4 and NAT64 IPv6, extract IPv4 from IPv6, and get int/hex/binary.cURL to Code ConverterConvert curl commands to JavaScript fetch, Axios, Python requests, Node.js, PHP and Go code.Code to ImageTurn code into a beautiful syntax-highlighted PNG with themes, window frame and background.Excel to JSON ConverterConvert Excel sheets (XLSX, XLS, ODS) to JSON with header row, type and shape options.
See all 129 Data & File Format Converters →