# Exporting data

With Builder, you can easily export your map data as CSV file(s). This functionality respects all the filters you set using the feature selection tool, widgets, or SQL parameters. The resulting CSV file includes detailed attributes and, if applicable, a geometry column.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-208d784c55bdbf1adef86ef9d814527a8d6d8705%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## **Exporting data as an Editor**

The export viewport data button is located as a quick action next to the Share button, at the right top corner. It should be enabled as long as there are exportable data sources in Builder.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-371cd1578ca5ace9e968096e5e306e14c776b991%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

**How to export:**

1. Click the 'Export data' button. This considers the current viewport extent and any applied filters.
2. In the export window, select the layers you wish to export.
3. Each selected layer generates a job in the activity panel. You can monitor export progress here while continuing your work.
4. Once an export job is complete, click on the layer in the activity panel to download the CSV file(s).

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-a745405d5b1affe9d5465d74ff8c18890f5f39d5%2Fexport1.gif?alt=media" alt=""><figcaption></figcaption></figure>

Upon reviewal the output CSV file, you can visualize the detailed attributes included the geometry column if applicable. The output are the features within the viewport extent considering the filters if applicable for feature selection tool, widgets and parameters.

{% hint style="info" %}
**Bucket considerations**

For **SaaS**, CARTO automatically manages buckets and data exports. Be aware that for exports from Snowflake and Redshift sources, the AWS cluster needs to match the organization's CARTO SaaS region. Check your CARTO SaaS region in [Settings](https://docs.carto.com/carto-user-manual/settings).

For **Self-Hosted** deployments, a bucket owned by the customer needs to be configured. Please refer to [this documentation](https://docs.carto.com/carto-self-hosted/guides/guides/configure-your-own-buckets) for more information.
{% endhint %}

## **Enabling export for Viewers**

To allow viewers of your map to export data:

1. Navigate to the 'Map settings for viewers' button <img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-7616aa4f1edd84ce1e86927a4392861aff8cf939%2Fimage.png?alt=media" alt="" data-size="line"> located next to the 'Preview' button.
2. Turn on 'Export viewport data', to enable viewers using the export viewport data functionality.
3. Publish your changes.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-72aa98276330642e336347e5519d0f216a9ec966%2Ftest.gif?alt=media" alt=""><figcaption></figcaption></figure>

## **Exporting data as Viewer**

Viewers can export data following these steps:

1. Click the export icon <img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-b28fa0c8b8f877836d237187dec07ab73f7a4027%2Fimage.png?alt=media" alt="" data-size="line">located at the top left corner.
2. Choose the layer(s) to download from the modal window.
3. Each layer's export creates a job for tracking. Monitor the progress in the dedicated section.
4. Upon completion, click on the layer export job and download the CSV file(s).

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-17ff431fedf2ed43a0e20a423e8b6271d4449888%2Fexport_3.gif?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
**Export limitations**

* There’s a limit of **8 layers per export** process.
* **Pre-generated tileset and raster** data sources don’t support export.
* For **RDS for PostgreSQL** data sources, make sure you have the [S3 bucket integration](https://docs.carto.com/carto-user-manual/settings/advanced-settings/configuring-s3-bucket-integration-for-rds-for-postgresql-exports-in-builder) set up, as it's necessary for export.
* If you're using **non-RDS for PostgreSQL** data sources, keep in mind that export functionality isn't supported.
* Exporting viewport data isn’t available for **Databricks** data sources.
* Exporting viewport data is currently limited to **Snowflake and Redshift** data sources within AWS. This feature is not supported for Snowflake and Redshift hosted in GCP or Azure.
* Exporting viewport data isn't available for **Oracle** data sources.
  {% endhint %}

{% hint style="warning" %}
Exporting data applies only to layers listed in the **Map Layer List**. If you want to allow exporting a layer’s data, ensure that the layer is included in the **Map Layer List**.
{% endhint %}

{% hint style="info" %}
Admins can disable exporting data from Builder maps for the whole organization from the [**Governance**](https://docs.carto.com/carto-user-manual/settings/organization-governance) settings.
{% endhint %}
