حوّل ملف .env إلى JSON و JSON إلى .env، في الاتجاهين، بالكامل داخل متصفحك.
كيفية استخدام ENV / JSON
اختر اتجاها: .env إلى JSON أو JSON إلى .env.
الصق محتويات .env الخاصة بك أو كائن JSON.
انسخ النتيجة، أو بدّل للتحويل عكسيا.
A two-way converter between .env files and JSON. Turn a .env file into a JSON object to inspect or edit it, or turn JSON back into a valid .env file, handling comments, the export prefix and quoted values.
Converting to JSON is useful for bulk-editing config, diffing two environments, or feeding settings into a tool that expects JSON; converting back produces a ready-to-use .env.
Because .env files hold secrets, privacy matters: the conversion runs entirely in your browser, so your environment variables and any keys in them never leave your device.
A .env file is the simple KEY=value list that apps load to configure themselves, database URLs, API keys, feature flags, kept out of the code and out of version control. It is the standard way to separate configuration from an application.
When reading a .env, comment lines starting with # and blank lines are ignored, an optional export prefix is removed, and surrounding quotes are stripped from values, so the JSON you get is clean and exactly the key-value pairs.
When writing a .env, values that contain spaces or special characters are wrapped in double quotes so they parse correctly in a shell or a dotenv loader, which avoids a common source of broken configuration.
الأسئلة الشائعة
تُتجاهل أسطر التعليقات التي تبدأ بـ # والأسطر الفارغة، وتُزال بادئة export الاختيارية، وتُجرّد علامات الاقتباس المحيطة من القيم.
عند كتابة .env، تُحاط القيم التي تحتوي على مسافات أو محارف خاصة بعلامات اقتباس مزدوجة لتُحلَّل بشكل صحيح.
لا. يجري التحويل بالكامل داخل متصفحك، لذا لا تغادر متغيرات البيئة جهازك أبدا.
ضمّن هذه الأداة
أضف هذه الأداة إلى موقعك الخاص. انسخ المقتطف أدناه، ويبقى محدّثاً تلقائياً.
<iframe src="https://monu.tools/embed/ar/env-json-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>أدوات ذات صلة
ولّد HMAC لرسالة ومفتاح سري باستخدام SHA-1 أو SHA-256 أو SHA-384 أو SHA-512، داخل متصفحك.
جزّئ كلمة مرور باستخدام bcrypt وتحقق من كلمة مرور مقابل تجزئة bcrypt، بالكامل داخل متصفحك.
حوّل أمر curl إلى شيفرة JavaScript fetch مكافئة، بالكامل داخل متصفحك.
حوّل JSON إلى TOML و TOML إلى JSON، في الاتجاهين، بالكامل داخل متصفحك.