Add a Spreadsheet .XLSX or .CSV to a QGIS Project

This tutorial will cover how to add tabular data to a QGIS project.

  1. If your spreadsheet is saved in .XLSX format, export it as a .CSV before bringing it into QGIS. QGIS will not be able to read .XLSX.
To ensure interoperability, it's best to err on the side of encoding data in open data formats, such as .csv, .geoJSON or geopackage.
  1. Once you have spreadsheet data saved in .CSV format, open QGIS .

  2. In the main QGIS menu (banner across the top of the computer screen), select Layer → Add Layer → Add delimited text layer. Screenshot of the add delimited text wizard in QGIS

  3. Under File name select the ellipses dots icon to navigate to the .csv you wish to import.

  4. Pay attention to Record and Field options. You can start by accepting the defaults, but depending on the way your data is structured, you may want to make use of some of these settings.

  5. If your table…

…has coordinates …does not have coordinates
QGIS will be able to display the rows as points. Select Point coordinates and define which field in the spreadsheet is X (longitude), and which is Y (latitude). Later on you’ll perform a join . For now under Geometry definition select No Geometry (attribute only table).
  1. Select Add.

  2. Select Close.

Add button not highlighted?

If the "Add" button is greyed out, it is probably a sign that you have not selected a coordinate reference system. Maybe it says something like "invalid projection".

add projection wizard

If you are unsure which projection to use, you can start with WGS 84. Open the dialog box by clicking where it says "invalid projection", and search for the WGS 84 code, "4326". Set this as the coordinate reference system, and then the "Add" button should re-appear.

You can also Learn more about working with coordinate reference systems in QGIS.

Example data

Please find an example spreadsheet saved as a .csv with the latitude and longitude formatted correctly so that it should import as points in QGIS.

You can also practice working with location data, and start to visualize it in a shareable web map.

Give your feedback to improve our tutorials