CSV to map: How to import location data correctly
Learn how to run a CSV to map conversion: prepare columns, set coordinates, check ranges and fix common import errors.
Published 5 December 2026

Manual CSV exports and imports create opportunities for shifted columns, flipped coordinates and lost rows. Each handoff carries assumptions about how the next tool will read the file. Those assumptions can survive an import without triggering an error.
A map that renders successfully is no proof that its data is trustworthy.
Points can land in the wrong country, stack on a postcode centroid or leave rows unmapped while the layer still looks reasonable when zoomed out. A convincing display makes these errors easier to miss. Before relying on the result, use a repeatable sequence: preflight the file, run a dry import, then audit what reached the map. Check placement and missing records as well as whether the tool accepted the upload. The useful outcome is a map whose points you can account for.
Table of Contents
- Why a CSV Needs Preparing Before It Maps
- Validate Coordinates and Delimiters Before Import
- Convert the CSV Into a Map in Seven Steps
- Common Import Errors and How to Fix Them
- Judging Match Confidence and Limiting Address Exposure
- Run a Dry Run and 50-Row Test Import
Why a CSV needs Preparing before it maps
The comma-separated file became formally documented only after decades of practical use. The Internet Engineering Task Force published RFC 4180 on October 4, 2005, defining a common structure for comma-separated values and registering the text/csv MIME type (RFC 4180). It describes records separated by line breaks, fields separated by commas, an optional header row, and double quotes around fields containing commas, line breaks or quotation marks.
Notice what it leaves unsaid. Nothing in that document states which column holds a latitude, whether a header reading "Lat" means decimal degrees, or whether a semicolon is acceptable. RFC 4180 itself notes that the lack of a formal standard allowed a wide variety of interpretations, and it is informational rather than an Internet standard. That is why the same file maps cleanly in one tool and fails in another: each tool guesses differently about delimiters, header rows and quoting.
Mapping is the step where you supply the meaning the format never carried. Four input layouts cover almost everything that arrives.
| Layout | Required columns | What the map shows | Watch for |
|---|---|---|---|
| Coordinate pairs | latitude, longitude in decimal degrees | Exact points | Swapped axes or text in number cells |
| Separate address fields | street, city, region, postal code, country | Geocoded points | Low-confidence matches |
| Combined address line | one address column | Geocoded points | Split before import to reduce wrong matches |
| Geometry text | WKT or GeoJSON column | Lines or polygons | Undeclared coordinate reference system |
Coordinate pairs are the easiest to plot and the easiest to get backwards. Separate address fields give a geocoder the most to work with. A single combined address line is where wrong matches breed, because "12 High Street, Unit 4" and "Unit 4, 12 High Street" are not the same string to a parser. Geometry text plots shapes without any geocoding at all, provided the coordinate system travels with it.
Practical rule: if you cannot name the coordinate columns, the delimiter and the row identifier before opening the mapping tool, the file isn't ready for the tool.
Validate coordinates and delimiters before import
Run the preflight in a spreadsheet, not in the mapping software. Every mapping tool will happily accept a broken file and draw something; a spreadsheet filter shows you the breakage first.
| Field | Valid value | Common failure | Check before import |
|---|---|---|---|
| Latitude | -90 to 90 | Values outside the range | Filter for values above 90 or below -90 |
| Longitude | -180 to 180 | Swapped with latitude | Sort and compare extremes to known places |
| Coordinate reference system | WGS 84 (EPSG:4326) for GPS values | Projected metres read as degrees | Record the CRS in project notes |
| Decimal separator | A full stop, or a comma in some European exports | Comma read as text or as a thousands separator | Set the decimal setting to match the file |
| Delimiter | Comma, semicolon or tab | Semicolon file lands in one column | Set the delimiter before preview |
| Encoding | UTF-8 | Garbled place names | Re-save as UTF-8 before import |
| Null coordinate cells | A non-empty value | Blank read as zero and plotted at 0,0 | Count blanks and reject or send to review |
| Row identifier | Unique value per row | Duplicate or blank IDs | Confirm uniqueness before import |
The framing worth borrowing comes from the Open Geospatial Consortium's work on data formats and validation, which treats an import as a schema-mapping and validation pipeline rather than an upload: preserve a stable row identifier, identify whether the file holds addresses, coordinates or geometry, normalise delimiters, quoting, encoding, decimal separators and null values, map source columns to explicit target fields, validate coordinate ranges, and keep an error report for rejected rows.
Range checks you can run in a spreadsheet
Filter the latitude column for values above 90 or below -90 and the longitude column for anything outside -180 to 180. Then sort each column and read the extremes, because swapped axes almost always show up as latitudes in the hundreds or longitudes clustered around a plausible-looking 51. Count the blank coordinate cells and decide now whether each one is rejected or queued for review. Deleting them at this stage hides how many records you're about to lose.
Delimiters, decimals and encoding
A semicolon-delimited export opened with the default comma setting collapses into a single column, and the preview will show you a table with one absurdly wide field. A decimal comma is subtler: the number looks fine to a person and parses wrong or not at all. Set the delimiter before the preview and set the decimal separator to match the file's origin. Re-save as UTF-8 if accented place names arrive as mojibake.
The coordinate reference system rule
If the coordinates are ordinary GPS latitude and longitude, declare WGS 84 (EPSG:4326) and move on. If they came out of a CAD drawing, a national grid or a survey in metres, record the projection in the project notes and transform deliberately. Never let a tool interpret projected metres as degrees, because the resulting shift is measured in kilometres and the map still looks plausible.
Keep every rejected row in a separate reject log rather than deleting it, so a correction later can reuse the original record. Fix the file once, save the cleaned version as a reusable template, and the next import starts from a known-good shape.
Convert the CSV Into a map in Seven Steps
A layer that renders is not a layer that is right. The conversion itself is mechanical once the file has passed preflight, and the settings carry different names in QGIS, ArcGIS, CARTO, Mapbox Studio or a lightweight web tool, but every one of them asks the same seven questions. Answer them in order and audit the result, because the steps are where silent losses happen.

- Save as UTF-8 with a single header row. Wrong encoding garbles place names before a single point appears, and two header rows turn the first record into column names.
- Set the delimiter first, then load. A semicolon file read as comma-separated lands in one column and produces an empty layer.
- Geocode addresses if there are no coordinates. Keep the returned match level and confidence as new columns, because they are what let you filter weak matches later. Skip this entirely when latitude and longitude already exist, since a second geocoding pass only adds error.
- Assign latitude, then longitude, in that order. Axis order is the setting most often reversed. Check the first three rows against a city you know before touching anything else.
- Declare the coordinate reference system you recorded during preflight. For GPS values that's EPSG:4326; for anything else it's the projection in your notes.
- Use the row identifier as the record key. Every point then traces back to its source line, which is what makes an audit possible later.
- Preview the layer, then compare counts. Feature count should equal CSV rows minus the header row. Style symbols by a category field such as site, region or status, then save the project so the settings are reproducible.
Step seven is the audit, and it is the step people skip. If the feature count is lower than the row count, rows are sitting in a parser somewhere and the map is lying by omission. A gap of even a few rows usually means a quoting fault or a delimiter slip rather than bad data, so treat the mismatch as a parser bug first and a data problem second.
The match-headers-then-validate pattern behind steps one and two is not specific to geography. When you load a voter list into doornoc, file headers get matched to destination fields and validated before any record is accepted, the same discipline a GIS import applies with coordinates.
A healthy first map has three visible properties: points sit where their addresses are, the feature count matches the row count, and no cluster of dots sits at 0,0 in the Gulf of Guinea. If any one of those fails, the import did not succeed, whatever the tool reported.
Common import errors and how to fix them
Axis order is the most frequent failure, and the guide to diagnosing failed spatial imports is blunt about why: the import succeeds, the points appear, and the map is wrong. It recommends checking the coordinate system, the delimiter, the encoding and whether the feature count matches the source rows, in that order.
The deeper point is that positional accuracy, completeness, consistency and lineage are separate dimensions of spatial quality. A layer can be complete and still be mispositioned, or accurately positioned and missing rows. "It mapped successfully" is not evidence of any of them.
| Symptom | Likely cause | Fix |
|---|---|---|
| Points in the wrong country | Latitude and longitude swapped | Swap the axis order and re-import |
| Points shifted by kilometres | Projected coordinates read as degrees | Declare the correct CRS |
| Fewer points than rows | Unescaped line break in a quoted field, or wrong delimiter | Check quoting, set the delimiter, compare counts |
| Points stacked in one spot | Postcode or area centroid fallback | Filter by match level and re-geocode with more detail |
| Garbled place names | File not saved as UTF-8 | Re-save as UTF-8 and re-import |
Two more show up constantly. Points clustered at exactly 0,0 mean blank coordinate cells were read as zero, so filter those out rather than accepting a pin in the Atlantic. A layer that plots cleanly but sits a few hundred metres off along a street usually means house-number interpolation rather than a rooftop match, which is a confidence question, not a coordinate error.
Each fix needs a different level of rework. Garbled names and delimiter problems are a re-save and re-import. Axis swaps and CRS errors are also a re-import, but only after correcting the source file, or the same error returns. Centroid fallbacks need a new geocoding run with fuller address components.
Verification that actually proves the fix: the feature count matches the row count, one known location lands in the right place, and five random rows match their authoritative addresses when checked by hand.
Judging match confidence and Limiting address exposure
Every geocoded row is a claim, not a finished fact. A point that renders cleanly can still carry the wrong street number, a street-level interpolation, or a postcode centroid. That distinction matters most when coordinates feed delivery zones, staffing decisions, segmentation, or anything that touches an individual or a private site.

Sort every geocoded batch into three queues before anything reaches a shared record.
- Accepted: rooftop or exact street-number agreement, inside your distance threshold from a trusted reference point.
- Review: interpolated or lower-precision matches, or a result that disagrees with a known location. Check these by hand, one at a time.
- Rejected: no match or invalid coordinates. Fix the address and resubmit rather than forcing a pin.
This queueing works because match precision varies across a normal batch. One published estimate puts roughly 70% of results at rooftop level, 20% interpolated along a street and 10% at lower precision for a representative sample (geocoding guidance from Geolake). That means a tidy map can still hide a tenth of its points at a precision nobody should act on. I would treat review and rejected rows as operational exceptions, not as noise to clear so the import can finish.
Confidence labels also need a business boundary. A venue record may only need the site placed correctly relative to its catchment. A supplier callout may need the loading entrance, not the registered office. A private individual's address needs a clear operational reason and a consent boundary for the use. Precision and exposure rise together. Before upload, keep only the fields needed for the job: a site name and street address may be enough for a site map, while a contact's mobile number has no place in that file. For any geocoding provider, ask where the address data is sent, whether it is protected in transit, how long it is retained, and who can change those controls. Those questions matter more when the file includes customers, employees, private homes, or identifiable business locations.
Keep low-confidence points out of decisions that imply certainty. A rooftop-level match can support a precise operational action. An interpolated street match may support area-level planning. A centroid or unresolved match belongs in review, where a person can decide whether the address is good enough for the purpose. A map that looks complete is useful only when the match confidence matches the decision being made from it.
Run a Dry Run and 50-Row Test Import
Nothing goes live until a preview shows what can be applied and what cannot. The dry run is the decision point, and the sample is how you earn the right to trust it.

Build a stratified sample, not a random one
Take 50 to 100 rows spread across countries, urban and rural areas, postcode formats and record types, and make sure at least one row from every country and every layout in the file is included. Keep the provider's confidence, match level, normalised address and returned coordinates for each row. Then define acceptance rules in advance: near-exact street-number agreement plus a distance threshold from a trusted reference coordinate, such as 100 metres for rooftop-level work.
Measure against references, not response rates
The U.S. Census Geocoder guidance is clear that address quality drives success and that a geocoder may return an incorrect match rather than fail outright. Provider choice matters as much as input quality: one recent real-world benchmark reported the strongest commercial geocoders exceeding open-source systems by up to 49 percentage points in recall, and a separate multi-country test reported 86.3% correct resolution within 100 metres for a cascading strategy against 73.7% for a single provider.
That gap is why fallback providers and a human review queue earn their keep. A 100% API response rate means the service answered. It says nothing about whether the answers were right.
For our own import workflow the same principle applies. Switching starts with a dry run: you upload a CSV, map the columns and see what can be applied and what cannot before anything is imported, and the preview shows what can and cannot be brought over from the old system. Future bookings import the same way, with clashes reported for the venue to resolve rather than forced into the diary.
Pass criteria before the full file runs: no unexplained rejects, three known sites land in the right place, the CRS and geocoding provider are written in the project notes, and the feature count matches the test row count.
Three habits keep this reproducible. Keep the original ID column in every version of the file. Log the CRS and the provider alongside the import date. Re-run the sample whenever address formatting, parsing rules, provider or coverage changes, because a benchmark that was true last quarter is a claim about last quarter.
Purple Operate imports bookings and records from a CSV with a dry run built into the process: you map the columns, the preview shows what can and cannot be brought over, and booking clashes come back for you to resolve rather than being forced into the diary. If you're consolidating bookings, stock or supplier records from an old system, that review step is what separates a clean switch from a fortnight of corrections. Visit Purple Operate to see how the import preview works.