To get you started using QGIS, here’s a small collection of working XYZ tiles.
<!DOCTYPE connections>
<qgsXYZTilesConnections version="1.0">
<xyztiles url="https://mt0.google.com/vt/lyrs=m&x={x}&y={y}&z={z}" password="" name="Google Maps" zmax="18" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
<xyztiles url="https://mt1.google.com/vt/lyrs=h&x={x}&y={y}&z={z}" password="" name="Google Roads" zmax="18" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
<xyztiles url="https://mt0.google.com/vt/lyrs=s&x={x}&y={y}&z={z}" password="" name="Google Satellite" zmax="18" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
<xyztiles url="https://mt0.google.com/vt/lyrs=y&x={x}&y={y}&z={z}" password="" name="Google Satellite Hybrid" zmax="18" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
<xyztiles url="https://mt1.google.com/vt/lyrs=t&x={x}&y={y}&z={z}" password="" name="Google Terrain" zmax="18" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
<xyztiles url="https://mt1.google.com/vt/lyrs=p&x={x}&y={y}&z={z}" password="" name="Google Terrain Hybrid" zmax="18" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
<xyztiles url="https://tile.openstreetmap.org/{z}/{x}/{y}.png" password="" name="OpenStreetMap" zmax="19" tilePixelRatio="0" zmin="0" authcfg="" username="" referer=""/>
</qgsXYZTilesConnections>