Properties to JSON converter
Convert Java .properties files to JSON and back, right in your browser.
Properties to JSON converter
Paste a Java .properties file and get clean JSON back, or paste JSON and get a .properties file. It is the quick way to move a Spring Boot application.properties, a Log4j config or an i18n message bundle into a format your JavaScript, tests or documentation can read — and to generate one from an object you already have.
The parser follows the real .properties rules rather than a naive split on the equals sign. Both key=value and key:value pairs are read, whitespace can also separate a key from its value, and leading spaces are trimmed. Lines beginning with # or ! are treated as comments and skipped. A line ending in a backslash continues onto the next one, so a long value wrapped across several lines is joined back into a single string. Escape sequences like \n, \t, \\ and \: are unescaped, and \uXXXX becomes the character it names. Every value stays a string, so a version like 007 or a port kept as text is never silently turned into a number.
Turn on "Nest dotted keys" and a key such as db.host becomes { "db": { "host": … } }, which is what most config loaders expect; leave it off to keep the flat dotted keys verbatim. "Prettify JSON" indents the output for reading, or you can minify it. Going the other way, nested objects are flattened back into dotted keys and characters that are special in a .properties file are escaped for you. Invalid JSON is reported calmly, pointing at the bracket or comma to check, instead of failing silently.
Everything runs locally in your browser. Your configuration — database URLs, API hosts, credentials sitting in a properties file — is never uploaded, logged or sent to a server. Copy the result, download it as a file, or hand it to another TextArray tool.