Convert environment variables between .env and the Azure App Service JSON format
.env fileFor privacy, the content you type is not sent to or saved on any server.
In Azure App Service, application settings can be edited in bulk as a JSON list of objects with name, value and slotSetting. In local development, the same variables live in a .env file with KEY=value lines. This tool converts between the two formats and can also merge a new .env into an existing configuration.
slotSetting value (false by default). It defines whether the variable is "stuck" to the deployment slot.azure-app-settings.json, .env and azure-app-settings-updated.json.#), splits key and value at the first equals sign and removes single or double quotes wrapping the value.NAME=value lines. Variables marked as slot settings get a comment saying so.The conversion and the merge are done entirely in your browser, with JavaScript: what you type or paste is not sent to or saved on any server. Even so, since .env files and Azure settings often contain secrets, prefer using test values or clear the content when you are done, especially on shared computers. The page loads Bootstrap and Font Awesome from public CDNs, which is normal for loading styles and icons. More information in the Privacy Policy.
When it is true, the variable is pinned to the deployment slot (such as "staging") and does not follow the app when slots are swapped. When false, it follows the app in the swap.
Yes: a list of objects with name and value, and optionally slotSetting. This is the format of the Azure advanced settings editor. If the format is wrong, the tool shows an error.
Quotes that wrap the whole value are removed in the conversion to JSON. Quotes inside the value remain.
The last occurrence wins, because it overwrites the previous one.
The output format is that of Azure App Service. For other services, the Azure JSON → .env mode can still help generate a generic .env from a list.