.CDF file extension

To open .CDF files on Windows, if you have MATLAB installed, use MATLAB’s CDF functions (for example, start by inspecting metadata with MATLAB’s CDF tools such as cdfinfo).

To open a .cdf file (NASA Common Data Format), use a scientific data tool that supports NASA CDF, such as MATLAB, Wolfram Language, or Python with SpacePy/CDFlib. If you don’t have a compatible app, install a CDF-capable tool rather than renaming the file extension.

Last updated: June 11, 2026 · Reviewed by Julian Stricker

What “reviewed” means on this page
  • Format fit: whether the “what is this file?” description matches common real-world use of the extension, including category, typical MIME types, and aliases.
  • Opening paths: whether Windows / macOS / Linux steps read plausibly for current OS dialogs and default apps; we remove fantasy menus and unsafe shortcuts.
  • Security framing: whether risk notes match the extension class (for example executables vs plain data) and whether affiliate wording does not contradict the security section.
  • Sources and further reading: whether external links point to vendors, standards bodies, or other primary references where possible; we avoid inventing details we cannot ground.
  • Limits: this is clarity and safety-messaging QA, not a guarantee that every statement is exhaustive or that every binary you download is harmless.

Full methodology in the Imprint The Imprint also states where AI is used and what that does—and does not—replace.

Open on your device

Choose your operating system for a dedicated step-by-step opening guide.

How to open .CDF files

Use these platform-specific instructions to open .CDF files safely.

Windows

  1. If you have MATLAB installed, use MATLAB’s CDF functions (for example, start by inspecting metadata with MATLAB’s CDF tools such as cdfinfo).
  2. If you use Python, install and use a NASA CDF-capable library (commonly SpacePy or CDFlib) to read variables and metadata.
  3. If you use Wolfram Language, import it as a NASACDF file (Wolfram documents NASACDF import/export support).
Full Windows guide

Mac

  1. In MATLAB, inspect the file’s contents/metadata with MATLAB’s CDF tooling (e.g., begin with cdfinfo) and then read variables as needed.
  2. With Python, use a CDF-reading library such as SpacePy or CDFlib to load the dataset and explore variables.
  3. With Wolfram Language, use its NASACDF import support to load the file.
Full Mac guide

Linux

  1. Use Python with a CDF library (commonly SpacePy or CDFlib) to open and inspect variables and metadata.
  2. If you have access to NASA CDF command-line utilities on your system, use them to inspect/export data (the NASA CDF site lists tools such as CDFexport).
  3. If you also have MATLAB available on your Linux setup, use MATLAB’s CDF functionality to inspect/read the file.
Full Linux guide

iOS

  1. iOS typically won’t open NASA .cdf data files directly in a standard viewer; transfer the file to a desktop system and open it with MATLAB, Python (SpacePy/CDFlib), or Wolfram Language.
Full iOS guide

Android

  1. Android typically won’t open NASA .cdf data files directly in a standard viewer; transfer the file to a desktop system and open it with MATLAB, Python (SpacePy/CDFlib), or Wolfram Language.
Full Android guide

Security notes

  • .cdf (NASA CDF) is a data container, not a script or macro format, but it can still be risky to open unknown files because complex scientific parsers can have bugs; prefer well-maintained libraries and updated analysis tools.
  • If a .cdf file comes from an untrusted source and your tool reports parsing errors or crashes, stop and try opening it in a safer, sandboxed environment or with alternative CDF tooling to rule out corruption.
  • Be cautious with automated pipelines that ingest .cdf files from external sources; validate expected variables/metadata before using the data downstream (e.g., before exporting or converting).

If you did not expect this file

This extension is usually plain data, text, or structured content—not a program by itself. The practical risk is social engineering (a scam attachment or misleading filename). For trusted senders you rarely need heavy-handed antivirus wording; use these tools when you want an extra check on unexpected downloads.

We may earn a commission when you use affiliate links. This supports our free file extension guides.

Can't open this file?

These are the most common causes and fixes when .CDF files fail to open.

Common reasons

  • The file won’t open or looks like “unknown/unsupported format”
  • You can open the file but don’t know what variables mean
  • Your script reads the file but data values look wrong (fill values, time variables, or scaling)
  • Confusion between single-file and other CDF storage/layout options

Fix steps

  1. Try a tool that explicitly supports NASA CDF (e.g., MATLAB CDF functions, Wolfram Language NASACDF import, or Python with SpacePy/CDFlib).
  2. If it still fails, confirm the file is actually a NASA CDF (not just a .cdf extension used by something else) by checking the source that provided it and trying NASA CDF-focused tooling.

What is a .CDF file?

NASA CDF (Common Data Format) is a self-describing file format designed for storing scientific data, including scalar and multidimensional arrays, along with rich metadata. The primary container is typically a single file using the .cdf extension, though the CDF system also supports different storage/layout options described in the official user guide and format specification.

Background

NASA’s Common Data Format (CDF) is widely used in space physics and other scientific workflows that need portable, self-describing datasets. “Self-describing” means the file carries metadata (variable names, types, units, time bases, etc.) needed to interpret the stored values, which helps when sharing data across tools and teams.

The NASA CDF ecosystem includes official libraries and interfaces for multiple languages (including C, Fortran, Java, IDL, and MATLAB) and is documented by NASA’s Space Physics Data Facility. In practice, .cdf files are often handled programmatically (e.g., in Python) or via analysis environments (e.g., MATLAB or Wolfram Language) rather than with a general-purpose “viewer.”

Because .cdf is a generic-looking extension, it can be used by other, unrelated formats in the wild. If you are not sure whether your file is a NASA CDF, the safest approach is to try opening it with a tool that specifically supports NASA CDF and see whether it recognizes the structure and metadata.

Common MIME types: application/x-cdf

Further reading

Authoritative resources for more details on the .CDF format.

Common .CDF issues

The file won’t open or looks like “unknown/unsupported format”

Many programs do not support NASA CDF, and “.cdf” can also be used for unrelated file types. If the tool you chose doesn’t explicitly support NASA CDF, it may fail immediately.

  1. Try a tool that explicitly supports NASA CDF (e.g., MATLAB CDF functions, Wolfram Language NASACDF import, or Python with SpacePy/CDFlib).
  2. If it still fails, confirm the file is actually a NASA CDF (not just a .cdf extension used by something else) by checking the source that provided it and trying NASA CDF-focused tooling.

You can open the file but don’t know what variables mean

CDF files often store multiple variables plus metadata; without inspecting attributes and variable descriptions, the data can be hard to interpret.

  1. Inspect metadata first (for MATLAB, start with functions like cdfinfo; in Python, list variables and their attributes using your CDF library).
  2. Look for variable attributes (units, descriptions, fill values) before plotting or exporting.

Your script reads the file but data values look wrong (fill values, time variables, or scaling)

Scientific CDF datasets commonly include fill values for missing data and may store time in specific time representations; misinterpreting these can make plots or statistics look incorrect.

  1. Check the variable attributes/metadata for fill values and time-related attributes before analysis.
  2. Export or transform data using a CDF-aware tool (the NASA CDF site lists utilities such as CDFexport) to verify your interpretation.

Confusion between single-file and other CDF storage/layout options

NASA’s documentation discusses different storage options/layouts; most users encounter a single .cdf container, but documentation details can be confusing when troubleshooting.

  1. Treat the .cdf you received as the main container file and consult the official user guide if you suspect a nonstandard layout.
  2. If the dataset provider mentions a specific CDF layout/storage option, follow their instructions and verify you have all required files.

FAQ

What is a .cdf file most commonly?

Most commonly, .cdf refers to NASA’s Common Data Format (CDF), a self-describing scientific data format used for multidimensional datasets and metadata.

Can MATLAB open NASA .cdf files?

Yes. MATLAB provides CDF support (for example, you can inspect CDF metadata with the documented function cdfinfo).

Can I open .cdf files in Python?

Yes. The NASA CDF “Reading CDF” page lists Python options such as CDFlib and SpacePy for reading NASA CDF files.

Is application/x-cdf an official, registered MIME type?

Wolfram’s NASACDF documentation uses application/x-cdf for .cdf, but it is not shown as an IANA-registered top-level media type entry in the IANA media types registry.

Similar file extensions

Compare related formats in the same category to find the right tool faster.