JSON to Properties
Convert JSON into Java .properties with dot-flattened keys (app.database.host=localhost). Special characters (\n, \t, \r, backslashes) are escaped per Java Properties rules.
JSON in, Properties out
See exactly how JSON maps onto Properties — the converter on this page produces output identical to the example below.
{
"app": { "name": "myapp", "debug": true, "version": "1.2.3" },
"database": { "host": "localhost", "port": 5432 }
}app.name=myapp app.debug=true app.version=1.2.3 database.host=localhost database.port=5432
What you'll use this for
Converting JSON to Properties is a daily task in API integration, config management, and data pipelines.
API integration
Generate Spring Boot configs from external JSON config services.
Config migration
Migrate JSON-based microservice configs into Spring properties.
Data import
Bundle JSON configs into JVM apps via properties files.
CI pipelines
Generate per-env properties files from a single JSON manifest.
How to convert JSON to Properties
Paste your JSON
Drop it into the left editor. The sample is loaded by default — clear it or click the wand to reload.
Click Convert
Or leave auto-convert on for live updates. Conversion runs entirely in your browser — no upload.
Copy or download
Copy to clipboard or save the output as config.properties.
Reverse if needed
Jump to the Properties to JSON converter for a round-trip check.
Frequently asked questions
Java properties are string-only. Numbers and booleans are stringified — Spring's @ConfigurationProperties can rebind them at load time.
Nested objects are dot-flattened: {"a":{"b":1}} becomes a.b=1.
Yes. No signup, no limits.
You'll see a clear parse error in the output panel.
Use the Properties to JSON converter for the opposite direction.
About JSON and Java Properties
Java .properties files store key=value pairs and are the default config format for Spring Boot, Maven, Gradle, and most JVM frameworks. Spring Boot natively binds dotted keys to typed POJOs via @ConfigurationProperties.
Common pitfalls
- Keys are dot-flattened — arrays serialize as JSON strings (Spring supports array binding via
list[0]syntax). - Backslashes, newlines, and tabs are escaped to
\\,\n,\t. - Files are ISO-8859-1 by default in Java < 9; use UTF-8 with
PropertyResourceBundleor Spring.