Code converter

Properties to JSON converter

To convert Properties to JSON, drop your Properties file in the box below. It converts straight away; press Download to save the JSON. It all happens in your browser, so your file stays on your device.

Converted on this device, never uploaded

What changes

Properties to JSONWhat happens
RulesAs Java’s Properties.load: =, : or a space; # and ! comments; continued lines
Escapes\uXXXX, \t, \n read as the characters they stand for
Dotted keysKept as they are, or nested: server.port becomes port inside server
Set twiceThe last value counts

How to convert Properties to JSON

  1. Add your Properties. Drop the file in the box, or click to choose it. It becomes JSON straight away.
  2. Check the result. Look at the preview and the size. The defaults are right for most files.
  3. Download. Press Download to save the JSON.
Why JSON

Read Java .properties, such as Spring Boot’s application.properties or translation bundles, as JSON.

Questions

Pick YAML instead of JSON: dotted keys are nested for YAML, as Spring Boot expects.

No. It is read and converted in your browser and never uploaded.

No. The conversion happens right in your browser, so your file stays on your device. There is no account to make, either.

Related conversions