Java Properties ↔ YAML

Convert Java .properties and YAML string mappings with escape handling, continuation lines and optional dotted-key nesting.

How to use

Properties keys and values are strings. The parser supports =, : and whitespace separators, Java Unicode escapes, escaped separators and continuation lines. Duplicate keys use the last value, matching Java Properties loading behavior.

YAML output quotes values such as 001 and true so they remain strings. Reverse conversion expects string-valued mappings, not inferred numbers or booleans. Dotted-key mode expands app.name into nested mappings and flattens them on export; collisions are rejected.

Behavior and limits

This operates on pasted Unicode text, not ISO-8859-1 file bytes. Comments and layout are not preserved. YAML aliases and nesting are bounded; custom tags and non-string leaves are rejected. Input limit: 200,000 characters.

Questions & answers

Will a dotted key always become nested YAML?

Only when dotted-key mode is enabled. Otherwise app.name stays one literal key.

Is my input sent to a server?

No. Processing runs in your browser and input is not submitted to an API. Original files and remote databases are not modified.

Other Languages

Java Properties ↔ YAML — Base64.sh

Java Properties ↔ YAML

Convert Java .properties and YAML string mappings with escape handling, continuation lines and optional dotted-key nesting.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Compare string types, escapes, duplicates, continuations and colliding sections and reject unrepresentable inputs.
Comparison reference
Explicit configuration fixtures and expected structures; the formats are not claimed to have identical semantics.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
  • data-tools.test.js
    • Properties/YAML preserves string types, Java escapes, continuations and dotted-key collisions

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.