XYZ tile URLs for QGIS: 27 free basemaps, checked and ready to load
A checked list of XYZ tile URLs for QGIS: OpenStreetMap styles, Esri imagery and overlays, Sentinel-2 cloudless, and national basemaps for the US, the Netherlands, France, Austria, Switzerland and Germany. Each has its max zoom, attribution and terms, plus a connections file that adds all 27 at once and an open satellite hybrid.
- Level
- Beginner
- Tested with
- Python 3.12
- Source code
- Download scripts
Free XYZ tile URLs for QGIS
In the Browser panel, right-click XYZ Tiles › New Connection…, paste a URL, set the max zoom and click OK. All 27 URLs on this page returned HTTP 200 and rendered in QGIS 3.40.12 on 24 November 2026.
-
Satellite: Esri World Imagery
https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}Max zoom 19. Credit "Esri, Vantor, Earthstar Geographics, and the GIS User Community". Esri terms; no offline export.
-
Roads overlay for a hybrid: Esri Transportation
https://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x}Transparent roads to put over imagery. Add Esri Boundaries and Places on top for place names.
-
Topographic: OpenTopoMap
https://a.tile.opentopomap.org/{z}/{x}/{y}.pngMax zoom 17. CC-BY-SA; commercial use allowed. Credit OpenStreetMap contributors, SRTM and OpenTopoMap.
-
Satellite, open licence: Sentinel-2 cloudless 2016 (EOX)
https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless_3857/default/g/{z}/{y}/{x}.jpgMax zoom 14 (10 m pixels). CC BY 4.0, so fine for commercial maps with the EOX credit.
Key takeaways
- Every URL here was requested and rendered in QGIS 3.40.12 on 24 November 2026: 27 of 27 returned HTTP 200 and drew without errors.
- A free 'hybrid' satellite map needs no Google URL. Stack Esri World Imagery, Esri Transportation and Esri Boundaries and Places, in that order from the bottom.
- Free to load is not the same as free to use. OSM France and HOT tiles are for non-profit use only, later Sentinel-2 cloudless years are non-commercial, and Esri's layers come under Esri's licence. Check the terms column before you publish a map.
- Esri, EOX and the Austrian and German services put {y} before {x}; OpenStreetMap, PDOK and swisstopo put {x} first. Copy each URL exactly as it is.
- One XML file loads all 27 connections through Browser › XYZ Tiles › Load Connections.
Before you start
- QGIS 3.34 or later (tested with QGIS 3.40.12 LTR)
- For the optional script: the Python that ships with QGIS
Short answer: QGIS loads web basemaps as XYZ Tiles connections. Right-click XYZ Tiles in the Browser panel, choose New Connection…, paste one of the URLs below, set its maximum zoom and click OK. Or download our connections file and load all 27 at once.
There are plenty of lists of XYZ URLs online. Many are copied from each other and are years old: some links are dead, some use placeholders QGIS doesn’t understand, and very few tell you whether you’re allowed to use the tiles. So we checked every URL here ourselves. A short PyQGIS script requested one tile from each service, drew the same view in QGIS, wrote all the connections to a file and loaded that file back into a clean QGIS profile. On 24 November 2026 all 27 returned HTTP 200 and drew without errors.
Each table gives the URL to paste, the maximum zoom, the credit to show on your map and the terms that matter. Google Maps is covered separately in How to add Google Maps and OpenStreetMap layers to QGIS, because the only compliant route needs a billed API key.
How to add an XYZ tile URL in QGIS
- Open the Browser panel (View › Panels › Browser if it’s hidden).
- Right-click XYZ Tiles and choose New Connection…. Layer › Data Source Manager › XYZ (Ctrl+L) opens the same dialogue.
- Type a Name, paste the URL, tick Max. Zoom Level and enter the value from the table.
- Click OK, then double-click the new connection to add it to the map.
- Add the provider’s credit with View › Decorations › Copyright Label, and put it in every print layout you export.
Copy the URL exactly. QGIS replaces only {z}, {x} and {y} (and {-y} for services that count rows from the bottom). The order of {x} and {y} is part of each provider’s address. Esri, EOX, basemap.at and BKG put the row first, so swapping them, or adding a $ in front of the braces as some older lists do, gets you blank tiles or HTTP 400 errors.
If you leave the maximum zoom at 18 for a service that stops at 14, QGIS asks for tiles that don’t exist and the map goes blank as you zoom in. With the right value, QGIS enlarges the deepest tiles instead, so you always see something.
Load all 27 basemaps at once
Rather than adding them one by one, download technicalgis-xyz-connections.xml from the code page. Then:
- In the Browser panel, right-click XYZ Tiles and choose Load Connections….
- Pick the XML file. QGIS lists the 27 connections; click Select All, then Import.
- If you already have a connection with the same name, such as the OpenStreetMap one that ships with QGIS, QGIS asks whether to overwrite it. Either answer is fine: the URL is the same.
The script that wrote and tested the file is xyz_tile_catalogue.py. It runs with the Python that comes with QGIS. Its output ends:
Esri hybrid (imagery + roads + labels) render_errors=0wrote technicalgis-xyz-connections.xml with 27 connectionsloaded into a clean profile: 27 XYZ connections, all 27 present=True Esri World Imagery: url=https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}Global basemaps
These cover the whole world. The contact sheet shows all of them over the same view of Keswick and Derwentwater, so you can compare them side by side.
OpenStreetMap styles
| Basemap | XYZ URL | Max zoom | Credit and terms |
|---|---|---|---|
| OpenStreetMap | https://tile.openstreetmap.org/{z}/{x}/{y}.png |
19 | “© OpenStreetMap contributors”. Already in QGIS. The tile usage policy allows normal interactive use; no bulk downloading, prefetching or offline use. |
| OpenStreetMap France | https://a.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png |
20 | “© OpenStreetMap contributors, tiles by OpenStreetMap France”. OSM France’s conditions: free for public, non-profit use at moderate traffic with visible credit. No commercial or intranet use. |
| Humanitarian OSM (HOT) | https://a.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png |
20 | “© OpenStreetMap contributors, style by the Humanitarian OpenStreetMap Team, hosted by OpenStreetMap France”. Same OSM France conditions. |
| CyclOSM | https://a.tile-cyclosm.openstreetmap.fr/cyclosm/{z}/{x}/{y}.png |
20 | “CyclOSM, map data © OpenStreetMap contributors”. Hosted by OSM France, so treat it as non-profit use only. |
| OpenTopoMap | https://a.tile.opentopomap.org/{z}/{x}/{y}.png |
17 | “Map data: © OpenStreetMap contributors, SRTM. Map display: © OpenTopoMap (CC-BY-SA)”. Commercial use is allowed; no mass downloads. |
If you need OpenStreetMap tiles for commercial work or heavy use, the OSM servers above aren’t the place for it. Use a commercial OSM tile provider (several are listed in the next section) or build your own tiles, as in our PMTiles vector tiles tutorial.
Esri basemaps and overlays
| Basemap | XYZ URL | Max zoom | Credit |
|---|---|---|---|
| Esri World Imagery | https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x} |
19 | Esri, Vantor, Earthstar Geographics, and the GIS User Community |
| Esri World Street Map | https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x} |
19 | Sources: Esri, HERE, Garmin, USGS, Intermap, INCREMENT P, NRCan, Esri Japan, METI, Esri China (Hong Kong), Esri Korea, Esri (Thailand), NGCC, © OpenStreetMap contributors, and the GIS User Community |
| Esri World Topographic Map | https://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x} |
19 | Sources: Esri, HERE, Garmin, Intermap, increment P Corp., GEBCO, USGS, FAO, NPS, NRCAN, GeoBase, IGN, Kadaster NL, Ordnance Survey, Esri Japan, METI, Esri China (Hong Kong), © OpenStreetMap contributors, and the GIS User Community |
| Esri World Hillshade | https://server.arcgisonline.com/ArcGIS/rest/services/Elevation/World_Hillshade/MapServer/tile/{z}/{y}/{x} |
16 | Sources: Esri, Vantor, Airbus DS, USGS, NGA, NASA, CGIAR, N Robinson, NCEAS, NLS, OS, NMA, Geodatastyrelsen, Rijkswaterstaat, GSA, Geoland, FEMA, Intermap, and the GIS user community |
| Esri Light Gray Canvas | https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer/tile/{z}/{y}/{x} |
16 | Esri, HERE, Garmin, © OpenStreetMap contributors, and the GIS user community |
| Esri Dark Gray Canvas | https://server.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x} |
16 | Esri, HERE, Garmin, © OpenStreetMap contributors, and the GIS user community |
| Esri Transportation (roads overlay) | https://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Transportation/MapServer/tile/{z}/{y}/{x} |
19 | Esri, HERE, Garmin, © OpenStreetMap contributors |
| Esri Boundaries and Places (labels overlay) | https://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer/tile/{z}/{y}/{x} |
19 | Esri, HERE, Garmin, © OpenStreetMap contributors, and the GIS user community |
The credits are the copyright text each service publishes, read on 24 November 2026. Esri licenses these layers under the Esri Master License Agreement, and its item pages say they are not intended for exporting tiles for offline use. Esri asks for the credit in the lower right of the map. For commercial products, read Esri’s terms first: they may require an ArcGIS account.
Sentinel-2 cloudless and EOX
| Basemap | XYZ URL | Max zoom | Credit and terms |
|---|---|---|---|
| Sentinel-2 cloudless 2016 | https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless_3857/default/g/{z}/{y}/{x}.jpg |
14 | “EOxCloudless https://cloudless.eox.at by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2016)”. CC BY 4.0: commercial use allowed. |
| Sentinel-2 cloudless 2025 | https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless-2025_3857/default/g/{z}/{y}/{x}.jpg |
14 | “EOxCloudless https://cloudless.eox.at by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2025)”. CC BY-NC-SA 4.0: non-commercial only. |
| EOX Terrain Light | https://tiles.maps.eox.at/wmts/1.0.0/terrain-light_3857/default/g/{z}/{y}/{x}.jpg |
16 | “Terrain Light: Data © OpenStreetMap contributors and others, Rendering © EOX”, with a link to maps.eox.at. EOX::Maps are free to use with that credit. |
Sentinel-2 cloudless is a 10 m mosaic, so at zoom 14 you see fields and towns but not individual buildings. The years 2018 to 2025 swap s2cloudless_3857 for s2cloudless-<year>_3857 and are all CC BY-NC-SA 4.0; only 2016 and 2017 are CC BY 4.0. EOX applies rate limits to its free servers when they get busy.
A free satellite hybrid, without Google
A “Google Hybrid” layer is just satellite imagery with roads and place names on top. You can build the same thing from Esri’s free layers, with documented URLs:
- Add Esri World Imagery.
- Add Esri Transportation (roads) above it.
- Add Esri Boundaries and Places (labels) at the top.
The two overlays have transparent backgrounds, so the imagery shows through. That’s the map in the first screenshot and the last panel of the contact sheet. Save the three layers as a group, or save a project, and you have your hybrid in one click. The same overlays work over Sentinel-2 cloudless if you need an openly licensed image underneath.
National basemaps
National mapping agencies publish some of the best basemaps there are, often under open licences and with aerial photography far sharper than the global layers. These six countries serve them as XYZ-compatible URLs.
| Basemap | XYZ URL | Max zoom | Credit and licence |
|---|---|---|---|
| USGS Imagery Only (US) | https://basemap.nationalmap.gov/arcgis/rest/services/USGSImageryOnly/MapServer/tile/{z}/{y}/{x} |
16 | “USDA, USGS The National Map: Orthoimagery”. Public domain. |
| USGS Topo (US) | https://basemap.nationalmap.gov/arcgis/rest/services/USGSTopo/MapServer/tile/{z}/{y}/{x} |
16 | “USGS The National Map”. Public domain. |
| PDOK Luchtfoto (Netherlands) | https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_orthoHR/EPSG:3857/{z}/{x}/{y}.jpeg |
19 | “Beeldmateriaal Nederland”. CC BY 4.0. |
| PDOK BRT Achtergrondkaart (Netherlands) | https://service.pdok.nl/brt/achtergrondkaart/wmts/v2_0/standaard/EPSG:3857/{z}/{x}/{y}.png |
19 | “Kadaster”. CC0. |
| IGN Orthophotos (France) | https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=ORTHOIMAGERY.ORTHOPHOTOS&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/jpeg |
19 | “IGN – BD ORTHO”. Licence Ouverte (Etalab), compatible with CC BY. |
| IGN Plan IGN v2 (France) | https://data.geopf.fr/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}&FORMAT=image/png |
19 | “IGN – Plan IGN”. Licence Ouverte (Etalab). |
| basemap.at (Austria) | https://mapsneu.wien.gv.at/basemap/geolandbasemap/normal/google3857/{z}/{y}/{x}.png |
19 | “Data source: basemap.at”, linked to basemap.at. CC BY 4.0, commercial use allowed. |
| basemap.at Orthofoto (Austria) | https://mapsneu.wien.gv.at/basemap/bmaporthofoto30cm/normal/google3857/{z}/{y}/{x}.jpeg |
19 | “Data source: basemap.at”. CC BY 4.0. |
| swisstopo SWISSIMAGE (Switzerland) | https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissimage/default/current/3857/{z}/{x}/{y}.jpeg |
20 | “© swisstopo”. Free geodata: any use, including commercial, with the credit. |
| swisstopo national map (Switzerland) | https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/3857/{z}/{x}/{y}.jpeg |
18 | “© swisstopo”. Same terms. |
| BKG TopPlusOpen (Germany) | https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web/default/WEBMERCATOR/{z}/{y}/{x}.png |
18 | “© BKG (2026) dl-de/by-2-0”, with a link to the TopPlusOpen data sources. Replace 2026 with the year you last loaded the tiles. |
The IGN URLs are WMTS requests, but because the Géoplateforme accepts the tile numbers as query parameters, QGIS treats them as ordinary XYZ templates. Each national service covers only its own country and draws nothing elsewhere.
For more national services, including the WMS and WMTS endpoints these come from, see the country pages in our GIS data sources directory, for example the Netherlands, France, Switzerland and United States. The aerial imagery atlas maps which countries have open orthophotos.
Basemaps that need a free or paid key
These aren’t in the connections file because each one needs your own key in the URL. Sign up, then replace the key placeholder with your key.
| Provider | URL template | Free allowance and terms | Credit |
|---|---|---|---|
| CARTO (Voyager, Positron, Dark Matter) | https://basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png?key=YOUR_KEY (or light_all, dark_all) |
A key has been required since 25 September 2026; get one free at carto.com/basemaps. 5 million requests a month for non-commercial use; from 1 December 2026, 1 million a month for commercial use. Use a key without website restrictions, because QGIS doesn’t send a Referer. | © OpenStreetMap contributors, © CARTO |
| Stadia Maps (including the Stamen styles) | https://tiles.stadiamaps.com/tiles/alidade_smooth/{z}/{x}/{y}.png?api_key=YOUR_KEY |
Free plan: 200,000 credits a month, non-commercial only. Paid plans for commercial use. | © Stadia Maps © OpenMapTiles © OpenStreetMap, plus © Stamen Design for Stamen styles |
| Thunderforest (OpenCycleMap, Landscape, Outdoors) | https://api.thunderforest.com/landscape/{z}/{x}/{y}.png?apikey=YOUR_KEY |
Hobby plan: free, 150,000 requests a month. | Maps © Thunderforest, Data © OpenStreetMap contributors |
| Ordnance Survey Maps API (Great Britain) | https://api.os.uk/maps/raster/v1/zxy/Outdoor_3857/{z}/{x}/{y}.png?key=YOUR_KEY (or Road_3857, Light_3857) |
Needs an OS Data Hub project key. | Contains OS data © Crown copyright and database rights 2026 |
| Google Maps and Google Satellite | https://tile.googleapis.com/v1/2dtiles/{z}/{x}/{y}?session=SESSION_TOKEN&key=API_KEY |
Billed Map Tiles API with a session token; 100,000 free 2D tiles a month, then charged per 1,000. Visualisation only: no digitising or offline use. | Google Maps logo and the attribution the API returns |
The mt0.google.com and mt1.google.com “Google Satellite” and “Google Hybrid” URLs found in older lists are undocumented and outside Google’s terms, so they aren’t listed here. The Google section of our 2022 post explains why, and how to set up the Map Tiles API.
Your key is stored in plain text in your QGIS settings and in any project that uses the layer, so don’t share those projects.
Which basemap should I use?
- For a satellite backdrop: Esri World Imagery for detail, or Sentinel-2 cloudless 2016 if you need an open licence.
- For digitising from imagery: use imagery whose licence allows it. The national orthophotos (PDOK, IGN, basemap.at, SWISSIMAGE, USGS) are open, sharp and made for this. See the aerial imagery atlas for other countries.
- For a quiet background under your data: Esri Light Gray Canvas or Dark Gray Canvas, EOX Terrain Light, or CARTO Positron with a key.
- For walking, hills and fieldwork: OpenTopoMap, or the OS Maps API Outdoor style in Great Britain.
- For a commercial product: check the terms column. OpenTopoMap, Sentinel-2 cloudless 2016 and most national services allow it with a credit; the OSM France styles and later Sentinel-2 years don’t.
Add the same basemaps with PyQGIS
To add any URL from a script, encode it as an XYZ data source and give it to QgsRasterLayer with the wms provider. This is the function our script uses:
def xyz_source(url: str, zmax: int) -> str: uri = QgsDataSourceUri() uri.setParam("type", "xyz") uri.setParam("url", url) uri.setParam("zmin", "0") uri.setParam("zmax", str(zmax)) return bytes(uri.encodedUri()).decode()
layer = QgsRasterLayer(xyz_source( "https://tiles.maps.eox.at/wmts/1.0.0/s2cloudless_3857/default/g/{z}/{y}/{x}.jpg", 14), "Sentinel-2 cloudless 2016 (EOX)", "wms")QgsProject.instance().addMapLayer(layer)QgsDataSourceUri takes care of encoding the & and = in URLs like the IGN ones. Pasting a raw URL into the source string without encoding is a common reason a layer comes up invalid.
Troubleshooting
- Blank map, no error: check the max zoom, and that
{x}and{y}are in the provider’s order. National services draw nothing outside their country. - HTTP 400 or 404 in the log: look for a
$before the braces or a typing mistake in the template. Open View › Panels › Log Messages and pick the Network tab. - HTTP 401 or 403: the service needs a key, or your key is restricted to a website. QGIS doesn’t send a Referer, so use a key without one.
- Tiles load slowly or stop: free servers limit heavy use. Don’t run batch exports through them. QGIS caches tiles on disk, which helps on repeat views.
- Blurry labels: tiles are drawn for Web Mercator. Set the project CRS to EPSG:3857 for the sharpest result, or accept a little softening in a local CRS such as British National Grid.
Frequently asked questions
How do I add XYZ tiles in QGIS?
In the Browser panel, right-click XYZ Tiles and choose New Connection…. Enter a name, paste the URL template with {z}, {x} and {y} placeholders, set the maximum zoom and click OK. Double-click the connection to add it to the map.
What is the best free satellite basemap for QGIS?
Esri World Imagery gives the most detail worldwide and loads without a key, under Esri’s licence. If you need an open licence, use Sentinel-2 cloudless 2016 from EOX (CC BY 4.0, 10 m pixels), or a national orthophoto service where there is one.
How do I make a Google Hybrid style map in QGIS for free?
Add Esri World Imagery, then Esri Transportation above it and Esri Boundaries and Places at the top. The overlays are transparent, so you get imagery with roads and place names, from documented URLs.
Can I load many XYZ connections into QGIS at once?
Yes. Right-click XYZ Tiles, choose Load Connections… and pick an XML file of connections, such as our file of all 27 basemaps on this page. Click Select All and Import.
Why do my XYZ tiles show as blank in QGIS?
Usually the maximum zoom is set higher than the service supports, {x} and {y} are in the wrong order, or the URL has $ before the braces. National services are also blank outside their own country.
Do I have to credit the basemap on my map?
Yes. Every service here requires a credit, and QGIS doesn’t add one for you. Use View › Decorations › Copyright Label on screen and a text item in each print layout.
Can I download XYZ tiles for offline use?
Not from the OpenStreetMap, OSM France or Esri servers on this page: their terms forbid bulk downloading and offline use. For offline work, download the underlying data instead, such as a national orthophoto or an OpenStreetMap extract from our data sources.
Related tutorials
- How to add Google Maps and OpenStreetMap layers to QGIS: Google’s Map Tiles API, the OSM tile usage policy and the same basemaps in folium, leafmap and contextily.
- GIS data sources by country: national WMS, WMTS and open data services to add alongside these tiles.
- Free aerial and satellite imagery atlas: open orthophotos by country.
- Interactive web maps from Python with Folium and GeoPandas .explore(): the same tile URLs in a web map.
- Measuring Lake Mead’s shrinking shoreline with Sentinel-2, STAC and Python: download your own satellite imagery instead of using a basemap.
- PMTiles vector tiles in Python and a MapLibre GL JS web map: build and serve your own basemap.
Key terms
- XYZ tiles
- Map images cut into 256 × 256 pixel squares in Web Mercator (EPSG:3857) and addressed by zoom level (z), column (x) and row (y) in a URL template.
- Max zoom
- The deepest zoom level a service has tiles for. Set it in the QGIS connection and QGIS will enlarge the last level instead of asking for tiles that don't exist.
- Hybrid basemap
- Satellite or aerial imagery with transparent road and label layers drawn on top.
- Attribution
- The credit line a tile provider requires on any map that shows its tiles, such as "© OpenStreetMap contributors".
- Tile usage policy
- The provider's rules for its servers: who may use them, how much, whether caching or offline use is allowed, and how to credit them. They apply on top of the data licence.
Data for this tutorial
- OpenStreetMap · ODbL data; the tile servers have their own usage policies
- Sentinel-2 cloudless (EOX) · CC BY 4.0 for 2016 and 2017; CC BY-NC-SA 4.0 for 2018 onwards
- Free aerial and satellite imagery atlas · National orthophoto services by country, many under open licences
- Esri World Imagery · Esri Master License Agreement; attribution required
Licences and formats for each source are listed in the GIS data sources catalogue.
Need this done on your own data? TechnicalGIS takes on consulting projects like this one, from a single analysis to a pipeline your team can rerun.