---
title: "FileFormat"
language: "en"
type: "Entity"
summary: "Commonly used computer file formats."
canonical_url: "https://reference.wolfram.com/language/ref/entity/FileFormat.html"
source: "Wolfram Language Documentation"
related_guides: 
  - 
    title: "Entity Types"
    link: "https://reference.wolfram.com/language/guide/EntityTypes.en.md"
---
# FileFormat

Commonly used computer file formats.		[Related Interpreter](https://reference.wolfram.com/language/ref/interpreter/FileFormat.en.md)

Entity["FileFormat", name] or Entity[...] represents an entity of type "FileFormat".

Entity[...][prop] gives the value of a specified property.

Entity[...][{propi, …}] gives the value of a list of properties.

EntityClass["FileFormat", {propi -> speci, …}] represents a class of entities with values of propi defined by speci.

## Sample Entities

* Entity["FileFormat", "CDF-1"]Entity["FileFormat", "HTML-1"]Entity["FileFormat", "JPG-1"]Entity["FileFormat", "JSON-1"]Entity["FileFormat", "MP3-1"]Entity["FileFormat", "PDF-1"]Entity["FileFormat", "PLAYLIST-1"]Entity["FileFormat", "WEBM-1"]Entity["FileFormat", "WMA-1"]Entity["FileFormat", "XLS-1"]**…**

## Sample Entity Classes

* EntityClass["FileFormat", "Audio"]EntityClass["FileFormat", "ComputableDocument"]EntityClass["FileFormat", "Database"]EntityClass["FileFormat", "DiskImage"]EntityClass["FileFormat", "Encoded"]EntityClass["FileFormat", "Executable"]EntityClass["FileFormat", "Game"]EntityClass["FileFormat", "Miscellaneous"]EntityClass["FileFormat", "RasterImage"]EntityClass["FileFormat", "Video"]**…**

## Properties

|                |                  |
| -------------- | ---------------- |
| Applications   | applications     |
| Developer      | developer        |
| EntityClasses  | entity classes   |
| EntityTypeList | entity type list |
| Extension      | extension        |
| FileSignature  | file signature   |
| MimeType       | MIME             |
| Name           | name             |
| Standard       | file standard    |
| Type           | type             |
| UniformType    | UTI              |
| Year           | release year     |

## Details

* ``"FileFormat"`` entities represent common formats used to store digital information.

* Some properties are available for the ``"FileFormat"`` entity type as a whole and can be given using the form ``EntityValue["FileFormat", property]``. Such properties include:

|                               |                                                                    |
| ----------------------------- | ------------------------------------------------------------------ |
| "Properties"                  | the list of available properties                                   |
| "PropertyCanonicalNames"      | the standard names of available properties                         |
| "SampleEntities"              | a sample list of available entities (typically of length 10)       |
| "SampleEntityClasses"         | a sample list of available entity classes (typically of length 10) |
| "EntityCount"                 | number of entities available                                       |
| "Entities"                    | the list of available entities                                     |
| "EntityCanonicalNames"        | the standard names of available entities                           |
| "EntityClasses"               | the list of available entity classes                               |
| "EntityClassCanonicalNames"   | the standard names of available entity classes                     |
| "PropertyClasses"             | the list of available property classes                             |
| "PropertyClassCanonicalNames" | the standard names of available property classes                   |
| "PropertyCount"               | number of properties available                                     |

* The following annotations can be used in the third argument of ``EntityValue["FileFormat", property, annotation]`` :

|     |     |
| --- | --- |
| "Source" | source information for the property |
| "Date" | the date associated with the entity-property value (if any) |
| "EntityAssociation" | an association of entities and entity-property values |
| "PropertyAssociation" | an association of properties and entity-property values |
| "EntityPropertyAssociation" | an association in which the specified entities are keys, and values are a nested association of properties and entity-property values |
| "PropertyEntityAssociation" | an association in which the specified properties are keys, and values are a nested association of entities and entity-property values |
| "Dataset" | a dataset in which the specified entities are keys, and values are an association of property names and entity-property values |

* The following annotations can be used in the second argument of ``EntityValue[property, annotation]`` :

|                          |                                                                 |
| ------------------------ | --------------------------------------------------------------- |
| "Qualifiers"             | the list of possible qualifiers for the property                |
| "QualifierValues"        | the list of possible values that can be given to each qualifier |
| "DefaultQualifierValues" | the list of default values for the property's qualifiers        |
| "Description"            | a brief textual description of the property                     |
| "Definition"             | a detailed textual definition of the property                   |
| "PhysicalQuantity"       | the physical quantity associated with the entity-property value |
| "Unit"                   | the unit associated with the entity-property value              |

* A qualifier value of ``Automatic`` indicates that an applicable format of values can be used; e.g. for the ``"Date"`` qualifier, this includes a proper date or date span.

---

## Examples (4)

### Basic Examples (4)

Use ctrl+= for entity discovery:

```wl
In[1]:= \[FreeformPrompt]["pdf"]

Out[1]= Entity["FileFormat", "PDF-1"]
```

---

Find a property value for an entity:

```wl
In[1]:= Entity["FileFormat", "XLS-1"]["Extension"]

Out[1]= {".dex", ".xl", ".xls"}
```

---

Retrieve a dataset of all available properties for an entity:

```wl
In[1]:= Entity["FileFormat", "JPG-1"]["Dataset"]

Out[1]=
Dataset[Association[EntityProperty["FileFormat", "Applications"] -> 
   {"Adobe Photoshop CS5", "Apple Preview", "Apple Safari", "GIMP", "Microsoft Internet Explorer", 
    "Microsoft Paint", "Mozilla Firefox", "Windows Picture and Fax Viewer", "Wo ... -> Missing["NotAvailable"], 
  EntityProperty["Thing", "EntityClasses"] -> {EntityClass["FileFormat", "RasterImage"]}, 
  EntityProperty["Thing", "EntityTypeList"] -> {EntityType["FileFormat"]}, 
  EntityProperty["Thing", "Name"] -> "JPEG Image"]]
```

---

Identify notable file types recognized by Microsoft Paint:

```wl
In[1]:= EntityClass["FileFormat", "Applications" -> MemberQ["Microsoft Paint"]]//EntityList

Out[1]= {Entity["FileFormat", "JBMP-1"], Entity["FileFormat", "JPG-1"], Entity["FileFormat", "KDI-1"], Entity["FileFormat", "MSP-2"], Entity["FileFormat", "PNG-1"], Entity["FileFormat", "THM-2"]}
```

## See Also

* [`DisplayFormat`](https://reference.wolfram.com/language/ref/entity/DisplayFormat.en.md)
* [`NotableComputer`](https://reference.wolfram.com/language/ref/entity/NotableComputer.en.md)
* [`FileFormat`](https://reference.wolfram.com/language/ref/interpreter/FileFormat.en.md)
* [`ComputedFileFormat`](https://reference.wolfram.com/language/ref/interpreter/ComputedFileFormat.en.md)
* [`FileFormat`](https://reference.wolfram.com/language/ref/textcontent/FileFormat.en.md)

## Related Guides

* [Entity Types](https://reference.wolfram.com/language/guide/EntityTypes.en.md)

## History

* [Introduced in 2019 (12.0)](https://reference.wolfram.com/language/guide/SummaryOfNewFeaturesIn120.en.md)