Boneyard Tools

Java Properties to JSON Converter

Paste a Java .properties file to get clean JSON, or switch direction to turn JSON back into properties. Comments, escapes and continuations are handled.

How to convert .properties to JSON

  1. Paste your .properties text (or JSON) into the box.
  2. Pick the direction: properties to JSON or JSON to properties.
  3. Copy the converted result.

Examples

Dotted keys to JSON

db.host=localhost
db.port:5432
{
  "db.host": "localhost",
  "db.port": "5432"
}

Frequently asked questions

Is my file uploaded anywhere?

No. The conversion runs entirely in your browser, so your data never leaves your device.

Which separators and comments are supported?

Both key=value and key:value are parsed. Lines starting with # or ! are treated as comments and skipped.

Are line continuations handled?

Yes. A line ending in a backslash continues onto the next line, and the leading whitespace of the continuation is ignored.

Are escapes like \n and \uXXXX decoded?

Yes. Escape sequences \n, \r, \t, \f and \uXXXX are decoded in values when converting to JSON, and re-escaped when going back.

Are dotted keys turned into nested objects?

No. Dotted keys like db.host are kept flat and used verbatim as JSON keys, which is the safest round-trippable mapping.

Related tools