Properties Converter
Read and write Java-style properties files in a structured JSON view. Parsing handles comments (# and !), the =, : and whitespace separators, backslash line continuations, escaped unicode (\uXXXX) and escape sequences — producing a flat JSON object. The reverse direction serializes JSON objects to properties syntax with dotted keys and escaping, so config lives anywhere in a document and survives round-trips. Entirely on-device.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Properties in, JSON out
In the default direction the tool reads a Java properties file and returns one flat JSON object. Each value comes back as a string, because properties files carry no types. Comments starting with # or ! and blank lines are dropped, and a key ends at the first unescaped =, : or whitespace.
JSON out to dotted keys
Switch the direction box to JSON to Properties and a JSON object is flattened into dotted keys: app.port, items.0, items.1 and so on, with arrays becoming numbered keys and empty objects written as blank values. Key order is preserved as authored.
Continuing a Spring config file
A frequent job is turning application.properties into JSON so it can be diffed, checked or fed to a script. Backslash line continuations are joined before parsing, and escapes such as \n, \t, \\ and \uXXXX are decoded back into real characters.
Duplicate keys and escaping outbound
The parser follows Java semantics: when a key appears more than once the last value wins. Serializing escapes backslashes, newlines, tabs and any non-ASCII character, writing the latter as \uXXXX so the output stays readable in any editor.
Config never leaves the page
Reading and writing properties happen locally in the tab. Nothing is posted to a server and the tool runs offline, which matters when a config file holds credentials or internal host names.
Questions
Which comment and separator styles are supported?
Lines beginning with # or ! are skipped as comments, and blank lines are ignored. Keys end at the first unescaped =, : , or whitespace, matching Java properties rules.
Are multiline values supported?
Yes. A trailing backslash continues the value onto the next line, and escaped sequences like \n, \t, \\ and \uXXXX are decoded into their real characters during parsing.
How does JSON to properties handle nested objects?
Objects are flattened with dotted keys (app.port → app.port), arrays become repeated numbered keys (items.0 = ...), and primitives are written as strings with escaping. Key order is preserved.
How are duplicate keys handled?
Pursuant to Java properties semantics, the last occurrence of a key wins during parsing. When generating, keys are written once.
Related tools
See categoryINI Converter
Convert INI config files to JSON or serialize JSON back to INI, on device.
TOML ⇄ JSON Converter
Parse TOML into JSON, or serialize JSON back to TOML.
JSON to YAML
Convert JSON to YAML on your device, with a 2- or 4-space indent.
YAML to JSON
Convert YAML to JSON locally, with indent choice and optional key sorting.