JSON to .properties

Paste JSON and get .properties at once, with errors pointed by line and column, then copy or download the result.

loading JSON to .properties
About this tool

What are JSON and .properties?

JSON is the text format of web APIs: objects in braces, lists in brackets, strings always in double quotes, and nothing else. A .properties file is the Java configuration format: key=value lines whose dotted keys (spring.datasource.url) imply a hierarchy, with \uXXXX escapes for non-ASCII text.

Typical when a JSON configuration or translation file has to feed a Java application or a Spring @ConfigurationProperties class.

This page opens the data converter already set to JSON → .properties. Paste the text, read the result as you type, then copy it or download it as a file. Errors show the line and the column. Nothing is sent anywhere: the conversion runs in your browser.

JSON vs .properties

JSON.properties
Extension.json.properties
Media typeapplication/jsontext/x-java-properties
Commentsnoyes (# or !)
Data typesstring, number, true/false, null, object, arraytext only
Nestingany depthimplied by dotted keys and [0]
Typical useAPIs, package.json, logsSpring Boot, Java apps, i18n bundles
SpecificationRFC 8259java.util.Properties

When to convert JSON to .properties

  • Convert to .properties when a Spring Boot or Java app reads its settings from it.
  • Keep JSON when another program or an API will read the data.

What changes in the conversion

  • Nested keys become dotted keys (spring.datasource.url) and list items [0], [1], the form Spring Boot reads.

How to convert JSON to .properties

  1. Paste your JSON in the input box (the page opens with an example you can replace).
  2. Read the .properties on the right; it updates as you type. If something is wrong, the message says the line and column.
  3. Adjust the options if you need: indentation, sorted keys or type detection.
  4. Copy the result or download it as a .properties file.

Example

This JSON input:

{
  "app": { "name": "orders", "port": 8080 },
  "database": { "url": "postgres://db:5432/orders", "pool": 10 },
  "features": ["pix", "boleto"]
}

becomes this .properties, exactly as the converter writes it:

app.name=orders
app.port=8080
database.url=postgres://db:5432/orders
database.pool=10
features[0]=pix
features[1]=boleto

Frequently asked questions

Is my JSON sent to a server?

No. Conversion happens in your browser, so secrets in a config never leave your computer.

Does JSON to .properties keep comments?

JSON has no comments, so there is nothing to lose. .properties comments: yes (# or !).

What happens to nested data?

JSON nesting: any depth. .properties nesting: implied by dotted keys and [0]. The tree is flattened into one key per value, as shown in the example.

Report a problem