.env Parser & Formatter

Paste a .env file to convert it to JSON, or paste JSON to generate a `.env` file. Everything runs in your browser; your secrets never leave your machine.

Mode: auto
Errors: 0

The .env Parser & Formatter helps you quickly convert environment variable files into JSON objects and back again. It supports quoted values, inline comments, and preserves ordering for straightforward editing.

The tool runs fully in your browser — nothing is uploaded to a server. Use it to inspect, migrate, or normalize environment files for local development or CI configuration.

Security: this tool runs entirely in your browser. Do not paste production secrets if you are not comfortable keeping them in your clipboard or local machine.

This parser handles quoted values, inline comments after values, and common separators. It intentionally treats everything as string values — types (number/boolean) are not inferred to avoid surprises.