Skip to main content

Properties to JSON

Convert a Java .properties file to JSON online. Dotted keys become nested objects and Unicode escapes are decoded. Free and private.

Properties

Stays in your browser

JSON

The result appears here after you press Convert.

Shortcuts: Ctrl+Enter run · Ctrl+Shift+C copy result · / search (use ⌘ on Mac)

Next steps

Done here? Use the Send to… menu on the result to carry it on to JSON Beautifier or JSON Visualizer.

Free Online Properties to JSON

Turn a Java or Spring .properties file into JSON. Dotted keys are nested and \uXXXX escapes are turned back into readable characters. It gives developers a quick browser-based way to solve a focused properties to json task before moving the result into a project.

How to use Properties to JSON

Paste your data into the box on the left, or open a file, then press Convert. Paste the file. If it has several profile sections separated by #--- the result is a list with one object per section.

Common mistakes

  • A backslash at the end of a value that was meant to be literal: it joins the next line.
  • Keys with spaces: Java allows them with a backslash, and they are read correctly.

Frequently asked questions

What are \u escapes?
Older Java files write non-English letters as \u00E9. They are decoded to the real character, so \u00E9 becomes é.
How are lists written?
Keys like items[0] and items[1] become a JSON list.
What are continuation lines?
A line ending with a backslash continues on the next line. They are joined for you.
Is my data uploaded anywhere?
No. The conversion runs in your browser and nothing you paste or open is sent to a server.
How do I use this properties to json tool?
Use the interactive controls above; processing stays in your browser and the result is intended as a practical starting point for development work.

More Formatters & Parsers

View all Formatters & Parsers tools →