Convert Properties to JSON
Convert a Java .properties file to JSON. Runs entirely in your browser, so your data never leaves your device.
0 chars · 0 lines
Output
The result appears here as you type.
How to use Convert Properties to JSON
- 1. Paste your .properties file. Paste the contents of a Java .properties file, including any comment lines starting with a hash, which the parser skips over while reading the key=value pairs.
- 2. Set nesting and type parsing. Turn on Nest dotted keys to rebuild dotted property names like db.host into nested JSON objects, and Parse numbers and booleans to convert values like 5432 or true into their real JSON types.
- 3. Pick the output indent and copy. Choose 2 spaces, 4 spaces or tabs for the Indent setting, then copy the resulting JSON and use it in a Node service, a config validator, or any JSON-based tool.
When to use Convert Properties to JSON
Convert Properties to JSON turns a flat Java .properties file into a JSON object, rebuilding dotted keys into nested structure when you want it. It is for bringing Java-style configuration into JavaScript, Python or any tooling that expects JSON rather than key=value pairs.
- Porting a Spring Boot config into a Node service. You are migrating settings from an application.properties file used by a Java service into a Node application that reads JSON config instead.
- Reading legacy Java config in a modern build pipeline. A CI pipeline needs to inspect values from an old .properties file as part of a JSON-based deployment manifest, and converting it once gives the pipeline usable JSON.
- Validating a properties file against a JSON schema. You want to run an existing .properties file through a JSON Schema validator to catch missing or malformed settings, which requires the file in JSON form first.
- Comparing config across two frameworks during a migration. You are moving between two frameworks, one using properties files and one using JSON, and want to diff the same settings side by side in the same format.
Examples
Convert properties to nested JSON
Input
db.host=localhost db.port=5432 # comment debug=true
Output
{
"db": {
"host": "localhost",
"port": 5432
},
"debug": true
}About the Convert Properties to JSON tool
Convert Properties to JSON runs as plain JavaScript in your browser tab, with no server behind it. Convert a Java .properties file to JSON. Whatever you put in stays on your device from start to finish.
The tool is part of EditSafely's JSON Tools section, 90 single-purpose utilities built around the same idea: open the page, get the result, keep your data to yourself.
You can shape the output with 3 settings, including Nest dotted keys, Parse numbers and booleans and Indent, and the result refreshes the moment you change one. A worked example further down the page shows exactly what the tool produces for a real input.
That local-first design has practical benefits beyond privacy. The tool keeps working on a flaky connection once the page has loaded, results are instant because nothing round-trips to a server, and it is safe to use with confidential material.
Frequently asked questions
Is Convert Properties to JSON free to use?
Yes, it is completely free. All 2,658 tools on EditSafely work without an account, a subscription or usage limits.
Is it safe to paste sensitive or confidential data?
Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.
How much text can I process at once?
There is no fixed limit. Because the work happens on your own device rather than on a shared server, the practical ceiling is your machine's memory, which comfortably handles inputs far larger than typical online tools allow.
Do I need to sign up or install anything?
No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.
How do I use the result?
The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.