แปลงไฟล์ .env เป็น JSON และ JSON กลับเป็น .env ในทั้งสองทิศทาง ทั้งหมดในเบราว์เซอร์ของคุณ
วิธีใช้ ENV / JSON
เลือกทิศทาง: .env เป็น JSON หรือ JSON เป็น .env
วาง .env contents หรือ JSON object ของคุณ
คัดลอกผลลัพธ์ หรือ swap เพื่อแปลงกลับ
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.
คำถามที่พบบ่อย
บรรทัดความคิดเห็นที่ขึ้นต้นด้วย # และบรรทัดว่างถูกละเว้น prefix export ที่เป็นเลือกถูกลบ และเครื่องหมายคำพูดรอบค่าถูกลบออก
เมื่อเขียน .env ค่าที่มีช่องว่างหรืออักขระพิเศษจะถูกห่อด้วยเครื่องหมายคำพูดคู่เพื่อให้แยกวิเคราะห์ได้อย่างถูกต้อง
ไม่ การแปลงทำงานทั้งหมดในเบราว์เซอร์ของคุณ ดังนั้นตัวแปรสภาพแวดล้อมของคุณจะไม่ออกจากอุปกรณ์
ฝังเครื่องมือนี้
เพิ่มเครื่องมือนี้ลงในเว็บไซต์ของคุณเอง คัดลอกสคริปต์ด้านล่าง โดยจะอัปเดตให้เป็นปัจจุบันโดยอัตโนมัติ
<iframe src="https://monu.tools/embed/th/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 ในเบราว์เซอร์ของคุณ
Hash รหัสผ่านด้วย bcrypt และตรวจสอบรหัสผ่านกับ bcrypt hash ทั้งหมดในเบราว์เซอร์ของคุณ
แปลงคำสั่ง curl เป็นโค้ด JavaScript fetch ที่เทียบเท่า ทั้งหมดในเบราว์เซอร์ของคุณ
แปลง JSON เป็น TOML และ TOML กลับเป็น JSON ในทั้งสองทิศทาง ทั้งหมดในเบราว์เซอร์ของคุณ