Skip to content

Loading the editor only when it is ready

JSON to Java Properties Converter

Transform any nested JSON object into a standard .properties file. Keys retain dots as separators and are not uppercased. Values are properly escaped: backslashes become \\, newlines become \n, tabs become \t. Leading #, !, or space in values are escaped with \ to prevent misinterpretation as comments. Colons (:) and equals signs (=) in keys are escaped so they are not mistaken for key-value separators. Arrays are expanded into indexed keys like app.servers[0], compatible with Spring Boot @ConfigurationProperties binding.

Use Cases

  • Spring Boot Applications — Convert JSON config to application.properties format with type-safe binding
  • Java Resource Bundles — Generate .properties files for i18n
  • Legacy Java Systems — Bridge modern JSON config with Java property files
  • Microservices — Generate config files for Java-based services

Example

Input:

{
  "app": {
    "name": "MyApp",
    "version": "1.0.0",
    "servers": ["192.168.1.1", "192.168.1.2"],
    "database": {
      "url": "jdbc:postgresql://localhost:5432/mydb",
      "pool": {
        "maxActive": 10,
        "timeoutMs": 30000
      }
    }
  }
}

Output:

app.name=MyApp
app.version=1.0.0
app.servers[0]=192.168.1.1
app.servers[1]=192.168.1.2
app.database.url=jdbc:postgresql://localhost:5432/mydb
app.database.pool.maxActive=10
app.database.pool.timeoutMs=30000