HCODX/JSON to Properties
100% browser-based · UTF-8 safe · No upload

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 input
Properties output
Options
Reverse (Properties → JSON)
Input size
0 B
Output size
0 B
Output lines
0
Status
Ready
Example

JSON in, Properties out

See exactly how JSON maps onto Properties — the converter on this page produces output identical to the example below.

JSON input
{
  "app": { "name": "myapp", "debug": true, "version": "1.2.3" },
  "database": { "host": "localhost", "port": 5432 }
}
Properties output
app.name=myapp
app.debug=true
app.version=1.2.3
database.host=localhost
database.port=5432
Use cases

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.

Step by step

How to convert JSON to Properties

1

Paste your JSON

Drop it into the left editor. The sample is loaded by default — clear it or click the wand to reload.

2

Click Convert

Or leave auto-convert on for live updates. Conversion runs entirely in your browser — no upload.

3

Copy or download

Copy to clipboard or save the output as config.properties.

4

Reverse if needed

Jump to the Properties to JSON converter for a round-trip check.

FAQ

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

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 PropertyResourceBundle or Spring.
Related

Related tools