Environment Variables Parser

Paste a raw .env file, inspect every line, catch duplicate keys and syntax issues, then export clean JSON. Everything runs client-side.

Raw .env input

First = splits key and value, everything after it is preserved.

0 lines

Variables

0

Valid rows that made it into JSON output

Duplicates

0

Last valid duplicate wins in exported JSON

Invalid lines

0

Missing separators, invalid names, or broken quotes

Empty values

0

Useful for spotting placeholders and unset secrets

Line-by-line analysis

Duplicates stay visible here even if JSON keeps only the last valid one.

LineKeyValueStatusNotes
1Blank line info
Blank line

JSON output

Uses the last valid occurrence of duplicate keys.

Clean key list

One key per line, handy for audits and docs.

Warnings and errors

Exact line numbers with reasons.

What this parser catches

Supported parsing rules

  • • Normal KEY=value lines
  • • Empty values like KEY=
  • • Outer single or double quotes
  • • Full-line comments and blank lines
  • • Inline comments when preceded by a space before #

Warnings and errors

  • • Duplicate keys
  • • Invalid variable names
  • • Missing = separators
  • • Unclosed quoted values
  • • Whitespace trimming around keys and values

Quick note

This is a practical dotenv parser, not a shell interpreter. It focuses on readable analysis for common .env files and keeps the output predictable.