.env ↔ Azure Converter

Convert environment variables between .env and the Azure App Service JSON format

Mode: .env → Azure JSON
Convert
Variables: 0
Mode: Azure JSON → .env
Convert
Variables: 0
Mode: Update Azure with .env
How it works: Paste an existing Azure JSON file and a new .env. The system will update existing variables, add new variables from the .env, and keep variables that already exist in Azure.
Merge
New: 0
Updated: 0
Kept: 0
Total: 0 variables
How to use:
.env → Azure:
  1. Click the ".env → Azure JSON" tab
  2. Paste the contents of the .env file
  3. Choose the slot setting
  4. Click the convert button
  5. Copy or export the JSON
Azure → .env:
  1. Click the "Azure JSON → .env" tab
  2. Paste the Azure JSON
  3. Click the convert button
  4. Copy or export the .env file
  5. Use it in your project
Saved Files:

For privacy, the content you type is not sent to or saved on any server.

← All DarkBoxKit tools

How to convert environment variables to Azure and back

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.

  1. Choose the tab: .env → Azure JSON, Azure JSON → .env or Update Azure.
  2. Paste the content into the input box. The conversion happens as you type and also through the convert button.
  3. When converting to Azure, choose the slotSetting value (false by default). It defines whether the variable is "stuck" to the deployment slot.
  4. Check the variable counter, then use Copy or Export. The downloaded files are named azure-app-settings.json, .env and azure-app-settings-updated.json.

What each mode does

Practical examples

Precautions

Privacy and how it works

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.

Frequently asked questions

What does slotSetting mean?

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.

Does the JSON need a specific format?

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.

Are quotes in the value kept?

Quotes that wrap the whole value are removed in the conversion to JSON. Quotes inside the value remain.

What if the same key appears twice in the .env?

The last occurrence wins, because it overwrites the previous one.

Does it work for other clouds?

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.

Advertisement

Other free tools

Privacy PolicyTerms of UseAboutContactDarkBoxKit