Code · Made a little simpler

Java Properties to YAML

Convert Java property keys, escaped values and continued lines into YAML strings. Choose UTF-8 or ISO-8859-1 for local files and find duplicates after decoding.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Java Properties to YAML: how to use it

  1. Paste .properties text or choose the file’s encoding and open the original file.
  2. Select Convert to YAML. Check escaped spaces or separators, Unicode characters and values joined across lines.
  3. Preview the flat mapping and download the YAML. Check whether the destination expects dotted keys or additional nesting.

Limits and notes

Accepts up to 250,000 UTF-16 code units. Reads UTF-8 and Unicode files with a byte-order mark. Also reads exact ISO-8859-1 bytes when selected. Decodes Java escape sequences and line continuations. Rejects repeated decoded keys, malformed Unicode escapes and isolated surrogate code units. Outputs a flat mapping with string keys and values.

How your privacy works →

Java Properties to YAML: common questions

Does a property without a value become null?

A standalone key becomes a zero-character string. Text such as true, null or 0012 also remains a string.

What happens to keys such as service.port?

The full key stays service.port. Dot-separated property names do not create nested mappings.

When should I select ISO-8859-1?

Select it when the source is read by Java Properties.load(InputStream) or you know the file uses Latin-1. The setting applies to file bytes. Pasted text has already been decoded.

Guides