> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-35e3fd5a.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Import Export Environment Variables

You can import and export environment variables (collection and global) to share them across teams or back them up for later use.
<Tip> Bruno allows you to configure and export default environment for your collection. You can find more information about default environment in the [Default Environment](/variables/environment-variables#default-environment) page.</Tip>

## Accessing Import/Export Options

1. Go to the **Environments** section (top right corner).

<img src="https://mintcdn.com/bruno-a6972042-mintlify-35e3fd5a/ZGwxlTLthXyv8y6x/images/screenshots/get-started/import-export/import-export-env/env-action.webp?fit=max&auto=format&n=ZGwxlTLthXyv8y6x&q=85&s=9405ef8c8969b0837708f0f4ae6a01f3" alt="Environment Variables location" width="2480" height="1130" data-path="images/screenshots/get-started/import-export/import-export-env/env-action.webp" />

2. Click on **Configure** to access the environment settings.

3. You will see the **Import** and **Export** options in the left sidebar.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-35e3fd5a/ZGwxlTLthXyv8y6x/images/screenshots/get-started/import-export/import-export-env/environment-tab.webp?fit=max&auto=format&n=ZGwxlTLthXyv8y6x&q=85&s=c75be077e5a047cef687a86266f208d0" alt="Export Option" width="2480" height="1092" data-path="images/screenshots/get-started/import-export/import-export-env/environment-tab.webp" />

## Importing Environment Variables

The import feature accepts environment files in both **Bruno** and **Postman** formats. You can import multiple files at once.

### Steps to Import

1. Click on the **Import** button in the environment configuration screen.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-35e3fd5a/ZGwxlTLthXyv8y6x/images/screenshots/get-started/import-export/import-export-env/import-env.webp?fit=max&auto=format&n=ZGwxlTLthXyv8y6x&q=85&s=14edda4026d5c5ae500e6bc07756014b" alt="Export env" width="2480" height="1092" data-path="images/screenshots/get-started/import-export/import-export-env/import-env.webp" />

2. Drag and drop one or more JSON environment files, or click to browse and select them.
3. The environments will be added (global or collection, depending on which you're configuring). If none of the names conflict with existing environments and all files are valid, Bruno imports them immediately.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-35e3fd5a/ZGwxlTLthXyv8y6x/images/screenshots/get-started/import-export/import_collection/import-env.webp?fit=max&auto=format&n=ZGwxlTLthXyv8y6x&q=85&s=4f810128f1b1217d90bc5e82b103e172" alt="Import Environment" width="2622" height="1372" data-path="images/screenshots/get-started/import-export/import_collection/import-env.webp" />

### Resolving name conflicts

If an imported environment has the same name as an existing one, Bruno shows a review screen before importing. The screen groups environments into **Duplicates** and **New**, and lets you search the list and select which environments to import.

For each duplicate, choose one of two resolutions:

* **Import as copy** (default): Bruno creates the environment under a new name and keeps the existing environment untouched.
* **Replace existing**: Bruno overwrites the existing environment's variables with the imported ones.

You can also apply a resolution to all duplicates at once using the dropdown in the **Duplicates** group header. Click **Import** to finish.

<Note>
  If a file has an invalid or unsupported format, Bruno reports the error and continues importing the remaining valid files.
</Note>

## Exporting Environment Variables

### Steps to Export

1. Go to the **Environments** section.
2. Click on **Configure**.
3. Click the **Export** button.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-35e3fd5a/ZGwxlTLthXyv8y6x/images/screenshots/get-started/import-export/import-export-env/click-export-option.webp?fit=max&auto=format&n=ZGwxlTLthXyv8y6x&q=85&s=e8bec9952562fc09e5f067f4cbde5fd5" alt="Export env" width="2480" height="1092" data-path="images/screenshots/get-started/import-export/import-export-env/click-export-option.webp" />

4. If you have multiple environments, select which environments you want to export.
5. Choose the location where you want to save the exported JSON file.

<img src="https://mintcdn.com/bruno-a6972042-mintlify-35e3fd5a/IvJIs5GnQkuEuAHS/images/screenshots/variables/export-collection-env-location.webp?fit=max&auto=format&n=IvJIs5GnQkuEuAHS&q=85&s=22e2b6c66bbb83fa5840cba4bbfccd30" alt="Export Collection Environment Location" width="2618" height="1352" data-path="images/screenshots/variables/export-collection-env-location.webp" />

6. The environment variables will be saved as a JSON file that can be shared or backed up.

The export procedure is the same for both collection and global environment variables.

<Warning>
  Secret variables (variables marked as secret) will not be included in the exported JSON file for security reasons.
</Warning>
