ToolSnippet

Convert Java .properties and .env to Nested JSON

Transform dot-notated Java .properties and .env files into structured, nested JSON objects.

About This Tool

Properties to JSON Converter parses Spring Boot and Java .properties files alongside .env files, converting dot-notated keys (server.port=8080) into deep, structured JSON objects.

Key Features

Expands dot notation (app.db.url) into nested JSON objects
Recognizes booleans, integers, and null values
Filters out comments (# and !)

How to Use This Tool

  1. Paste your Java .properties or .env text into the input editor.
  2. Inspect the converted nested JSON object in real-time.
  3. Copy the formatted JSON.

Why Use This Tool

  • Easily migrate Spring Boot configuration files or environment variables into JSON/YAML configuration formats.
  • Expands dot notation into deep nested hierarchy.

Pro Tips

  • Paste your application.properties file directly to view it as a clean configuration JSON object

Frequently Asked Questions

How are comments in .properties files handled?

Lines starting with # or ! are recognized as comments and safely ignored during conversion.

Related Tools