PB
Available
swap_horiz
lock Free · Private · In-Browser

Properties to JSON Converter

Parse Java properties text into nested JSON using dotted key paths.

 

Parse properties syntax into nested JSON

Properties syntax includes more than simple equals-sign splitting. Keys can use equals, colon, or whitespace separators; backslashes escape spaces and control characters; Unicode escapes encode code units; and an odd trailing backslash continues a logical line. This converter parses those rules before using dotted key segments to reconstruct nested objects and arrays.

The default entries become a db object with host set to localhost and a tags array containing a and b. Numeric path segments create array positions, escaped dots remain part of the decoded key before nesting, and comment lines beginning with a hash or exclamation mark are ignored. Invalid Unicode escapes produce a clear error.

Dotted paths and string-only values

All properties values remain JSON strings because the source format does not distinguish text from numbers, booleans, or null. Automatic guessing could silently turn an identifier with leading zeros into a number, so this tool preserves the exact decoded value. Parsing happens locally in your browser. Apply schema-aware coercion only after the conversion when the intended types are known.

Frequently Asked Questions

Does this support continued properties lines?

Yes. A logical line continues when the physical line ends with an odd number of backslashes.

How do dotted keys become arrays?

A numeric path segment creates an array position, while ordinary segments create nested objects.

Why are numbers and booleans returned as strings?

The properties format stores text only, so guessing a type could change identifiers or intended values.

Take it further
All Free Tools

Browse the full set of free, private, in-browser tools.

Learn More arrow_forward