.env Formatter & Validator
Normalize environment variables and catch duplicate keys, malformed lines, and unsafe values. · Updated
Options
Output mode:
shell
Formatted Outputshell
Draft saved locally.
Options
| Option | Description |
|---|---|
| Output mode | Choose normalized environment text or a JSON diagnostic report. |
FAQ
Does this reveal or upload my secrets?
No. Values are processed only in your browser and are never transmitted.
What syntax is supported?
Standard KEY=value assignments, optional export prefixes, comments, quotes, and underscores are supported.
What issues are detected?
The validator detects malformed lines, duplicate keys, empty values, and unquoted values containing spaces.
Does it change variable values?
It preserves values while normalizing key syntax and removing optional export prefixes.
Can I use this for Docker Compose files?
Yes. It is useful for checking the .env files consumed by Docker Compose and local development tools.
Related tools
YAML to JSON
Convert YAML configuration files into structured JSON documents (or JSON to YAML) instantly.
Dockerfile Formatter & Linter
Normalize Dockerfile instructions and catch common build mistakes before you ship.
GitHub Actions Workflow Validator
Format workflow YAML and catch missing jobs, runners, triggers, and steps before committing.
JSON Formatter
Format, validate, and explore JSON with a collapsible tree view.