Category: Developer tools
Properties to JSON
Convert Java .properties files into JSON locally
Paste Java-style .properties text using `key=value`, `key: value` or `key value` pairs and `#` or `!` comments to convert it into a JSON object, with an option to nest dotted keys. Runs entirely in your browser.
{
"server": {
"host": "localhost",
"port": "8080"
},
"database": {
"name": "app_db",
"user": "admin"
}
}Everything on this page is processed in your browser. Nothing is uploaded.
What this tool does
The .properties format used by Java, Spring and many build tools stores one key and value per line, using `=`, `:` or plain whitespace as the separator, with `#` and `!` marking full-line comments. Keys are often namespaced with dots, such as `server.port`, to imitate a hierarchy inside a flat file. This tool parses each line and, when nesting is enabled, turns those dotted keys into a real nested JSON object; with nesting off, the dots are kept as literal object keys.
How to use it
- Paste .properties text, or load the example.
- Turn nesting on to expand dotted keys into nested objects, or off to keep them flat.
- Copy the JSON result.
Privacy
This tool runs entirely in your browser. Your input is never uploaded, stored or shared — closing the tab removes it.
Frequently asked questions
- Is my properties file uploaded anywhere?
- No. Parsing happens in JavaScript running in the page, so nothing you paste ever leaves your device.
- Which separators are supported?
- A line can use `=`, `:`, or plain whitespace between the key and the value, matching what the Java properties format itself accepts.
- What does the nesting option do?
- With it on, a key like `server.port` produces `{"server":{"port":"8080"}}`; with it off, the same key stays literal, producing `{"server.port":"8080"}`.