Importing and Exporting—Wolfram Documentation (original) (raw)

The Wolfram Language automatically handles hundreds of data formats and subformats—all coherently integrated through the Wolfram Language's uniform use of symbolic expressions. For each particular format, the correspondence between representations inside and outside the Wolfram Language can be specified at any level of detail using the Wolfram Language's general data elements mechanism.

Import — import from files and URLs

Export — export data, graphics, and expressions to files

ImportString, ExportString — import, export string data

ImportByteArray, ExportByteArray — import, export binary data

$ImportFormats, $ExportFormats — lists of supported formats

FileFormat, FileFormatQ — try to determine the format of a file

StringFormatStringFormatQByteArrayFormatByteArrayFormatQ

FileFormatPropertiesSetFileFormatPropertiesFileNameToFormatListMIMETypeToFormatList

DataConnectionObject — connection to data stores (Amazon S3, Azure blobs, Dropbox, etc.)

NotebookImport — import specified elements from a notebook

SendMailSendMessageCopyToClipboardPaste

CreateArchive, ExtractArchive — create, extract compressed file archives

CloudImportCloudExportURLExecuteWebExecuteWebImage

Basic Formats »

"Table""List""String""Text""Binary"...

Raster Image Formats »

"JPEG""PNG""TIFF""Raw""AVIF""WebP""OpenEXR"...

Vector Graphics Formats »

"SVG""EPS""PDF""DXF"...

3D Geometry & Modeling Formats »

"PLY""DAE""OFF""OBJ""Maya""POV""LWO""STL"...

Audio Formats »

"WAV""AIFF""MP3""MIDI""SND""FLAC"...

Multimedia Formats »

"MP4""QuickTime""AVI""Matroska""Ogg"...

Tabular & Spreadsheet Formats »

"Table""CSV""TSV""XLS""ODS""SXC"...

"RawJSON""ExpressionJSON""JSON""UBJSON""BSON"...

External Language Formats

"PythonExpression""JavaScriptExpression"

Database Formats »

"MDB""DBF""DIF""XLS""BSON"...

"Turtle""NTriples""JSONLD""RDFXML""SPARQLQuery" ▪ ...

Scientific & Medical Data Formats »

"HDF5""NASACDF""FITS""DICOM""EDF"...

Chemical & Biomolecular Formats »

"MOL""SDF""SMILES""PDB""GenBank""FASTA"...

Geospatial Formats »

"SHP""USGSDEM""GTOPO30""SDTS""TIGER""SP3""GeoJSON"...

Numerical Data Formats »

"XPORT""MAT""MTX""HarwellBoeing""MPS"...

Mathematical Data Formats »

"Graphlet""DOT""GraphML""Graph6""MAT""MTX"...

System Modeling Formats »

"MO""SMA""SME""FMU""MCTT"...

Machine Learning Formats

"WMLF""WLNet""MXNet""HDF5""JSON""CSV"

Document Formats »

"CDF""PDF""HTML""NB""RTF""TeX""Text"...

Web Formats »

"HTML""HTMLFragment""Markdown""JPEG""PNG""X3D""JSON""WARC"...

"PDF""EPS""TeX""TeXFragment""SCT""ACO"...

Mail & Message Formats »

"EML""MBOX""RSS"

XML Formats »

"XML""XHTML""MathML""SVG""X3D""ODS"...

Systems & Utility Formats »

"C""Directory""ApacheLog""Ini""VCF""ICS""RSS"...

"HTTPRequest""HTTPResponse""WARC""PCAP"

Compression & Archive Formats »

"Base64""BZIP2""GZIP""TAR""UUE""ZIP""WDX"...

Binary Formats »

"Bit""Byte""Integer16""Real32""TerminatedString""UBJSON"...

Wolfram Language Formats »

"WL""NB""WXF""MX"

File Operations »

FileNames — list names of files or directories at any depth in the file system

CopyFileRenameFileDeleteFile...

File Format Conversion

FileConvert — convert the content of a file from one format to another

Lower-Level Functions

ReadListWriteReadByteArrayBinaryReadListBinaryWrite

BinarySerializeBinaryDeserializeBaseEncodeBaseDecode

Handling Missing Data

Missing — symbolic representation of missing data

DeleteMissing — delete all missing data

Handling Raw Imported Data

ImportedObject — raw imported data with no special Wolfram Language representation