ENV Formatter — Clean up .env files
Think prettier for .env. Paste a messy file and this env formatter will sort keys, align equals signs, normalize casing, and strip duplicates — everything in-browser, nothing uploaded.
Format, align, and sort .env files automatically. Enforce naming conventions, remove duplicates, and keep configs clean.
API_KEY =def DB_URL =postgres://... NAME =has space PORT =3000 STRIPE_KEY=sk_test_xxx
Runs 100% in your browser. Your .env never touches our servers.
PORT=3000 DATABASE_URL=postgres://... NODE_ENV=dev
DATABASE_URL = postgres://... NODE_ENV = dev PORT = 3000
api_key=abc API_KEY=def debug=true
API_KEY=def DEBUG=true
DB_URL=postgres:// NEXT_PUBLIC_SITE_URL=... DB_POOL=10 NEXT_PUBLIC_API_URL=...
# DB DB_POOL=10 DB_URL=postgres:// # NEXT NEXT_PUBLIC_API_URL=... NEXT_PUBLIC_SITE_URL=...
Think prettier for .env. Paste a messy file and this env formatter will sort keys, align equals signs, normalize casing, and strip duplicates — everything in-browser, nothing uploaded.
No. Values are never modified — only structural aspects are changed: key ordering, whitespace alignment, casing of key names, and duplicate/empty line removal. Your actual config is untouched.
Only if you enable 'strip comments'. By default, comments are preserved and grouped with the keys below them.
Yes. The formatter outputs standard dotenv syntax (KEY=value) with optional quoting for values containing spaces or special characters, compatible with dotenv (Node), python-dotenv, godotenv, and other major parsers.
Yes. The 'sort' option sorts keys alphabetically within each comment-delimited group, so your grouped structure is preserved while keys within each group become easier to scan.
We're building a tiny tool to keep .env files in sync across teammates and environments. Leave your email — no spam, just a single launch ping.