ENV Formatter
Normalize, sort, and dedupe .env-style key=value files in your browser. Keep environment files consistent.
Format
ENV
Normalize, sort, and deduplicate environment variables.
Ctrl+Enter to Format
Recent Payloads
Payloads you format will appear here for quick access. Stored locally in your browser.
What this tool does
Normalize `key=value` lines, remove duplicates, and sort keys so environment files stay readable and consistent.
Privacy
Secrets in your paste stay local. We do not store or transmit ENV contents.
Use cases
- Clean up `.env` files before sharing examples
- Sort variables for easier diffing in reviews
- Dedupe keys after merging multiple env sources
Troubleshooting
A value that changes depending on which tool reads the file — quotes kept, a $ expanded, a value cut short at a # — is a parser difference, not a formatting one. Why the same .env file behaves differently in Docker, Compose, Node, and Python has the measured comparison.
Guides for this tool
- Docker Compose .env not loadingMeasured on Compose 5.3.1: a variable in .env reached the image tag but never reached the container. .env feeds interpolation; env_file feeds the container. They are different channels.
- Why the same .env file behaves differentlyMeasured on current versions: docker run --env-file and Docker Compose disagreed on 10 of 14 cases from one .env file. What each consumer does with quotes, #, $, and whitespace.