# 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="/files/cdh6MvGbCNnYNxp2Q8yH" 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="/files/wytpDmq9RymdimNZy1v4" 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="/files/pYyDXD91gpOYFemMTwTA" 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](/carto-user-manual/settings.md).

For **Self-Hosted** deployments, a bucket owned by the customer needs to be configured. Please refer to [this documentation](/carto-self-hosted/guides/guides/configure-your-own-buckets.md) 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="/files/oOYgk7RLm74QqNc5hpgr" 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="/files/FDVaQ7Qgu6M3aLL3Jy1X" alt=""><figcaption></figcaption></figure>

## **Exporting data as Viewer**

Viewers can export data following these steps:

1. Click the export icon <img src="/files/Wex6dy9ooGm0QWRStZgn" 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="/files/vjESDO2SgJCPFzT4RjVu" 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](/carto-user-manual/settings/advanced-settings/configuring-s3-bucket-integration-for-rds-for-postgresql-exports-in-builder.md) 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**](/carto-user-manual/settings/organization-governance.md) settings.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.carto.com/carto-user-manual/maps/exporting-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
