匯出 Google Workspace 文件的 MIME 類型
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
下表顯示 Google Workspace 文件如何對應至匯出 MIME 類型:
文件類型 |
格式 |
MIME 類型 |
副檔名 |
文件 |
Microsoft Word |
application/vnd.openxmlformats-officedocument.wordprocessingml.document |
.docx |
|
OpenDocument |
應用程式/vnd.oasis.opendocument.text |
.odt |
|
RTF 格式 |
application/rtf |
.rtf |
|
PDF |
應用程式/pdf |
.pdf |
|
純文字 |
文字/純文字 |
.txt |
|
網頁 (HTML) |
應用程式/zip |
.zip |
|
EPUB |
application/epub+zip |
.epub |
|
Markdown |
text/markdown |
.md |
試算表 |
Microsoft Excel |
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
.xlsx |
|
OpenDocument |
應用程式/vnd.oasis.opendocument.spreadsheet |
.ods |
|
PDF |
應用程式/pdf |
.pdf |
|
網頁 (HTML) |
應用程式/zip |
.zip |
|
逗號分隔值 (僅限第一個工作表) |
文字/csv |
.csv |
|
定位點分隔值 (僅限第一個工作表) |
text/tab-separated-values |
.tsv |
簡報 |
Microsoft PowerPoint |
application/vnd.openxmlformats-officedocument.presentationml.presentation |
.pptx |
|
ODP |
應用程式/vnd.oasis.opendocument.presentation |
.odp |
|
PDF |
應用程式/pdf |
.pdf |
|
純文字 |
文字/純文字 |
.txt |
|
JPEG (僅限第一張投影片) |
圖片/jpeg |
.jpg |
|
PNG (僅限第一張投影片) |
圖片/png |
.png |
|
可擴充向量圖形 (僅限第一張投影片) |
image/svg+xml |
.svg |
繪圖 |
PDF |
應用程式/pdf |
.pdf |
|
JPEG |
圖片/jpeg |
.jpg |
|
PNG |
圖片/png |
.png |
|
可縮放向量圖形 |
image/svg+xml |
.svg |
Apps Script |
JSON |
application/vnd.google-apps.script+json |
.json |
Google Vids |
MP4 |
application/mp4 |
.mp4 |
您也可以使用 Google Apps Script 匯出 Google Workspace 文件。如要進一步瞭解使用 Apps Script 匯出內容時支援的格式,請參閱
Google 文件、
Google 試算表和 Google 簡報的參考文件。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-29 (世界標準時間)。
[null,null,["上次更新時間:2025-08-29 (世界標準時間)。"],[],[],null,["# Export MIME types for Google Workspace documents\n\nThe following table shows how Google Workspace documents map to export [MIME\ntypes](https://www.iana.org/assignments/media-types/media-types.xhtml):\n\n| Document Type | Format | MIME Type | File Extension |\n|-------------------|---------------------------------------------|---------------------------------------------------------------------------|----------------|\n| **Documents** | Microsoft Word | application/vnd.openxmlformats-officedocument.wordprocessingml.document | .docx |\n| | OpenDocument | application/vnd.oasis.opendocument.text | .odt |\n| | Rich Text | application/rtf | .rtf |\n| | PDF | application/pdf | .pdf |\n| | Plain Text | text/plain | .txt |\n| | Web Page (HTML) | application/zip | .zip |\n| | EPUB | application/epub+zip | .epub |\n| | Markdown | text/markdown | .md |\n| **Spreadsheets** | Microsoft Excel | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet | .xlsx |\n| | OpenDocument | application/vnd.oasis.opendocument.spreadsheet | .ods |\n| | PDF | application/pdf | .pdf |\n| | Web Page (HTML) | application/zip | .zip |\n| | Comma Separated Values (first-sheet only) | text/csv | .csv |\n| | Tab Separated Values (first-sheet only) | text/tab-separated-values | .tsv |\n| **Presentations** | Microsoft PowerPoint | application/vnd.openxmlformats-officedocument.presentationml.presentation | .pptx |\n| | ODP | application/vnd.oasis.opendocument.presentation | .odp |\n| | PDF | application/pdf | .pdf |\n| | Plain Text | text/plain | .txt |\n| | JPEG (first-slide only) | image/jpeg | .jpg |\n| | PNG (first-slide only) | image/png | .png |\n| | Scalable Vector Graphics (first-slide only) | image/svg+xml | .svg |\n| **Drawings** | PDF | application/pdf | .pdf |\n| | JPEG | image/jpeg | .jpg |\n| | PNG | image/png | .png |\n| | Scalable Vector Graphics | image/svg+xml | .svg |\n| **Apps Script** | JSON | application/vnd.google-apps.script+json | .json |\n| **Google Vids** | MP4 | application/mp4 | .mp4 |\n\n| **Note:** To view a list of all system supported export formats for a user, retrieve an [`about`](/workspace/drive/api/reference/rest/v3/about) resource by calling the [`about.get`](/workspace/drive/api/reference/rest/v3/about/get) method with the `fields` parameter set to [`exportFormats`](/workspace/drive/api/reference/rest/v3/about#About.FIELDS.export_formats).\n\nYou can also export Google Workspace\ndocuments using Google Apps Script. For more information on supported formats\nwhen exporting content in Apps Script, see the reference\ndocumentation for [Google Docs](/apps-script/reference/document/document#getascontenttype), [Google Sheets](/apps-script/reference/spreadsheet/spreadsheet#getascontenttype),\nand [Google Slides](/apps-script/reference/slides/image#getascontenttype).\n\nRelated topics\n--------------\n\n- [Google Workspace and Google Drive supported MIME types](/workspace/drive/api/guides/mime-types)"]]