.NC

NC File

netCDF (Network Common Data Form)
Ask a question
QUICK ANSWER

An .nc file is a netCDF (Network Common Data Form) file - a binary format for multidimensional scientific data such as climate, weather, and ocean datasets from NOAA, NASA, and Copernicus. Open it with Panoply (free, NASA GISS) to plot variables, QGIS for geospatial work, or Python with xarray to load and analyze it. (If the file looks like readable text with G00/M03 codes, you have a CNC G-code program, not netCDF.)

Developer: Unidata / UCAR Category: Data Files Open standard MIME: application/x-netcdf
OPENS ON Windows macOS Linux
Related: .PKPASS · .DAT · .JSON · .RIS

On this page

19k+ extensions indexed
Last reviewed Sep 5, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the NC file format?

.nc files store various types of data, typically science-related. .nc files store multidimensional data organized in arrays, combining variables, dimensions, and metadata attributes in a single container. .nc is an open, platform-independent binary format developed and managed by Unidata (part of UCAR). Through APIs and libraries, the format is supported by many popular programming languages and facilitates the creation and sharing of scientific data. The reference implementation is written in C, with official libraries and interfaces available for C++, Fortran, Java, and Python, and community bindings for R and Julia. .nc files are supported by tools available for most operating systems and hardware platforms.

NetCDF tools store data in files with the .nc extension, which replaced the original .cdf extension in 1994 to avoid confusion with other popular file formats. The format has evolved through several versions: Classic (32-bit, ~2 GB limit), 64-bit Offset, CDF5, and netCDF-4 - the last of which uses HDF5 as its underlying storage layer and supports chunking and compression. .nc files are defined as:

  • Self-describing - the file contains information about the data it stores,
  • Platform-independent - such files can be opened on various platforms by default,
  • Scalable - able to store small and large amounts of data,
  • Appendable - new data can be added without rebuilding the file structure,
  • Shareable,
  • Easy to archive and backwards-compatible - all versions of the .nc format are supported by dedicated libraries, including future releases.

The Open Geospatial Consortium recognizes the .nc format as an international standard for data exchange. .nc files typically contain meteorological, geographical (GIS), climatological, or oceanographic data, and are a cornerstone of climate science and weather modeling workflows.

Security & safety

RISK: LOW

A netCDF file is binary scientific data, not a program - it doesn't execute on your PC, so opening it to view is safe. The realistic risk is domain-specific rather than malware: parsers for netCDF/HDF5 have occasionally had CVEs, so keep your scientific tools (Panoply, the netCDF/HDF5 libraries, Python packages) updated when handling files from untrusted sources. Files can also be very large, so subset with CDO/NCO or xarray rather than loading everything into memory.

Format details

in a nutshell
FULL NAMEnetCDF (Network Common Data Form)
DEVELOPERUnidata / UCARsince 1988 (Unidata)
CATEGORYData Files
MIME TYPEapplication/x-netcdf
TYPESelf-describing binary multidimensional scientific array data
STANDARDOpen · royalty-free
This extension is also used by…
  • CNC / Numerical Control program (G-code) - Plain-text RS-274 G-code that drives a milling/turning machine, produced by CAM software such as Mastercam; viewed in a text editor or G-code viewer.
MAGIC BYTES · FILE SIGNATURE
OFFSET
000102
HEX
434446
ASCII
CDF
Classic netCDF starts with 'CDF' (43 44 46) + a version byte (01 classic, 02 64-bit offset, 05 CDF5). netCDF-4 is internally an HDF5 file: magic 89 48 44 46 0D 0A 1A 0A at offset 0. Either way the file is binary scientific data, not human-readable text.

Programs that open NC files

Windows3 apps
MATLAB Paid ncread/ncdisp import the .nc variables for analysis. Heavy/paid - Python or Panoply are free alternatives.
Panoply Free Open the .nc to plot variables as maps/charts and browse metadata. Free, from NASA GISS (Java).
QGIS Open-source For geospatial netCDF: add the .nc as a raster/mesh layer to map and analyze it. Free.
macOS2 apps
Panoply Free Open the .nc netCDF file to plot and inspect variables. Cross-platform (Java).
Ncview Free Quick visual browser for netCDF variables (via Homebrew/X11).
Linux3 apps
Ncview Free Fast netCDF visual browser; 'ncview file.nc' plots variables. The classic Linux netCDF viewer.
Python + xarray / netCDF4 Open-source import xarray; ds = xarray.open_dataset('file.nc') - load, inspect, plot, and export the data. The standard free toolchain.
CDO / NCO Open-source Command-line operators (cdo, ncdump, ncks) to inspect, subset, and convert netCDF files.

Technical details

deep spec
MIME typeapplication/x-netcdf
Magic bytes - Classic43 44 46 + version byte: 01 (Classic), 02 (64-bit Offset), 05 (CDF5); ASCII prefix "CDF" at offset 0
Magic bytes - netCDF-489 48 44 46 0D 0A 1A 0A at offset 0 (HDF5 superblock signature)
Format versionsClassic (32-bit), 64-bit Offset, CDF5, and netCDF-4 (HDF5-based)
Primary data modelNamed multi-dimensional variables sharing declared dimensions, plus per-variable and global metadata attributes
Byte orderBig-endian for Classic, 64-bit Offset, and CDF5; HDF5-native (configurable) for netCDF-4
Maximum file size~2 GB (Classic 32-bit); ~8 EiB (64-bit Offset and CDF5); effectively unlimited for netCDF-4
Reference implementationWritten in C; maintained by Unidata as the netCDF-C library
Language bindingsC, C++, Fortran, Java (netCDF-Java), Python (netCDF4-python, xarray), R (ncdf4), Julia (NetCDF.jl)
Chunking and compressionAvailable in netCDF-4 via HDF5 chunked storage; supports deflate (zlib) and Zstandard filters
Metadata conventionCF (Climate and Forecast) Conventions widely used to standardize coordinate variables, units, and grid mappings
Extension history`.nc` replaced `.cdf` in 1994 to avoid confusion with unrelated formats using the same extension
OGC recognitionRecognized by the Open Geospatial Consortium as an international standard for gridded scientific data exchange
DeveloperUnidata / UCAR (University Corporation for Atmospheric Research), introduced 1988
Released1988 (Unidata)
Open standardYes · royalty-free
Specificationdocs.unidata.ucar.edu

NC conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with NC files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about NC files.

Frequently asked questions

How do I open a .nc (netCDF) file?
Use Panoply (NASA GISS) to plot it, ncview for a quick look, QGIS if it's geospatial, or Python with xarray/netCDF4 to load and analyze it. All are free; you don't need MATLAB.
What is a netCDF .nc file?
A self-describing binary format from Unidata for multidimensional scientific data (e.g. temperature over lat/lon/time), used in climate, weather, ocean and satellite datasets from NOAA, NASA and Copernicus.
How do I convert a netCDF .nc file to CSV?
Pick a variable and slice, then export: Python xarray (open_dataset, then to_dataframe().to_csv()), Panoply's table export, or CDO/NCO on the command line. You can't meaningfully dump a whole multidimensional file to one flat CSV - choose the slice you need.
How do I convert netCDF to GeoTIFF?
For a georeferenced variable, export it as a raster in QGIS, or use GDAL's gdal_translate with the NETCDF driver. This is the standard way to bring netCDF grids into GIS.
Why won't my .nc file open / is it netCDF-4 or classic?
Newer .nc files are netCDF-4 (HDF5 internally) and need a recent netCDF/HDF5-aware tool; older 'classic' files start with 'CDF'. Update Panoply, xarray, or your netCDF library, or convert with nccopy.
My .nc file is readable text with G00/M03 codes - is that netCDF?
No - that's the unrelated CNC meaning of .nc: a G-code machine program, not netCDF scientific data. Open it in a text editor or a G-code viewer instead of a netCDF tool.

References

1Unidata - netCDF file format specificationsdocs.unidata.ucar.edu
2NASA GISS - Panoply netCDF viewerwww.giss.nasa.gov

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.MDMarkdown Document
4.BINCD/DVD Disc Image (BIN/CUE)
5.NOMEDIAAndroid No-Media Marker File
6.PARTPartial Download File
7.RPMSGRestricted Permission Message
8.EXEWindows Executable (Portable Executable)
9.AVIFAV1 Image File Format (AVIF)
10.DBSQLite Database File

Related extensions

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z