NC CSV
File conversion

Convert NC to CSV

QUICK ANSWER
Is it possible to convert NC to CSV?
Yes - NC converts to CSV.

Pick the specific variable and time or spatial slice you need, then export that flat table as CSV. You cannot dump the entire multidimensional file to a single CSV in one step - a netCDF file typically stores variables across three or more dimensions.

Also to CSV: DTA · HVE · XFDF

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert NC to CSV?

CSV is the lowest-common-denominator format for data exchange; spreadsheets, databases, and most analysis tools read it without a special driver. Exporting a netCDF variable slice to CSV is the standard way to share a data subset with colleagues who lack netCDF tooling or to load it into Excel, R, or a database.

How to convert NC to CSV

Python (xarray + netCDF4) FREE

Install with pip install xarray netCDF4, open your .nc file with xarray.open_dataset(), select the variable and slice with .sel(), then call .to_dataframe().to_csv('output.csv').

Panoply FREE

Open the .nc file in Panoply, double-click a variable to load a 2D slice, then use File > Export Data as Text to save it as a CSV or tab-separated file.

CDO (Climate Data Operators) OPEN-SOURCE

Run cdo outputtab,date,lon,lat,value infile.nc output.csv to export a variable as a flat tabular text file.

NCO (NetCDF Operators) OPEN-SOURCE

Run ncks -H -v variable_name yourfile.nc > output.csv to extract a named variable in text form; clean the header line manually afterward.

About these formats

Quality & what to watch

  • You export a slice, not the whole file - always select the variable and dimension range you need before exporting, or the output will be too large to be useful.
  • Variable names are defined inside the .nc file; run ncdump -h yourfile.nc or print(ds) in xarray to list them before attempting any export.
  • netCDF-4 files are HDF5 internally; classic netCDF files start with CDF in the header - both formats are readable by all tools listed above.

Frequently asked questions

Do I need to know Python to convert NC to CSV?
No - Panoply offers a graphical interface with no coding required. Python with xarray is the most flexible option for large or batch conversions.
How do I find the variable names inside a netCDF file?
Run ncdump -h yourfile.nc from the command line, or open the file in Panoply and read the variable list in the left panel.
Why is my exported CSV so large?
A single gridded climate variable at global resolution can have millions of values. Select a specific time step or spatial bounding box before exporting to keep the file manageable.
Can I export multiple variables to one CSV?
Not directly - each export flattens one variable. Merge separate CSV files afterward in Python or a spreadsheet application.