How to import markers into locator maps

This article explains how to import point, area, and line markers. If you want to add markers without importing, visit "How to add and delete point markers" and "How to add regions as area markers."

You can import point, area, and line markers to Datawrapper locator maps. This article explains the requirements for those files, and how to import them.

Prerequisites for files

You can successfully import a file into a Datawrapper locator map if it:

  • Is a GeoJSON, CSV, GPX or KML file.
  • Is smaller than 2MB. You can upload files up to 10MB in size, but the markers they result in (after Datawrapper removes e.g. the CSV columns irrelevant to the marker) plus the existing markers on the map have to be less than 2MB. The larger your file, the longer it takes for your map to load for both viewing and editing. Try to keep it as small as possible.
  • Includes coordinates.
  • Has fewer than 500 point markers. Your map can only have 500 point markers in total.
  • Uses the WGS-84 coordinate system (EPSG:4326), if you import GeoJSON, GPX or KML.
  • Has fewer than 20 differently styled features. Learn how to style your markers before importing them to Datawrapper here.

You can import lines, areas, and points together in one geo data file.

You can also customize your markers before importing them, but it's not necessary. Your import file can be really simple. Here's an example of a valid CSV:

lon,lat
6.725654,7.202151
12.810290,11.7662530
-0.8427773,12.839212

Importing files into Datawrapper

There are three ways to get your files into your locator map. Make sure you're in step 1: Add markers for all of them.

The first option is to simply drag them in there, like in the video above.

The second option is to select which kind of marker you want to add – point, area, or line – then click on the little upload button in the bottom right corner and choose the file from your computer.

The third option is to paste data into the text field that says Paste data here or drag it onto the page. You can paste the content of any file specific in the beginning of the article. You can even paste data directly from Excel or Google Sheets:

How to keep your map loading quickly

If you upload GeoJSONs that are very big or that have many different markers, your map will be slower for both you (in the editing process) and your readers (when they view the website where you embedded the map).

There are a few ways to make sure your map stays performant:

  • Group your markers together to reduce their number. Learn more in our article "How to group area markers before importing them."
  • Style multiple lines or areas in your geo file in the same way before importing them to Datawrapper. If you do so, they get imported as one marker. Learn more in our article "How to style your markers before importing them to Datawrapper."
  • Reduce the file size by simplifying your geometry. To do so, go to mapshaper.org, upload your GeoJSON, then click the "Simplify" button in the upper right, followed by "Apply." Drag the slider at the top as far to the right as you can while the geometry still looks good enough. The displayed percentage tells you how much of the data size is left. Typically you can go down to 10-15% without noticing a big difference. When you're done, click "Export," select GeoJSON, and re-upload the data to Datawrapper.
  • Reduce the file size by removing information. When you import a GeoJSON, all features in it are imported and count toward your map size, so it's worth removing any properties you don't need beforehand. (When importing point markers via CSV, Datawrapper only uses the relevant columns – lat/lon, title, tooltip, etc. – and discards the rest, so there's little point in cleaning up.)

Frequently Asked Questions

Last updated on May 6th, 2026