.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/ja/env-json-converter" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>関連ツール