CRS guide

QGIS CRS & projections on Windows — coordinate system guide

Set and fix coordinate reference systems (CRS) in QGIS on Windows. Project CRS setup, on-the-fly reprojection, EPSG codes and reprojecting data with GDAL.

QGIS handles coordinate reference systems (CRS) automatically in most cases. This guide covers the essentials you need to know when data looks wrong on the map.

Coordinate Reference Systems in QGIS

A CRS defines how coordinates on the Earth's surface are represented. Two datasets with different CRS values will not align on the map even if they cover the same area. QGIS can reproject data on the fly, but for best performance you should reproject your data to a consistent CRS.

CRSEPSG codeUse when
WGS 84EPSG:4326Global, GPS data, lat/lon coordinates
Web MercatorEPSG:3857Web maps, basemaps (OpenStreetMap)
British National GridEPSG:27700UK data
UTM zonesEPSG:326xxRegional metric work
ETRS89EPSG:4258European datasets

Set the project CRS in QGIS

  • 1

    Open project properties

    Project → Properties → CRS tab. Or click the CRS indicator in the status bar at the bottom right.

  • 2

    Search for your CRS

    Type the EPSG code (e.g. 4326) or the CRS name. Select from the results and click OK.

  • 3

    Enable on-the-fly reprojection

    QGIS enables on-the-fly reprojection automatically — layers with different CRS are reprojected to the project CRS for display. This is enabled by default.

Permanently reproject a layer

For best performance, reproject your data to the project CRS rather than relying on on-the-fly reprojection:

QGIS or OSGeo4W Shell
# In QGIS: Vector > Data Management Tools > Reproject Layer
# Or via command line:
C:\OSGeo4W> ogr2ogr -t_srs EPSG:27700 output_BNG.gpkg input_WGS84.gpkg
# For rasters:
C:\OSGeo4W> gdalwarp -t_srs EPSG:27700 input.tif output_BNG.tif

CRS questions

My layers are not aligning on the map
The layers have different CRS values. Check each layer's CRS: right-click layer → Properties → Source tab. If they differ, either set the project CRS to match the majority of your data and let QGIS reproject on the fly, or permanently reproject the mismatched layers.
Layer appears in the wrong location (far from expected)
The layer probably has no CRS set or has been assigned the wrong CRS. Right-click the layer → Set CRS → Set Layer CRS, and choose the correct CRS for that data. Do not reproject — just assign the correct CRS.
How do I find the EPSG code for my country?
Search at epsg.io by country name or CRS name. In QGIS, you can also check the CRS selector and browse by region.

QGIS slow with reprojection?

Optimise performance with these tips.

Performance guide