A practical field guide from Automation Ace.
Short answer: every native Google file exports with one URL pattern (shown below), where TYPE is document, spreadsheets, or presentation. Docs support pdf, docx, txt, md, html, epub, odt, and rtf; Sheets support xlsx, csv and tsv (one tab, chosen with gid), pdf, and ods; Slides support pdf, pptx, txt, and odp. The link only works for someone with access to the file, or through an authenticated request in Zapier or Make.
Finding the file ID: Google Drive file link formats. Format deep dives: CSV export and PDF export.
Short answer
https://docs.google.com/[TYPE]/d/FILE_ID/export?format=FORMAT
https://docs.google.com/document/d/FILE_ID/export?format=pdf
https://docs.google.com/spreadsheets/d/FILE_ID/export?format=csv&gid=TAB_GID
https://docs.google.com/presentation/d/FILE_ID/export?format=pptx
Google Docs export formats
| Format | format= | Notes |
|---|---|---|
| Print layout as shown in the doc | ||
| Word | docx | Best for editing outside Google |
| Plain text | txt | Good input for AI steps; see converting files to text |
| Markdown | md | Headings, lists, and links as Markdown |
| Web page | html | Returned as a zipped HTML file with images |
| EPUB | epub | E-book format |
| OpenDocument / Rich Text | odt / rtf | For other word processors |
Google Sheets export formats
| Format | format= | Notes |
|---|---|---|
| Excel | xlsx | All tabs in one file |
| CSV | csv | One tab; add &gid=TAB_GID (the first tab is often 0) |
| TSV | tsv | One tab, tab-separated |
| Add &gid= for one tab; layout options exist but are undocumented | ||
| OpenDocument | ods | All tabs |
To export one tab by name rather than gid, the visualization endpoint also works. It is handy, but undocumented for this use, so test it before relying on it:
https://docs.google.com/spreadsheets/d/FILE_ID/gviz/tq?tqx=out:csv&sheet=Tab%20Name
Export all tabs as CSV
CSV holds one table, so there is no single URL for every tab as CSV. Options:
- Export as xlsx when the destination accepts Excel; it keeps every tab.
- Loop over gids: read the tab list with the Sheets API or a Google Sheets step, then request the CSV URL once per gid. In Zapier, see looping through items in a Zap.
- Apps Script: a short script can write one CSV per tab to a Drive folder on a schedule.
Google Slides export formats
| Format | Ending | Notes |
|---|---|---|
| export?format=pdf | One page per slide | |
| PowerPoint | export?format=pptx | Editable deck |
| Text | export?format=txt | Slide text only |
| One slide as an image | export/png?pageid=SLIDE_ID | Slide IDs appear in the URL as #slide=id.SLIDE_ID |
Each ending goes after /presentation/d/FILE_ID/.
Legacy feeds/download URLs
Older guides and scripts use links like the one below. They come from Google's retired Documents List API. Some still redirect, but they are not documented and can stop working, so switch to the /export?format= pattern above.
https://docs.google.com/feeds/download/documents/export/Export?id=FILE_ID&exportFormat=pdf
Drive API equivalent
GET https://www.googleapis.com/drive/v3/files/FILE_ID/export?mimeType=application/pdf
Authorization: Bearer ACCESS_TOKEN
# Common mimeTypes: application/pdf, text/plain, text/markdown, text/csv,
# application/vnd.openxmlformats-officedocument.wordprocessingml.document (docx),
# application/vnd.openxmlformats-officedocument.spreadsheetml.sheet (xlsx)
The API is the supported route for automations and has an export size limit (documented as 10 MB at the time of writing). Uploaded Office files are not native Google files and must be converted or downloaded instead of exported.
Using export URLs in automations
- Zapier: use the Google Drive app's export or file actions, or an authenticated API request step; pass the file to Files by Zapier or an email attachment.
- Make: the Google Drive download or export module, or the HTTP module with a Google connection.
- Public links: files shared "anyone with the link" export without auth, which is convenient but exposes the data.
Buying Google Workspace for a team? See Google Workspace.
Frequently asked questions
What is the Google Docs export URL for PDF?
https://docs.google.com/document/d/FILE_ID/export?format=pdf. Replace FILE_ID with the ID from the document's URL. The link works for anyone with access to the file.
How do I export one Google Sheets tab as CSV?
Use https://docs.google.com/spreadsheets/d/FILE_ID/export?format=csv&gid=TAB_GID, where TAB_GID is the number after gid= in the URL when that tab is open.
How do I export all tabs of a Google Sheet as CSV?
CSV holds one tab, so export as xlsx to keep every tab, or loop over each tab's gid and request the CSV URL once per tab with an automation or Apps Script.
Can I export a Google Doc as Markdown?
Yes. Use format=md in the export URL or the text/markdown mimeType with the Drive API export endpoint.
Do the old feeds/download export links still work?
Some still redirect, but they come from a retired API and are undocumented. Use the docs.google.com/.../export?format= pattern or the Drive API instead.
Disclaimer: Export formats and URL parameters are partly undocumented and can change; the Drive API is the supported route for production automations. This article may include links to apps, products, or services; some links may be affiliate links, which means Automation Ace may earn a commission at no extra cost to you.