Environment Formatter
Sort and tidy a .env file: trim the spaces around each =, drop comments and blank lines, and flag keys defined more than once.
- 100% Free
- No account required
- Runs in your browser
- No data is uploaded
Not saved automatically
Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.
Input
Paste or edit your env file, then click “Run tool”.
Type, paste or drop a file
ENVLn 1, Col 1Spaces: 2UTF-871 bytes
Output
Formatted variables (read-only).
Read-only
TextLn 1, Col 1Spaces: 2UTF-80 bytes
Using the Environment Formatter
Overview
Sort and tidy a .env file: trim the spaces around each =, drop comments and blank lines, and flag keys defined more than once.
Tidy a .env file before you share or commit an example of it, and catch keys defined twice.
How to use it
- Paste or type your ENV into Input, drop a file onto it, or press Example to load a sample.
- Press Run tool, or ⌘ ↵ from anywhere on the page.
- Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.
Input
Env file.
Output
Formatted variables.
- Sorts keys alphabetically
- Trims spaces around =
- Flags duplicate keys
- Drops comments and blank lines
Tips
- Choose the language before formatting; the formatter does not guess.
- Formatting never changes behaviour, only layout.
- Config files are parsed as well as formatted, so mistakes surface here.
Keyboard shortcuts
- ⌘ ↵
- Run the tool
- ⌘ K
- Search every tool
- /
- Filter the sidebar