This content applies to a previous version of CARTO
In October 2021 we released a new version of our platform. You can find the latest documentation at docs.carto.com
Back to Help Center
Working with Data
Accessing Your CARTO Database from External Applications
Learn how to use the Direct SQL Connection feature to connect external applications like QGIS, Tableau, and Power BI to your CARTO PostgreSQL database.
CARTO Functions
SQL functions to geocode, create custom grids, and get statistical data in CARTO using PL/pgSQL.
Cleaning Data for Geocoding
Best practices for cleaning and formatting your data before geocoding in CARTO.
Clusters of Data Aggregations in CARTO.js
Learn how to create clusters using CARTO's smart backend aggregation in a CARTO.js application.
Creating Isolines
Learn how to create isolines (contour lines) in CARTO using Builder or the Data Services API.
Data Types
Learn about the supported data types in CARTO including geometry, number, string, date/time, and advanced types.
Editor Dataset Basics
Learn how to connect, sync, manage, and visualize datasets in the CARTO Editor.
Editor FAQs - Datasets and Data
Frequently asked questions about datasets, data formats, geocoding, and data management in the CARTO Editor.
Export OpenStreetMap Data with Overpass Turbo
Learn how to query and extract specific OpenStreetMap data using Overpass Turbo for use in CARTO.
FAQs - PostgreSQL and PostGIS
Frequently asked questions about PostgreSQL expressions and PostGIS functions with CARTO.
Geocoding Country Names with Row Limitations
Workaround for geocoding country name datasets that exceed CARTO's 500-row limitation.
Geocoding Types Explained
Learn about the seven different geocoding types available in CARTO for converting addresses to geographic coordinates.
Geocoding Your Data
Learn how to geocode your data in CARTO, including different geocoder types, credit consumption, and provider details.
Helpful Tools
Tools built by CARTO teammates for working with data, including the Batch API UI and CDB Manager.
How to Add Indexes to CARTO Datasets
Learn how to add PostgreSQL indexes to table columns to improve filtering and grouping performance in CARTO.
How to Apply Routing Functions in CARTO
Learn how to generate routes from origins to destinations using CARTO Data Services API routing functions.
How to Assign a Column Value from a Polygon to a Point
Learn how to assign polygon attribute values to intersecting points using PostGIS ST_Intersects.
How to Change Sync Table Data with SQL
Learn how to modify sync table data using Import API and PostgreSQL stored procedures in CARTO.
How to Change the SQL Query of a Layer Data Source
Learn how to access SQL in Builder layers to query your data and work around analysis chain limitations.
How to Combine String Values and Convert Them into a Date
Learn how to combine several string column values and convert them into a date using PostgreSQL's to_timestamp function.
How to Convert Arrays to JSON Objects
Learn how to convert arrays to JSON objects to display aggregated data in Builder popups using PostgreSQL.
How to Convert Date Data into a String or Numeric Value
Learn how to extract day, month, or year values from date columns in CARTO using PostgreSQL functions.
How to Convert Straight Lines to Great Circles
Learn how to transform straight lines into great circles using PostGIS ST_Segmentize to emulate flight routes.
How to Convert UTM Coordinates to Lat/Long Values
Learn how to convert UTM X/Y coordinates to latitude/longitude using PostGIS ST_Transform in CARTO.
How to Create Straight Lines Between Points
Learn how to use PostGIS ST_MakeLine to connect geographic points with straight lines in CARTO.
How to Find the Size of a Dataset
Learn how to use PostgreSQL to find the exact size of a dataset in your CARTO account, including indexes and TOAST tables.
How to Force Data Types When Importing CSV Files
Learn how to use .csvt files to force data types on your CSV imports into CARTO.
How to Generate a Column for 24-Hour or 7-Day Builder Histograms
Learn how to convert date/timestamp values into numeric representations for histogram widgets in CARTO Builder.
How to Generate a Fake cartodb_id
Learn how to generate a fake cartodb_id column using PostgreSQL row_number() for nested queries in CARTO.
How to Give Attribution
Learn how to properly attribute data sources, basemaps, and technologies when creating maps in CARTO.
How to Import an Unsupported CSV/Spreadsheet File
Learn how to format your CSV or spreadsheet file with proper encoding to successfully import it into CARTO.
How to Insert Geometries to a CARTO Dataset in a CARTO.js Application
Learn how to insert geometries to a CARTO dataset by drawing them in a CARTO.js application using Leaflet.Draw.
How to Normalize Data for Animated Visualizations
Learn how to generate normalized column values for animated (Torque) visualizations in CARTO.
How to Normalize Numeric Values in Builder
Learn how to normalize numeric data by area using PostGIS ST_Area for meaningful polygon visualizations in CARTO.
How to Round Decimal Values in Builder
Learn how to round numeric columns to a specific number of decimal places using SQL in CARTO Builder.
How to Select All Columns Except Some
Learn how to dynamically select all column names in a CARTO dataset except specific ones using SQL.
How to Subscribe to Public and Premium Datasets
Learn how to subscribe to public and premium datasets through CARTO's Spatial Data Catalog.
How to Turn Off Import Guessing
Learn how to turn off dataset auto-formatting and type/content guessing when importing data into CARTO.
How to Use the CARTO SQL API from a CARTO.js or CARTO-VL Application
Learn how to make calls to the CARTO SQL API using JavaScript Fetch API, Axios, or jQuery Ajax.
How to Work with NULL Values in CARTO Datasets
Learn how to select, populate, or delete NULL values in CARTO datasets using PostgreSQL functions.
Import Limits and How to Handle Large Files
Learn how to split and merge large files to work around CARTO's import size and row limits.
Importing OpenStreetMap Data
Learn how to export and import OpenStreetMap data into CARTO for use in your maps.
Introduction to Databases in CARTO
Learn how to query and work with SQL and PostGIS in CARTO using PostgreSQL and the Franchise SQL client.
Introduction to the Data Observatory
Overview of CARTO's Data Observatory, a spatial data platform with thousands of datasets from public and premium sources.
Manage Your Subscriptions
Learn how to manage your public and premium dataset subscriptions in the CARTO Data Observatory.
Managing Your Data with CARTO Editor
Learn how to geocode data, run SQL queries, merge datasets, and export data with the CARTO Editor.
Manipulating Your Data with CARTO Editor
Learn how to manipulate data in CARTO Editor, including filtering by region, hiding Named Map sublayers, and creating password-protected maps.
Manually Batching Your SQL Jobs
Learn how to split large SQL UPDATE queries into batches to avoid timeout errors in CARTO.
Open in CARTO
Learn how to add an Open in CARTO button to your website for easy data sharing and visualization.
PostgreSQL Stored Procedures
Learn how to create and use PostgreSQL stored procedures (PL/pgSQL functions) in CARTO, including triggers, control structures, and PostGIS integration.
Preparing and Formatting Data
Tips for preparing and formatting your data before importing to CARTO, including geocoding, encoding, projections, and shapefiles.
Spatial Data Catalog
Explore CARTO's Spatial Data Catalog to discover thousands of spatial datasets through the Data Observatory.
Tips for Advanced Analysis
Learn how to work with bounding boxes, spatial joins, distance sorting, and common table expressions in CARTO SQL.
Tips for Geospatial Analysis
Learn how to work with geometries, centroids, buffers, areas, spatial intersections, and distance calculations in CARTO.
Using Overpass Turbo to Create CARTO Sync Tables
Learn how to use Overpass Turbo to create a CARTO Sync Table and connect real time OSM data.
Using Routes
Learn how to calculate routes between two points with different transport modes in CARTO.
What is a CARTO Dataset?
Understand how CARTO processes PostgreSQL tables into datasets with indexed columns for mapping and analysis.
