Import images, sounds, 3D models, spreadsheets, tabular data, molecular data... just about any common file format.

As a Whole...

Import any file type with Import:

Out[1]=
Out[2]=
Out[3]=
  • Import infers the file type from the extension. If the extension is missing or inaccurate, give the file type explicitly in the second argumentfor example, Import["apples","PNG"].

Extracting Only Desired Elements...

Find out what elements are available in a file

Specify "Elements" to get a list of the elements available for import from a file:

Out[4]=

Import a single element

Specify the name of an element to import just that element:

Out[5]=

Import multiple elements

Import multiple elements by putting them in a doubly nested list:

Out[6]=

Notes

Import supports all of the formats returned by $ImportFormats:

In[7]:=
Click for copyable input
Import will import from URLs:
In[8]:=
Click for copyable input
Out[8]=