Dad’s Data formats tools
.envParsing…UTF-8
Local only

What the .env workbench parses

The .env workbench understands the informal dotenv format used by most Node.js, Python, and Docker projects. It handles quoted values, inline comments, and the export keyword prefix. Every parsed entry is shown with its source line number, which is useful for navigating large files.

SyntaxParsed asNotes
KEY=valueUnquoted stringInline comment extracted if "# ..." follows
KEY="value"Double-quotedOuter quotes stripped; \" unescaped inside
KEY='value'Single-quotedContent is literal — no escape processing
export KEY=valueSame as KEY=value"export" keyword is silently stripped
# comment(skipped)Full-line comments are ignored
KEY=value # commentvalue + commentInline comment extracted from unquoted values

Duplicate key behaviour

The .env format has no specification for duplicate keys — different loaders handle them differently. This workbench preserves all occurrences in the entry list and highlights duplicates in the Table view with a warning badge. The Validator also surfaces duplicate keys as warnings (not errors).

Note: When converting to JSON or YAML, only the first occurrence of a duplicate key is included — consistent with how most dotenv libraries behave.

Comment handling

Full-line comments (lines starting with #) are silently ignored. Inline comments on unquoted values (KEY=value # note) are extracted and shown in the Comment column of the Table view, but are not included in JSON or YAML output. Quoted values cannot carry inline comments — KEY="val # not a comment" treats everything between the quotes as the value.

Frequently Asked Questions

Your files stay on your computer. Dad promised.

Data formats tools

Search the Data formats tools