Properties to JSON
Convert Java .properties files into JSON. Dot-notation keys like db.host become nested objects, comments (#, !) are stripped, and common escapes (\n, \t) are unescaped.
Properties in, JSON out
A small sample to show the shape of the conversion. Pretty-printed output, types preserved where possible.
db.host=localhost db.port=5432
{
"db": {
"host": "localhost",
"port": 5432
}
}What you'll use this for
Properties to JSON shows up in every backend and ETL stack — feeding APIs, migrating configs, debugging payloads.
API & data imports
Prepare payloads for REST APIs and ingestion endpoints.
Data migration
Move configuration and tabular data between systems and formats.
Debugging
Inspect production data in a sensible, structured form.
ETL pipelines
Stage transformations between formats in your data flow.
How to convert Properties to JSON
Paste your Properties
Drop your source into the left editor. The sample loads on first visit — replace it with your data.
Click Convert
Or leave Auto-convert on for live updates as you type. Conversion runs locally.
Review the output
The right pane shows pretty-printed JSON with status, byte counts, and line count.
Copy or download
Use the action bar to copy to clipboard or save as a file. Or jump to the reverse converter for round-trip checks.
Frequently asked questions
foo.bar.baz=1 becomes { "foo": { "bar": { "baz": 1 } } }. Each . in the key opens a new nested object.
Both = and : as in the Java Properties spec. The first = or : on a line is treated as the separator.
Lines starting with # or ! are stripped before parsing.
Common ones: \n, \t, \r, and \\ are unescaped. Unicode \uXXXX is parsed by the browser separately.
Yes. Runs entirely in your browser.
About Properties to JSON
.properties is the classic Java config format — key=value or key:value lines, with # or ! comments. Spring Boot, Maven, and many JVM apps still read them. Translating to JSON unlocks the same data for non-JVM toolchains.
How parsing works
- Comments (
#,!) and blank lines are skipped. - Lines are split on the first
=or:. - Dot-segments in keys produce nested objects.
- Escapes
\n,\t,\r,\\are unescaped.
Use cases
- Migrate Spring Boot
application.propertiesto JSON. - Audit JVM config structure.
- Bridge .properties → JSON for cross-language toolchains.