.env & Properties Parser

Parse and convert .env files and Java properties files between different formats. Convert to JSON, YAML, key-value pairs with full validation and format detection.

Input

Output

Format Differences

.env Format

Separator: = only
Keys: UPPERCASE_WITH_UNDERSCORES
Comments: # at line start
Quotes: Optional for values
Use case: Environment variables
# Database config
DB_HOST=localhost
DB_PORT=5432
DB_NAME="my app"

Properties Format

Separator: = or :
Keys: dot.notation.style
Comments: # or ! at line start
Features: Line continuation, Unicode
Use case: Java applications
# App config
app.name=My App
database.host:localhost
message=Hello \
World!

How to Use the Parser

Step-by-Step Guide

  1. Paste your .env or properties file content into the input textarea
  2. Select input format (Auto-detect, .env, or Properties) - Auto-detect works great!
  3. Click sample buttons to see examples of each format
  4. Choose your desired output format (JSON, YAML, Key=Value, .env, or Properties)
  5. Click "Parse & Convert" to process the content
  6. Review any validation errors or warnings
  7. Copy the converted output using the "Copy" button

✅ Supported Features

  • Auto-detection of file format
  • Comments (# or ! for properties)
  • Quoted values
  • Line continuation in properties (\)
  • Unicode escapes (\u0000)
  • Special character escaping
  • Multiple output formats
  • Validation and error reporting

📝 Format Guidelines

  • .env: UPPER_CASE keys, = separator only
  • Properties: dot.notation keys, = or : separator
  • Properties support line continuation with \
  • Unicode: \u0041 becomes 'A' in properties
  • Escape special chars: \n, \t, \\, \=, \:
  • Comments start line with # (or ! for properties)