HCODX/Properties to JSON
100% browser-based · UTF-8 safe · No upload

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 input
JSON output
Conversion options
Reverse (JSON → Properties)
Input size
0 B
Output size
0 B
Output lines
0
Status
Ready
Example

Properties in, JSON out

A small sample to show the shape of the conversion. Pretty-printed output, types preserved where possible.

.properties
db.host=localhost
db.port=5432
JSON
{
  "db": {
    "host": "localhost",
    "port": 5432
  }
}
Use cases

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.

Step by step

How to convert Properties to JSON

1

Paste your Properties

Drop your source into the left editor. The sample loads on first visit — replace it with your data.

2

Click Convert

Or leave Auto-convert on for live updates as you type. Conversion runs locally.

3

Review the output

The right pane shows pretty-printed JSON with status, byte counts, and line count.

4

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.

FAQ

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

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.properties to JSON.
  • Audit JVM config structure.
  • Bridge .properties → JSON for cross-language toolchains.
Related

Related tools