Properties to JSON Converter

Need the reverse conversion?
JSON to Properties Converter

Properties Input

1

JSON Output

Enter Properties data to convert to JSON

Your converted data will appear here

How to convert Properties to JSON

  1. Step 1 – Paste Properties data

    • Paste the contents of your .properties file into the left panel.
    • The tool parses key=value pairs and ignores comments starting with # or !.
    • You can also import a properties file from your computer.
  2. Step 2 – Review JSON structure

    • Dotted keys (like app.db.host) are reconstructed into nested JSON objects.
    • Numeric values and booleans (true/false) are detected and typed correctly.
    • Verify that the hierarchy matches your expected configuration structure.
  3. Step 3 – Get JSON

    • Copy the valid JSON for use in modern web apps or Node.js services.
    • Download as a .json file.
Example: Properties to JSON
# Input Properties
app.name=My App
app.version=1.0

// Output JSON
{
  "app": {
    "name": "My App",
    "version": "1.0"
  }
}

Related tools

Frequently Asked Questions

What is Properties format?

Properties files are simple text files used for configuration in Java applications. They contain key-value pairs separated by '=' or ':'.

How are nested objects handled?

Properties files don't support nested objects natively. Nested structures are typically represented using dot notation (e.g., database.host=localhost).

What data types are supported?

The converter automatically detects numbers, booleans (true/false), and keeps strings as-is. Unicode escapes (\uXXXX) are also supported.

How are comments handled?

Lines starting with '#' or '!' are treated as comments and ignored during conversion. Inline comments are not supported.

Can I use multiline values?

Yes. Use a backslash (\) at the end of a line to continue the value on the next line. This is especially useful for long text values.

Is my data secure?

Yes, all data processing happens entirely in your browser. Your data is never sent to any server, ensuring complete privacy and security.

Properties to JSON Converter Online | JSONSwiss