This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
Export
exports data to a file, converting it to the format corresponding to the file extension ext.
Export
exports data in the specified format.
Export
exports data by treating exprs as elements specified by elems.
  • Export attempts to render expr in the appropriate format for the file. Among the possible forms for expr is normally the form that would be obtained from Import.
  • There are four common types of element specifications:
data representation specifications (e.g. , )
format specifications (e.g. "GIF", "GZIP", "XLS")
options, properties, and settings (e.g. ImageSize, SampleRate)
metadata information (e.g. )
  • In Export the elements can have the following basic forms:
"format"use the default element for the specified format
elemexport a single element assuming the default format
{"format",elem}export an element assuming the specified format
{"comp1",...,"format",...}use also compression formats (e.g. "GZIP")
{elem1,{elem11,elem12,...}}export the as subelements of
  • Forms of elements often supported include:
"Data"give data in a generic form (list, string, etc.)
"Image"give images as Image objects
"Graphics"give graphics or geometry as a Graphics object
"Graphics3D"give 3D graphics or geometry as a Graphics3D object
"Sound"give sound as a Sound object
"Grid"give a grid of data as a list or a Grid, etc.
"Rules"give explicit rules for elements to export
  • With the element specification, the rules in exprs can have the following basic forms:
elem->vala value for a single element
{elem1->val1,elem2->val2,...}values for several elements
elem1->{elem11->val11,...}values for subelements
  • Export exports data to a pipe.
  • Many options can be given using Export.
  • The names of options specific to particular formats and elements are normally strings.
Export an image object:
Export a plot as a GIF:
Export a formula as a GIF:
Export a sound as a MIDI file:
Export an image object:
In[1]:=
Click for copyable input
Out[1]=
 
Export a plot as a GIF:
In[1]:=
Click for copyable input
Out[1]=
 
Export a formula as a GIF:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
 
Export a sound as a MIDI file:
In[1]:=
Click for copyable input
Out[1]=
New in 4 | Last modified in 7