Category: Developer tools

JSON to Properties

System ideaMissing a tool?

Convert a JSON object into Java .properties text

Paste a JSON object to generate Java-style .properties text, with an option to flatten nested objects into dotted keys. Runs entirely in your browser.

Properties text
debug=false
server.host=localhost
server.port=8080

Everything on this page is processed in your browser. Nothing is uploaded.

What this tool does

This is the reverse of Properties to JSON. With flattening on, a nested object is walked recursively and every leaf value becomes its own `key.subkey=value` line, which is how Spring and most Java tooling expect a hierarchical config to be represented in a flat properties file. With flattening off, only the top-level keys are written, and a nested object value is instead embedded as literal JSON text on its own line.

How to use it

  1. Paste a JSON object, or load the example.
  2. Turn flattening on to expand nested objects into dotted keys, or off to keep only the top level.
  3. Copy the .properties result.

Privacy

This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.

Frequently asked questions

Is my JSON uploaded anywhere?
No. Generation happens in JavaScript running in the page, so nothing you paste ever leaves your device.
How are special characters handled?
Backslashes, newlines, colons and equals signs inside a value are escaped so the line stays a valid .properties entry when read back.
What happens to arrays?
An array value is written as a single comma-separated line rather than indexed keys, which is enough for most simple config lists.