# 文件格式列表

文件格式是一种信息封装形式，可以存储为数据文件，也可以作为数据流（亦称比特流或字节流）通过网络传输，其编码方式使软件能够解读其中的内容<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。文本、图像、音频、视频、表格数据、地理空间数据和档案文件等内容类型中存在着数百种格式，本文综述主要格式家族、文件的识别方式，以及档案馆如何选择可长期保持可读的格式。

| 关键事实 | 详情 |
|---|---|
| 定义 | 格式是存储为数据文件或作为数据流传输的信息封装；GDFR本体将内容流格式称为“信息模型的字节序列化编码”<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup> |
| 识别信号 | 文件扩展名、声明的MIME类型、内部魔数、解析器验证，强度依次递增<sup>[2](https://openfiletools.com/guides/how-to-identify-a-file-type)</sup> |
| PRONOM注册表 | 收录超过2，000种单个文件格式的详细信息，可按名称、PUID（例如fmt/2000）或扩展名检索<sup>[3](https://pronom.nationalarchives.gov.uk/about)</sup> |
| 识别方法 | 仅扩展名、二进制签名、容器签名；仅凭扩展名最不可靠，因为扩展名很容易被更改<sup>[4](https://github.com/digital-preservation/PRONOM_Research/blob/main/Resources/Starter_Pack.md)</sup> |
| CSV标准化 | RFC 4180（2005年10月）记录了CSV格式并注册了text/csv MIME类型；CSV没有魔数<sup>[5](https://datatracker.ietf.org/doc/html/rfc4180)</sup> |
| 保存实例 | PDF/A依据ISO 19005发布，在被考察的记忆机构中被描述为格式化文本最广泛采用的保存格式<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup> |
| 风险覆盖 | 美国国家档案馆的数字保存框架包含16种记录类型、700多种文件格式的保存行动计划<sup>[7](https://www.archives.gov/preservation/digital-preservation/risk)</sup> |

## 按内容类型划分的主要格式家族

不同内容类型随时间发展出了各自的格式，以满足各自需求所特有的功能要求；主要类型有图像、视频、音频和文本，而3D模型和网络归档的格式数量也在不断增长<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。

**文档与文本。** PDF承载文本、图形和格式信息，其归档衍生物PDF/A专门为长期保存文档的视觉外观而开发，不依赖于创建、存储或渲染它的工具；PDF/A禁止不适合归档的特性，例如依赖外部字体定义、加密和启动可执行代码<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup>。PDF格式最初由Adobe作为专有格式控制，于2008年以免版税许可发布<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup>。纯分隔文本和CSV用于表格数据；杜克大学图书馆将逗号分隔值和分隔文本置于其表格数据保存层级之首，高于[Microsoft Excel](https://www.edgepedia.org/zh/microsoft-excel)格式<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。

**图像。** TIFF、PNG和可缩放矢量图形位于杜克图像层级的第一保存级别，JPEG、BMP、GIF、WebP和[JPEG 2000](https://www.edgepedia.org/zh/jpeg-2000)位于第二级别<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。TIFF支持无损数据，可容纳高分辨率图像，而JPEG是有损的，适合较小的访问副本；将JPEG同时作为访问格式和归档格式存储会造成不可挽回的数据损失<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。PNG本身有一段格式政治的来源故事：1987年[CompuServe](https://www.edgepedia.org/zh/compuserve)发布GIF后，Unisys就其底层的[Lempel-Ziv-Welch](https://www.edgepedia.org/zh/lempel-ziv-welch)压缩技术索取版税，由托马斯·布特尔（Thomas Boutell）领导的工作组为此开发了免版税的可移植网络图形格式<sup>[10](https://www.techradar.com/pro/how-a-dispute-over-royalties-gave-birth-to-the-png-file-format)</sup>。W3C于1996年发布最初的PNG规范，并于2004年将2003年标准正式化；第三版增加了高动态范围支持、通过APNG实现动画以及Exif数据存储，这是22年来的首次更新<sup>[11](https://www.tomshardware.com/software/png-has-been-updated-for-the-first-time-in-22-years-new-spec-supports-hdr-and-animation)</sup>。

**音频与视频。** 音频文件通常由封装格式（通常是与文件扩展名关联的名称）和编码方法或编解码器两部分组成<sup>[12](https://www.archives.gov/records-mgmt/policy/transfer-guidance-tables.html)</sup>。WAVE和AIFF是封装格式，可包含线性脉冲编码调制（LPCM）音频或其他声音表示，H.264视频可能存在于[QuickTime](https://www.edgepedia.org/zh/quicktime)或MPEG-4文件中<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。WAVE是Microsoft RIFF格式类的实例，该类还包括视频格式AVI<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。杜克的保存层级将WAVE、广播WAVE和AIFF置于音频第一级别，将Matroska中的FFV1、AVI和DPX置于视频第一级别<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。美国国家档案馆在PRONOM中将其WAV文件标识为PUID fmt/141和fmt/142，将其MP3文件标识为fmt/134，将其AVI文件标识为fmt/5<sup>[13](https://www.archives.gov/preservation/products/definitions/filetypes)</sup>。

**档案与容器。** ZIP和磁带归档（tar）位于杜克归档打包的第一级别，CPIO、gzip和7z位于第二级别<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。美国国会图书馆将封装和捆绑格式视为一个宽泛的类别，从TIFF到ZIP到MXF到METS；封装器将构成内容的比特流打包，并包含描述内容的元数据，更复杂的封装器如QuickTime可能包含多个对象，例如一个或多个视频流和独立的音频流<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。

**地理空间与科学数据。** 杜克将地理标记语言、GeoTIFF和OGC GeoPackage家族列为其地理空间第一级别，将ESRI Shapefile、GeoJSON、KML、LiDAR和DXF列为第二级别<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。NetCDF和HDF出现在其其他科学格式之中<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。

## 文件格式如何识别

了解一个文件是什么，需要的不仅仅是读取其扩展名。识别结合了多种线索：文件名和扩展名、MIME类型、内部字节模式、结构特征、容器信息和注册表知识<sup>[14](https://edukatesingapore.com/2026/09/12/how-file-format-identification-works/)</sup>。像report.pdf这样的文件名只是一个标签，浏览器或服务器可能附加一个MIME类型；两者都不如检查文件本身可识别的字节可靠，甚至字节签名也不是完整的安全扫描<sup>[2](https://openfiletools.com/guides/how-to-identify-a-file-type)</sup>。

**魔数与签名。** 许多二进制格式以可识别的标记开头，尽管签名和容器格式可能重叠<sup>[2](https://openfiletools.com/guides/how-to-identify-a-file-type)</sup>。JSON、XML、CSV和源代码等文本格式可能根本没有唯一的魔数<sup>[2](https://openfiletools.com/guides/how-to-identify-a-file-type)</sup>。Office文件通常是基于ZIP的包，因此仅凭最初的字节无法区分每一个DOCX、XLSX或PPTX，除非检查包结构<sup>[2](https://openfiletools.com/guides/how-to-identify-a-file-type)</sup>。

**注册表与工具。** 对于取证识别，权威答案来自PRONOM，这是由英国国家档案馆维护的技术注册表，为文件格式提供标准化、持久的标识符<sup>[15](https://pages.cs.oslomet.no/bytewitness-f95d73/module3/file_formats_identification.html)</sup>。PRONOM提供三种识别方式——仅扩展名、二进制签名和容器签名——其中二进制签名或仅扩展名检查占大多数文件类型，而容器签名出现得少得多<sup>[4](https://github.com/digital-preservation/PRONOM_Research/blob/main/Resources/Starter_Pack.md)</sup>。对于容器格式，PRONOM使用容器签名，即深入ZIP内部查找格式特定标记的识别规则，而不仅仅看外部魔数；DROID是由英国国家档案馆开发的软件应用，使用PRONOM数据扫描文件，并报告每个文件的PUID、格式名称、MIME类型和匹配方法<sup>[3](https://pronom.nationalarchives.gov.uk/about)</sup><sup> • </sup><sup>[15](https://pages.cs.oslomet.no/bytewitness-f95d73/module3/file_formats_identification.html)</sup>。其他识别和验证工具包括JHOVE，它将文件格式的实例与预期行为集进行比较，报告文件是否有效且格式良好<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。

## 选择保存格式

保存文件格式不同于访问格式、网络发布格式，在某些情况下也不同于首选数字化格式<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup>。美国国会图书馆、荷兰国家图书馆和[加拿大图书馆与档案馆](https://www.edgepedia.org/zh/library-and-archives-canada)的评估框架有两个共同标准：格式必须被广泛采用，且必须有充分记录并开放供检查<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup>。进一步的标准包括最少的外部依赖——因为依赖专有硬件、单一操作系统或外部编解码器的格式依赖于这些因素的持续可用性——以及对内部元数据的支持，即将关于内容的文档保存在与内容相同的文件中<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup>。使用该格式进行保存还不能有法律障碍，尽管一些专有格式已成为事实上的标准，其创建者鼓励其广泛使用<sup>[6](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)</sup>。

**开放与专有。** 选择并不简单。JPEG 2000等开源格式因其非专有性质而受欢迎，而TIFF等专有格式被视为稳健，但如果所有者倒闭或开发出替代品，最终仍可能过时；对于地理信息系统等某些领域，可能只有专有格式可用，因此支持的导出格式成为关键因素<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。对于当前使用，支持社区常见分析功能的专有格式可能是合适的，在这种情况下，同时提交使用副本和保存副本是一种选择<sup>[9](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)</sup>。

**过时与增殖。** 新格式或版本可能随着新软件逐步淘汰对旧格式的支持而引入过时问题，[开源](https://www.edgepedia.org/zh/open-source)和商业格式都很脆弱：供应商有时使用计划性过时策略，开源社区可能撤回支持，而当企业或社区失败时，过时也可能是偶然的<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。在某些领域，增殖比过时更具挑战性，因为一个没有规范化的组织可能积累许多格式和版本，使得难以追踪哪些有风险、哪些工具适用<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。迁移、仿真、规范化和谨慎的格式选择是用于缓解两者的策略<sup>[8](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)</sup>。

## 格式关系与版本

格式一词涵盖重叠的实体集合：扩展名层面的文件格式，如.mp3；互联网媒体类型所指示的格式，如text/html；随时间发展的版本；为特定用途定制的细化格式；以及家族特征重要的相关格式类别<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。版本历史对保存很重要：阿尔达斯公司的TIFF 5.0版被Adobe的6.0版取代，而针对电子摄影的TIFF/EP和针对出版商印前要求的TIFF/IT等细化格式被确立为ISO标准<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。比特流编码是某些文件格式的基础；LPCM和H.264特定于音频和视频等内容类别，而其他如UTF-8和[IEEE 754](https://www.edgepedia.org/zh/ieee-754)-1985则是通用的<sup>[1](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)</sup>。

## References

1. [Formats, Evaluation Factors, and Relationships, Sustainability of Digital Formats, Library of Congress](https://www.loc.gov/preservation/digital/formats/intro/format_eval_rel.shtml)
2. [How to Identify a File Type with Magic Bytes, MIME and Extension, OpenFileTools](https://openfiletools.com/guides/how-to-identify-a-file-type)
3. [About PRONOM, The National Archives (UK)](https://pronom.nationalarchives.gov.uk/about)
4. [PRONOM Research Starter Pack, digital-preservation, GitHub](https://github.com/digital-preservation/PRONOM_Research/blob/main/Resources/Starter_Pack.md)
5. [RFC 4180: Common Format and MIME Type for Comma-Separated Values (CSV) Files, IETF, October 2005](https://datatracker.ietf.org/doc/html/rfc4180)
6. [Digital Preservation File Format Recommendations, National Heritage Digitization Strategy, Canada.ca](https://www.canada.ca/en/heritage-information-network/services/digital-preservation/recommendations-file-format.html)
7. [Digital Preservation Framework for Risk Assessment and Preservation Planning, National Archives (US)](https://www.archives.gov/preservation/digital-preservation/risk)
8. [File formats and standards, Digital Preservation Coalition](https://www.dpconline.org/component/content/article/file-formats-and-standards?Itemid=501&catid=78)
9. [Recommended File Formats for Digital Preservation, Duke University Libraries](https://library.duke.edu/using/policies/recommended-file-formats-digital-preservation)
10. [How a dispute over royalties gave birth to the PNG file format, TechRadar](https://www.techradar.com/pro/how-a-dispute-over-royalties-gave-birth-to-the-png-file-format)
11. [PNG has been updated for the first time in 22 years, Tom's Hardware](https://www.tomshardware.com/software/png-has-been-updated-for-the-first-time-in-22-years-new-spec-supports-hdr-and-animation)
12. [Appendix A: Tables of File Formats, National Archives (US)](https://www.archives.gov/records-mgmt/policy/transfer-guidance-tables.html)
13. [Digital File Types, National Archives (US)](https://www.archives.gov/preservation/products/definitions/filetypes)
14. [How File Format Identification Works, Edukate Singapore](https://edukatesingapore.com/2026/09/12/how-file-format-identification-works/)
15. [Identifying File Formats, Document Forensics, Oslo Metropolitan University](https://pages.cs.oslomet.no/bytewitness-f95d73/module3/file_formats_identification.html)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › 数据格式与序列化 › 文本、编码与归档

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/list-of-file-formats

English original: https://www.edgepedia.org/list-of-file-formats
