Data file formats

Files that hold information for programs to read: structured text, binary serialisation, databases, scientific and map data, AI models, messages and calendars, and the formats that compress files or bundle many files into one.

Subcategories

All data file formats

FormatNameAboutReferenceViewerEditorOpen
Structured text
.CSVComma-separated valuesA plain text table, one record per line, fields split by commas.fullfullOpen
.INIINI configuration fileConfiguration text: sections in brackets, then key=value lines.partialpartialOpen
.JSONJavaScript Object NotationText format for objects, arrays, strings, numbers and booleans.fullfullOpen
.JSONJSON SchemaA JSON document that describes and validates other JSON documents.partialpartialOpen
.JSON5JSON5JSON with comments, trailing commas and unquoted keys, for hand editing.fullfullOpen
.JSONLJSON LinesOne JSON value per line, so records can be streamed and appended.fullfullOpen
.MOgettext MO binary catalogueCompiled catalogue: sorted string tables and a hash table, in either byte order.partialpartialOpen
.POgettext PO message catalogueText catalogue of messages and their translations: entries, plurals, contexts and comments.partialpartialOpen
.POTgettext POT templateTranslation template: every message of a program, with empty translations.partialpartialOpen
.TOMLTom’s Obvious Minimal LanguageConfiguration text: tables in brackets, then key = value lines.fullfullOpen
.TSVTab-separated valuesA plain text table, one record per line, fields split by tabs.fullfullOpen
.XMLExtensible Markup LanguageNested elements with tags and attributes, written as text.partialpartialOpen
.YAMLYAML Ain’t Markup LanguageIndented text for configuration: maps, lists and values.partialpartialOpen
Binary serialisation
.AVROApache Avro object container fileRecords in compact binary, with their JSON schema in the file header.fullfullOpen
.BSONBinary JSONMongoDB’s documents: typed, length-prefixed elements in binary.partialpartialOpen
.CBORConcise Binary Object RepresentationIETF standard binary values, each led by a major type and length.partialOpen
.MSGPACKMessagePackJSON-like values in compact binary, each led by a type byte.fullfullOpen
.PBProtocol Buffers message (no schema)Google’s compact binary messages, defined by a .proto schema.partialpartialOpen
.PKLPython pickleSaved Python objects, rebuilt by stack-machine opcodes when loaded.fullfullOpen
.SERJava serialised objectJava objects written by ObjectOutputStream, starting AC ED 00 05.partialOpen
Database
.DB-JOURNALSQLite rollback journal (-journal)The original pages an SQLite transaction changes, kept to roll it back after a crash.fullfullOpen
.DB-WALSQLite write-ahead log (-wal)The pages an SQLite transaction changed, kept beside the database until a checkpoint.fullfullOpen
.DBFdBASE tableOne dBASE table: a header, field list, then fixed-length text records.partialOpen
.DUCKDBDuckDB database fileAn analytical SQL database in one file, its tables stored by column.partialOpen
.EDBExtensible Storage Engine databaseMicrosoft's ESE (JET Blue) database: Windows Search, Active Directory, Exchange.partialpartialOpen
.GDBMGDBM databaseA GNU GDBM hash-table file; SQLite 1.0 kept each table and index in one.partialpartialOpen
.MDBMicrosoft Access databaseMicrosoft Access tables, queries and forms in one file, on Jet or ACE.partialOpen
.ODBOpenDocument databaseThe LibreOffice Base database front end: a connection, queries, forms and reports, often with the data itself.partialOpen
.PARQUETApache ParquetLarge tables stored column by column, compressed, with metadata at the end.partialOpen
.SQLSQL database dumpA database backup as SQL text: CREATE TABLE, then INSERT for every row.partialpartialOpen
.SQLITESQLite 2 databaseSQLite 2.6 to 2.8’s file: 1,024-byte pages in the machine’s byte order, every value text.fullfullOpen
.SQLITESQLite 3 databaseA whole SQL database in one file: pages of b-trees, typed values, UTF-8 or UTF-16 text.fullfullOpen
Scientific
.ARROWApache Arrow IPC fileColumnar tables in Arrow’s in-memory layout, ready to memory-map.partialOpen
.CELLSPlaintext Game of Life patternGame of Life pattern as text: !Name: comment lines, then rows of . and O.partialpartialOpen
.H5Hierarchical Data Format version 5Groups and large numeric datasets, organised like a file system.fullpartialOpen
.HDFHierarchical Data Format version 4The older HDF: tagged objects found through data descriptor blocks.partialOpen
.LIFLife 1.05 patternGame of Life pattern: #Life 1.05, #D, #N or #R, #P blocks of dots and stars.partialpartialOpen
.LIFLife 1.06 patternGame of Life pattern as a list: #Life 1.06, then one live cell a line, x y.partialpartialOpen
.LIFLife pattern without a version lineOlder Game of Life patterns: the Life 1.05 layout with no #Life line.partialpartialOpen
.LIFLife pattern (x grid)Game of Life patterns drawn as rows of x and spaces, with no header.partialpartialOpen
.MATMATLAB data fileVariables saved from MATLAB, in tagged data elements or in HDF5.partialOpen
.MCGolly macrocellGame of Life universe as a quadtree: [M2], #R, #G, 8x8 leaf lines and node lines.partialpartialOpen
.MCLMCell patternMCell cellular automaton pattern: #MCell, #GAME, #RULE, #BOARD, #D and #L cell lines.partialpartialOpen
.NCNetCDF classicGridded science data: a CDF header of dimensions and variables, then arrays.fullpartialOpen
.NCNetCDF-4NetCDF data stored in an HDF5 file, with compression, chunks and groups.partialpartialOpen
.NPYNumPy arrayOne NumPy array: a short text header with shape and type, then raw values.partialpartialOpen
.RLEGolly RLE patternRun-length encoded Game of Life pattern: x = , y = , rule = header, then b, o and $ runs.partialpartialOpen
.ROOTCERN ROOT data fileParticle physics data from CERN’s ROOT: compressed objects, trees and histograms.partialOpen
.RULEGolly cellular automaton ruleGolly rule: @TABLE transitions or @TREE, with state names, colours and icons.partialpartialOpen
.XYZXYZ molecule geometryAtom positions of a molecule: a count, a comment, then one atom per line.partialOpen
Geospatial
.GEOJSONGeoJSONMap points, lines and areas with properties, written as JSON.fullfullOpen
.GPKGGeoPackageMap layers and tiles in one SQLite database, an OGC standard.partialOpen
.GPXGPS Exchange FormatGPS waypoints, routes and recorded tracks, written in XML.fullfullOpen
.KMLKeyhole Markup LanguageGoogle Earth’s placemarks, paths and areas with styles, written in XML.partialOpen
.MBTILESMBTilesA set of map tiles, images or vector tiles, in one SQLite database.partialOpen
.PBFOpenStreetMap PBFOpenStreetMap nodes, ways and relations in compressed Protocol Buffers blocks.fullpartialOpen
.SHPEsri shapefileEsri’s vector map data: shapes in .shp, index in .shx, attributes in .dbf.partialOpen
.TIFGeoTIFFA TIFF image with tags that place it on the Earth: maps, satellite images, heights.partialOpen
AI
.BINGGML model fileThe model format of ggml and whisper.cpp from before GGUF.partialOpen
.CKPTModel checkpointA training snapshot: weights, optimiser state and step counts.partialOpen
.ENGINETensorRT engineA model compiled by TensorRT for one NVIDIA GPU and TensorRT version.Open
.FSTOpenFst transducerOpenFst’s binary finite-state transducer: a header and symbol tables, then the states.partialpartialOpen
.GGUFGGUF model fileA language model for llama.cpp: metadata and quantised weights.partialpartialOpen
.JSONHugging Face model configconfig.json: a model’s architecture and sizes, read before the weights.partialOpen
.JSONHugging Face tokenizertokenizer.json: a language model’s vocabulary and tokenising rules.partialOpen
.KERASKeras modelA whole Keras model: JSON config and HDF5 weights in a ZIP archive.partialOpen
.MLMODELCore ML modelA model for apps on Apple devices, as a Protocol Buffers message.partialOpen
.ONNXONNX model (ModelProto)A neural network’s graph and weights in one Protocol Buffers message.partialpartialOpen
.PBTensorFlow GraphDef (frozen graph)A TensorFlow graph of operations; frozen graphs hold the weights as constants.partialpartialOpen
.PBONNX sequence or optional value (SequenceProto, OptionalProto)An ONNX sequence or optional value: tensors in a list, as used by ONNX’s test data.fullfullOpen
.PBONNX tensor (TensorProto)One ONNX tensor: shape, data type and values, as used by ONNX’s test data.fullfullOpen
.PBTensorFlow SavedModel (saved_model.pb)A TensorFlow model folder: saved_model.pb graph, variables and assets.partialpartialOpen
.PTPyTorch modelTensors saved by torch.save: a pickle and raw data in a ZIP archive.partialOpen
.SAFETENSORSLoRA adapterSmall low-rank A and B matrices that adjust a base model’s layers.partialOpen
.SAFETENSORSSafetensorsModel weights after a JSON header, safe to load with no code.fullfullOpen
.TFLITETensorFlow Lite modelA model for phones and small devices, as one FlatBuffers file.partialOpen
Message & calendar
.EMLEmail messageOne email as sent: header fields, then a body with MIME parts.partialpartialOpen
.EMLXApple Mail messageOne Apple Mail message: a byte count, the email, then a property list.partialpartialOpen
.ICSiCalendarCalendar events, to-dos and time zones as text content lines.partialpartialOpen
.JCALjCal: iCalendar in JSONiCalendar as JSON: events, to-dos and time zones as nested arrays.partialpartialOpen
.JCARDjCard: vCard in JSONvCard 4.0 contacts as JSON: names, numbers and addresses as arrays.partialpartialOpen
.MBOXMailboxA mail folder in one text file, each message after a From line.partialpartialOpen
.MSGOutlook messageOne Outlook item, its properties stored as streams in a compound file.partialpartialOpen
.PSTOutlook data fileA whole Outlook mailbox: folders, mail, calendar and contacts.partialpartialOpen
.VCFvCard contactContact cards: names, numbers and addresses as text lines.partialpartialOpen
.VCSvCalendarThe calendar format before iCalendar, used by older phones and Outlook.fullfullOpen
.XCARDxCard: vCard in XMLvCard 4.0 contacts as XML: names, numbers and addresses as elements.partialpartialOpen
.XCSxCal: iCalendar in XMLiCalendar as XML: events, to-dos and time zones as elements.partialpartialOpen
Compression
.BRBrotli compressed fileGoogle’s web compression, with a built-in dictionary of common text.partialpartialOpen
.BZ2Bzip2 compressed fileOne file compressed with the Burrows–Wheeler transform.partialpartialOpen
.DCBDictionary-Compressed BrotliBrotli that uses a dictionary: a hash header, then a shared Brotli stream.partialpartialOpen
.DCZDictionary-Compressed ZstandardZstandard that uses a dictionary: a hash header, then a Zstandard stream.partialpartialOpen
.GZGzip compressed fileOne file compressed with DEFLATE, with a small header and CRC.partialpartialOpen
.LZLzip compressed fileOne file compressed with LZMA in a simple container built for archiving.fullpartialOpen
.LZ4LZ4 compressed fileVery fast compression, in a frame of sized blocks with checksums.fullfullOpen
.LZMALZMA compressed fileOne file compressed with LZMA after a 13-byte header; replaced by xz.fullfullOpen
.XZXZ compressed fileOne file compressed with LZMA2, in indexed, checked blocks.fullfullOpen
.ZUnix compress fileThe old Unix compress format: LZW codes after a 3-byte header.fullfullOpen
.ZSTZstandard compressed fileFast modern compression from Facebook, in frames of typed blocks.partialpartialOpen
Archive
.7Z7z archive7-Zip’s archive: solid LZMA2 compression, file list at the end.partialpartialOpen
.ARJARJ archiveA popular 1990s DOS archiver, with headers starting 60 EA.partialOpen
.CABMicrosoft CabinetMicrosoft’s installer archive: files in compressed folders after an MSCF header.partialOpen
.CPIOcpio archiveA simple Unix archive, used inside initramfs, RPM and macOS packages.partialOpen
.LZHLHA archiveThe DOS-era archiver popular in Japan and on the Amiga.partialOpen
.RARRAR 1.5 to 4.x archive (RAR4)The older RAR format: blocks with a fixed 7-byte header and 16-bit CRC.partialpartialOpen
.RARRAR 5.0 archive (RAR5)WinRAR’s current archive: CRC-32 block headers with variable-length numbers.fullpartialOpen
.SITStuffIt archiveThe classic Mac archive, keeping resource forks, types and creators.partialOpen
.TARGNU tar archiveGNU tar’s own header: times and sparse maps where ustar has the prefix, and long-name entries.partialpartialOpen
.TARSchily tar archive (star)star’s header: a 131-byte prefix, with access and change times in the bytes after it.partialpartialOpen
.TARPOSIX ustar and pax archiveThe POSIX header with “ustar” magic, owner names and a 155-byte prefix; pax adds records.partialpartialOpen
.XARExtensible archiveAn archive with an XML table of contents, used inside macOS .pkg files.partialpartialOpen
.ZIPZIP archiveFiles compressed one by one, listed again in a directory at the end.partialfullOpen
._AppleDouble and AppleSingleThe ._ files macOS writes beside files on other file systems, with their resource fork, Finder info and extended attributes.partialpartialOpen
Saved game
.CDRElite commander fileAn Elite commander: PC Elite's 208 bytes or the 6502 versions' 256 bytes with checksums, with the galaxy drawn from its seeds.partialpartialOpen
.CFGTyrian configurationTyrian's TYRIAN.CFG: 28 bytes of detail level, game speed, volumes, joystick buttons and keys.partialpartialOpen
.SAVTyrian saved gamesTyrian's TYRIAN.SAV: 22 save slots and the high scores in 2,502 scrambled bytes with four checksums, every field and item shown by name.partialpartialOpen
Web site files
.ADS.TXTads.txt (Authorized Digital Sellers)The advertising systems a publisher authorises to sell its space.partialpartialOpen
.AI-PLUGIN.JSONai-plugin.json (ChatGPT plugin, legacy)The manifest of a ChatGPT plugin: names, descriptions, auth and the OpenAPI address. Legacy.partialpartialOpen
.APP-ADS.TXTapp-ads.txt (Authorized Sellers for Apps)The advertising systems a developer authorises to sell an app's space.partialpartialOpen
.APPLE-APP-SITE-ASSOCIATIONapple-app-site-association (associated domains)Which apps open a site's links, use its credentials, or are its App Clips.partialpartialOpen
.ASSETLINKS.JSONassetlinks.json (Digital Asset Links)Which Android apps and sites a site delegates permissions to, such as opening its links.partialpartialOpen
.ATOMAtom 1.0 feedA feed of entries with ids, titles and update times (RFC 4287).partialpartialOpen
.BROWSERCONFIG.XMLbrowserconfig.xml (pinned site tiles)Tile images, colour and notifications of a pinned site (Internet Explorer 11).partialpartialOpen
.CLIENTACCESSPOLICY.XMLclientaccesspolicy.xml (Silverlight policy)Which domains may call a service from Silverlight, and what they are granted.partialpartialOpen
.CROSSDOMAIN.XMLcrossdomain.xml (cross-domain policy)Which other domains Flash Player and Acrobat may load data from.partialpartialOpen
.HOST-METAhost-meta (Web Host Metadata)Links that describe a whole host, as XRD or JSON, with templates for its resources.partialpartialOpen
.HUMANS.TXThumans.txt (the people behind a site)Credits for the team behind a site: TEAM, THANKS and SITE headings.partialpartialOpen
.LLMS.TXTllms.txt (site overview for language models)A Markdown guide to a site for language models: a title, a summary and lists of links.partialpartialOpen
.MATRIX-CLIENTMatrix client discoveryWhere a Matrix client finds the homeserver of a user ID's domain.partialpartialOpen
.MATRIX-SERVERMatrix server delegationWhich host and port other Matrix homeservers use to reach this server name.partialpartialOpen
.MTA-STS.TXTmta-sts.txt (MTA-STS policy)A mail domain's policy for TLS delivery: mode, allowed MX hosts, cache time.partialpartialOpen
.NODEINFONodeInfo discoveryLinks from a federated server to its NodeInfo documents, one for each schema version.partialpartialOpen
.OAUTH-AUTHORIZATION-SERVERoauth-authorization-server (RFC 8414)An OAuth 2.0 authorization server's issuer, endpoints and supported lists.partialpartialOpen
.OPENID-CONFIGURATIONopenid-configuration (OpenID Provider metadata)An OpenID Provider's issuer, endpoints and supported lists.partialpartialOpen
.OPENSEARCH.XMLOpenSearch description documentHow a browser searches a site: names, URL templates and icons.partialpartialOpen
.ROBOTS.TXTrobots.txt (Robots Exclusion Protocol)Which paths a web crawler may fetch: groups of allow and disallow rules.partialpartialOpen
.RSSRSS 2.0 feedA channel of items that a feed reader fetches.partialpartialOpen
.SECURITY.TXTsecurity.txt (vulnerability disclosure contacts)Where to report a vulnerability: contacts, policy and expiry (RFC 9116).partialpartialOpen
.SITEMAP.XMLSitemap (Sitemaps XML protocol)The pages of a site for search engines: a urlset, or an index of sitemaps.partialpartialOpen
.WEBFINGERWebFinger response (JRD)What a server knows about one resource: subject, aliases, properties and links.partialpartialOpen
.WEBMANIFESTWeb app manifestDescribes an installable web app: name, icons, start page, display mode, colours.partialpartialOpen