Skip to content

منسّق ومدقق .env

نسّق ملفات .env ورتّبها وتحقق منها: اكتشف المفاتيح المكررة والأسماء الخاطئة والمسافات غير المقتبسة، وحوّلها إلى JSON أو .env.example. تبقى الأسرار على جهازك.

بلا رفع
# App
APP_NAME=ToolWand
app_env=production
DATABASE_URL=postgres://user:pass@localhost:5432/db
GREETING="hello world"
PORT=8080
API_KEY=sk-test-123
1BAD=oops
MULTI="line one\nline two"

9 variables · 2 errors · 5 warnings

  • ! Line 3: app_env: convention is UPPER_SNAKE_CASE
  • ! Line 3: app_env: spaces around = are not supported by every loader
  • ! Line 6: GREETING: value contains spaces but is not quoted
  • ! Line 7: PORT: duplicate (first on line 4); the last value wins
  • ! Line 8: API_KEY: "export" prefix removed
  • ✕ Line 9: 1BAD: invalid name (letters, digits, _ only; cannot start with a digit)
  • ✕ Line 10: Not a KEY=value line: "not a valid line"

كيفية استخدام منسّق ومدقق .env

  1. 1افتح منسّق ومدقق .env. يعمل في متصفحك دون تسجيل.
  2. 2اكتب بياناتك أو الصقها.
  3. 3انسخ النتيجة أو نزّلها.

أسئلة

Are my secrets safe?

Yes. Everything runs in your browser — nothing is uploaded or stored.

What does .env.example do?

It keeps every key but empties the values, so you can commit it to show which variables the app needs.

Which value wins for duplicate keys?

Most loaders (like dotenv) keep the last one. Dedupe keeps the last value too.

أدوات أخرى