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 type | application/json | text/x-java-properties |
| Comments | no | yes (# or !) |
| Data types | string, number, true/false, null, object, array | text only |
| Nesting | any depth | implied by dotted keys and [0] |
| Typical use | APIs, package.json, logs | Spring Boot, Java apps, i18n bundles |
| Specification | RFC 8259 | java.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
- Paste your JSON in the input box (the page opens with an example you can replace).
- Read the .properties on the right; it updates as you type. If something is wrong, the message says the line and column.
- Adjust the options if you need: indentation, sorted keys or type detection.
- Copy the result or download it as a
.propertiesfile.
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]=boletoFrequently 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.