Skip to content

Loading the editor only when it is ready

Java Properties to JSON Converter

Transform any standard .properties file into a nested JSON object. Dotted keys like app.database.url become nested objects — { "app": { "database": { "url": "..." } } }. Array indices like app.servers[0] become JSON arrays. Special characters are properly unescaped: \n becomes newline, \t becomes tab, escaped \# and \! are unescaped.

Use Cases

  • Spring Boot Migration — Convert application.properties to structured JSON config
  • Java Resource Bundles — Transform i18n property files into JSON for web apps
  • Legacy Java Systems — Bridge Java property files with modern JSON-based tooling
  • Microservices — Convert Java config to JSON for container orchestration

Example

Input:

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

Output:

{
  "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
      }
    }
  }
}