---
title: "XYZ tile URLs for QGIS: 27 free basemaps, checked and ready to load"
description: "27 checked XYZ tile URLs for QGIS, with max zoom, attribution and terms for each: OSM, Esri satellite, Sentinel-2 and national maps. Load them all at once."
url: https://www.technicalgis.com/tutorials/xyz-tile-urls-qgis/
author: Sean Blaney (https://www.technicalgis.com/about/#sean-blaney)
publisher: TechnicalGIS (https://www.technicalgis.com/about/)
published: 2026-11-24
updated: 2026-11-24
language: en-GB
---

# XYZ tile URLs for QGIS: 27 free basemaps, checked and ready to load

> 27 checked XYZ tile URLs for QGIS, with max zoom, attribution and terms for each: OSM, Esri satellite, Sentinel-2 and national maps. Load them all at once.

- Level: Beginner
- Tested with: Python 3.12
- Source code: [Download scripts](https://www.technicalgis.com/code/xyz-tile-urls-qgis/)

## Key takeaways

1.  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.
2.  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.
3.  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.
4.  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.
5.  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](https://www.technicalgis.com/code/xyz-tile-urls-qgis/) 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](https://www.technicalgis.com/2022/08/13/how-to-add-google-maps-and-openstreetmap-layers-to-qgis/), because the only compliant route needs a billed API key.

![QGIS 3.40 with the Browser panel listing XYZ Tiles connections from basemap.at to IGN Plan IGN v2, and the map showing Esri World Imagery of Keswick and Derwentwater in the Lake District with Esri road and place-name overlays on top.](https://www.technicalgis.com/_astro/01-qgis-xyz-connections-hybrid.BnVnDecg_ZTkl5m.webp)

_QGIS 3.40.12 after loading our connections file. The map is a free hybrid: Esri World Imagery with the Esri Transportation and Boundaries and Places overlays, over Keswick and Derwentwater at 1:44,206. Imagery: Esri, Vantor, Earthstar Geographics, and the GIS User Community. Overlays: Esri, HERE, Garmin, © OpenStreetMap contributors, and the GIS user community._

## How to add an XYZ tile URL in QGIS

1.  Open the **Browser** panel (**View › Panels › Browser** if it’s hidden).
2.  Right-click **XYZ Tiles** and choose **New Connection…**. **Layer › Data Source Manager › XYZ** (Ctrl+L) opens the same dialogue.
3.  Type a **Name**, paste the **URL**, tick **Max. Zoom Level** and enter the value from the table.
4.  Click **OK**, then double-click the new connection to add it to the map.
5.  Add the provider’s credit with **View › Decorations › Copyright Label**, and put it in every print layout you export.

![The QGIS XYZ Connection dialogue with the name OpenTopoMap, the URL https://a.tile.opentopomap.org/{z}/{x}/{y}.png, Min. Zoom Level unticked and Max. Zoom Level ticked at 17, and No Authentication selected.](https://www.technicalgis.com/_astro/02-qgis-xyz-connection-dialog.CFMhQGng_2jL6XI.webp)

_The XYZ Connection dialogue filled in for OpenTopoMap, with the maximum zoom set to 17. The Referer and HTTP header boxes are only needed by services that ask for them; none of the 27 on this page do._

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.

## Load all 27 basemaps at once

Rather than adding them one by one, download [`technicalgis-xyz-connections.xml`](https://www.technicalgis.com/code/xyz-tile-urls-qgis/) from the code page. Then:

1.  In the **Browser** panel, right-click **XYZ Tiles** and choose **Load Connections…**.
2.  Pick the XML file. QGIS lists the 27 connections; click **Select All**, then **Import**.
3.  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`](https://www.technicalgis.com/code/xyz-tile-urls-qgis/). It runs with the Python that comes with QGIS. Its output ends:

`Output`

```text
Esri hybrid (imagery + roads + labels)   render_errors=0
wrote technicalgis-xyz-connections.xml with 27 connections
loaded 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.

![A grid of 15 small maps of Keswick and Derwentwater, each labelled: OpenStreetMap, OpenStreetMap France, Humanitarian OSM, CyclOSM, OpenTopoMap with contours, Esri World Imagery, Esri World Street Map, Esri World Topographic Map, Esri World Hillshade, Esri Light Gray Canvas, Esri Dark Gray Canvas, Sentinel-2 cloudless 2016 and 2025, EOX Terrain Light, and the Esri imagery, roads and labels hybrid.](https://www.technicalgis.com/_astro/03-contact-sheet-keswick.CPvMTR69_1njJW6.webp)

_Fifteen global basemaps over the same view of Keswick and Derwentwater, each drawn by QGIS 3.40.12 from the URL in the tables below. Credits: © OpenStreetMap contributors; OpenStreetMap France; Humanitarian OpenStreetMap Team; CyclOSM; OpenTopoMap (CC-BY-SA), SRTM; Esri and the data providers named in the tables; EOX IT Services GmbH, contains modified Copernicus Sentinel data 2016 and 2025._

### 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](https://operations.osmfoundation.org/policies/tiles/) 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](https://www.openstreetmap.fr/usage/): 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](https://opentopomap.org/about). |

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](https://www.technicalgis.com/tutorials/vector-tiles-pmtiles-maplibre/).

### 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](https://www.esri.com/en-us/legal/terms/full-master-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](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](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](https://maps.eox.at/) 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:

1.  Add **Esri World Imagery**.
2.  Add **Esri Transportation (roads)** above it.
3.  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.

![A grid of 11 small maps labelled with their sources: USGS Imagery Only and USGS Topo over the Grand Canyon; PDOK aerial photo and BRT background map over central Amsterdam; IGN orthophotos and Plan IGN v2 over central Paris; basemap.at map and orthophoto over Vienna; swisstopo SWISSIMAGE and the Swiss national map over Bern; and BKG TopPlusOpen over Dresden.](https://www.technicalgis.com/_astro/04-contact-sheet-national.C8toZAoU_1Ct1fB.webp)

_Eleven national basemaps drawn by QGIS 3.40.12, each over its own country. Credits: USDA, USGS The National Map; Kadaster and Beeldmateriaal Nederland (PDOK); IGN; basemap.at; © swisstopo; © BKG (2026) dl-de/by-2-0._

| 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](https://sgx.geodatenzentrum.de/web_public/gdz/datenquellen/datenquellen_topplusopen.html). 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](https://www.technicalgis.com/data-sources/), for example the [Netherlands](https://www.technicalgis.com/data-sources/netherlands/), [France](https://www.technicalgis.com/data-sources/france/), [Switzerland](https://www.technicalgis.com/data-sources/switzerland/) and [United States](https://www.technicalgis.com/data-sources/united-states/). The [aerial imagery atlas](https://www.technicalgis.com/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](https://carto.com/basemaps/apikey/). 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](https://osdatahub.os.uk/) 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](https://www.technicalgis.com/2022/08/13/how-to-add-google-maps-and-openstreetmap-layers-to-qgis/#google-maps-in-qgis-the-honest-version) 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](https://www.technicalgis.com/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:

`xyz_tile_catalogue.py`

```python
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](https://www.technicalgis.com/data-sources/#src-openstreetmap).

## Related tutorials

-   [How to add Google Maps and OpenStreetMap layers to QGIS](https://www.technicalgis.com/2022/08/13/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](https://www.technicalgis.com/data-sources/): national WMS, WMTS and open data services to add alongside these tiles.
-   [Free aerial and satellite imagery atlas](https://www.technicalgis.com/aerial-imagery-atlas/): open orthophotos by country.
-   [Interactive web maps from Python with Folium and GeoPandas .explore()](https://www.technicalgis.com/tutorials/interactive-web-maps-folium/): the same tile URLs in a web map.
-   [Measuring Lake Mead’s shrinking shoreline with Sentinel-2, STAC and Python](https://www.technicalgis.com/tutorials/sentinel-2-stac-lake-mead/): download your own satellite imagery instead of using a basemap.
-   [PMTiles vector tiles in Python and a MapLibre GL JS web map](https://www.technicalgis.com/tutorials/vector-tiles-pmtiles-maplibre/): 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](https://www.technicalgis.com/data-sources/#src-openstreetmap) · ODbL data; the tile servers have their own usage policies
-   [Sentinel-2 cloudless (EOX)](https://www.technicalgis.com/data-sources/#src-eox-sentinel-2-cloudless) · CC BY 4.0 for 2016 and 2017; CC BY-NC-SA 4.0 for 2018 onwards
-   [Free aerial and satellite imagery atlas](https://www.technicalgis.com/aerial-imagery-atlas/) · National orthophoto services by country, many under open licences
-   [Esri World Imagery](https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9) · Esri Master License Agreement; attribution required

Licences and formats for each source are listed in the [GIS data sources catalogue](https://www.technicalgis.com/data-sources/).

---

Source: https://www.technicalgis.com/tutorials/xyz-tile-urls-qgis/
