Skip to content
Make maps

Spain map from your data

Paste a spreadsheet with one number per Spanish province, region or municipality, by INE code or by name, and see it as a color-coded map right away, with a legend. Rows that can’t be matched are listed so you can fix them.

Example: population on January 1, 2025 (INE, Spain’s municipal register). Replace it with your data.

Getting the names ready…

Breaks

Loading the map…

Data: your own · Boundaries: © IGN Spain (CC BY 4.0 ign.es), simplified · mapsfera.com

Names on the map

Paper

Orientation

PDF: in the print dialog, choose “Save as PDF”.

How to use it

Choose what your data is by: Spanish provinces, regions (autonomous communities) or municipalities (or US counties and states). Copy the cells from Excel or Google Sheets and paste them into the box, or upload a CSV. Two columns are enough, the place and a value; if there are more, you pick which is which. The first row can be a header or not.

The map updates as you type. Under your data you’ll see how many rows were matched, the ones matched despite a typo (with the name they were matched to, so you can check) and the ones that couldn’t be matched, with their line number and the reason.

Provinces, regions, municipalities and INE codes

Spain has 19 autonomous communities and cities (regions such as Andalusia, Catalonia or Madrid, plus Ceuta and Melilla), split into 52 provinces and cities, which are in turn made up of 8,132 municipalities (municipios), the local councils. Spanish statistics are published at all three levels, and the INE (Instituto Nacional de Estadística, Spain’s national statistics office) gives each one an official code.

The safest way to match is the INE code: 2 digits for regions and provinces and 5 for municipalities (the province plus three digits, so 08019 is Barcelona). It still works when a spreadsheet dropped the leading zero (“8019”), with the check digit some INE tables add (“080193”) or written before the name the way the INE does (“08019 Barcelona”).

With names, accents and capitals don’t matter. Both the common and the official names work, including the ones in Catalan, Basque or Galician (“Alacant/Alicante”, “València”, “Araba”), English names of regions (“Andalusia”, “Catalonia”), the article moved to the end as in INE tables (“Coruña, A”) and a typo or two. Some municipalities share a name with one in another province: for those, add a column with the province, put it in brackets (“Arroyomolinos (Madrid)”) or use the code.

How the colors work

By default, the breaks are rounded quantiles: each color holds about the same number of areas, and the break values are easy-to-read round numbers. You can also use equal intervals or type your own breaks. Colors go from light to dark, so the map still reads in grayscale or printed in black and white.

If your data has both negative and positive values (a change, a balance), the map is centered on 0: browns below and greens above. Areas with no data stay white, and the legend counts how many fall in each color.

Download and share

Province and region maps are drawn as print-ready maps you can download as PNG, SVG or an A4 or A3 PDF, with your title, the legend and the source. Municipality maps sit on a base map you can zoom into, with a PNG image, the top and bottom 10 and a CSV of your data with the official INE codes and names.

“Copy link” stores your data and settings in the page address (after the #, so it never leaves your browser), unless there’s too much of it.

Frequently asked questions

Is my data uploaded anywhere?

No. Everything runs in your browser and your data is never sent to a server. If you copy the link, the data travels inside the address itself.

What is an INE code?

The official code the Spanish statistics office gives each region, province and municipality. Provinces have two digits (28 is Madrid) and municipalities five, starting with their province’s (28079 is the city of Madrid).

Do I need INE codes?

No. Names work too, in Spanish, in the regional languages and, for regions, in English. Codes are just the most reliable option, because a few municipality names repeat across provinces.

What do I do with rows that aren’t matched?

They’re listed with their line number and the reason: a name that doesn’t exist, a code that isn’t a province or a name shared by two municipalities. Fix them in the box, or use the INE code, and the map updates on its own.

Does it read Spanish number formats?

Yes. “1,234.5” and the Spanish “1.234,5” both work: the decimal separator is worked out from the whole column, so a spreadsheet exported in Spain is read correctly.

Can I make a map by region instead?

Yes: choose “Spanish regions (autonomous communities)” and paste one row per region, by name (“Catalonia”, “Catalunya” or “Cataluña” all work) or by INE code (01 to 19).

Can I use the map in a report or on a website?

Yes. The boundaries are from Spain’s IGN (CC BY 4.0), which asks you to credit the source: the image already carries it at the bottom, next to “Data: your own”.

Related tools

All tools

Sources