How to Convert NetCDF to CSV (No Python, 2026)

Jun 24, 2026

You have a .nc file and you need it as CSV — for Excel, pandas, or QGIS. The traditional route is a Python/xarray script. Here's a faster way that needs no install.

Why NetCDF → CSV is trickier than it sounds

CSV is a flat, two-dimensional table. A NetCDF variable is usually multi-dimensional — for example temperature(time, level, lat, lon). You can't dump all of that into a sensible CSV at once. The trick is to pick one variable and slice it down to a single 2D lat–lon plane: choose a specific time step and a specific vertical level, leaving just lat × lon values to write out as rows.

The quick way: convert in your browser

Use the NetCDF to CSV converter:

  1. Open /netcdf/to-csv.
  2. Drop your .nc file onto the page.
  3. Click the variable you want, then pick the time / level slice from the list.
  4. Press CSV — your browser builds and downloads a lat,lon,value file.

Everything runs locally with WebAssembly, so the file is never uploaded. No Python, no xarray, no netCDF4, no command line.

What the CSV looks like

lat,lon,value
51.000,0.000,281.34
51.000,0.250,281.41
51.000,0.500,281.52

One row per grid point, three columns. Missing values are left blank. That opens directly in Excel, Google Sheets, pandas (pd.read_csv) or QGIS.

The Python way (if you prefer scripting)

import xarray
ds = xarray.open_dataset("myfile.nc")
ds["t2m"].isel(time=0).to_dataframe().to_csv("out.csv")

Note the isel(time=0) — you still have to slice the extra dimensions down yourself. This works but needs Python and the NetCDF C library installed. For a one-off conversion, the browser converter is quicker and keeps your data private.

Need a different format?

The same tool also exports JSON and GeoJSON, and you can inspect the full file structure — variables, dimensions and attributes — in the NetCDF viewer. New to the format? Start with how to open a NetCDF file.

GribBox

GribBox

How to Convert NetCDF to CSV (No Python, 2026) | Blog