Java Properties ↔ JSON
Convert .properties files to JSON and back.
About this tool
Move Java/Spring-style key=value configs into JSON for scripts and back again. Handles comments, line continuations, and common escape sequences.
What you get
- JSON object from .properties key/value lines
- .properties text from a flat JSON object
- Comments and blank lines preserved where possible
How to use
Choose direction, paste .properties or JSON, and copy the result.
FAQ
How to convert Java properties to JSON?
Paste a .properties file, choose Properties→JSON, and copy the flat JSON object keyed by each property name.
Can I convert JSON back to .properties format?
Yes—paste a flat JSON object and switch to JSON→Properties to get key=value lines ready for Spring or Java apps.
Does the converter handle comments in properties files?
Comment lines and blank lines are preserved where possible during parsing so you can review structure before export.
How to migrate Spring config to JSON?
Convert the .properties file to JSON for use in build scripts, documentation, or tools that consume JSON configs, then edit keys as needed.
By using this tool you agree to our Terms of Use and Privacy Policy. Results are provided as-is without warranty.