ToolVaults

.env File Parser — Convert Dotenv to JSON

Parse a .env file and see it as a JSON object. Handles comments, quoted values, escape sequences, and "export" prefixes. Runs entirely in your browser.

Runs 100% in your browser — nothing is uploaded.

Parsed entries (6)
DATABASE_URLpostgres://user:pw@localhost:5432/app
API_KEYsk_test_abc123
DEBUGtrue
LOG_LEVELinfo
MULTILINEline one line two
TZUTC
JSON

Frequently asked

Which dotenv dialect is supported?

A close match to the popular dotenv npm package: comments with #, KEY=value, optional single or double quotes, escape sequences (\n \t \r \\ \") inside double quotes, and a permissive "export KEY=…" prefix for shell compatibility.

Is my .env file uploaded?

No. Parsing runs entirely in the browser. It is safe to paste real secrets — but as with any online tool handling sensitive data, use your judgment.

What about variable interpolation?

Interpolation (e.g. $OTHER_VAR) varies between dotenv implementations and is intentionally not expanded here — you get the raw value as written. Add expansion in your own runtime if needed.

Related tools