How to download all attachments from an Airtable base
By airtable.download, an independent service, not affiliated with Airtable · Updated 13 November 2026
Airtable has no button to download all attachments, and its file links stop working after a few hours. A free script saves every file in a folder per record. Or we make one ZIP for you.
We make one ZIP of your whole base: every table as Excel, CSV, JSON and SQLite, with the attachment files and the comments. $29 once per base.
Airtable has no button for it. From its help centre: "Can I bulk download attachments from my base? No. Airtable doesn't have a built-in bulk download feature in the interface, but you can use the Scripting extension to download all attachments from a base at once." (Airtable, Attachment fields)
And you cannot keep the links instead of the files. A link to an attachment stops working: links from the API "will expire 2 hours after being returned from our API. If you want to persist the attachments, we recommend downloading them instead of saving the URL." (Airtable, field model). The links in a CSV export "will expire after a few hours" too (Airtable, Getting started with views).
So the files have to be downloaded, and soon after the links are read. Here are the ways.
1. By hand
Open a record, open the attachment, download. Fine for ten files.
2. A script, free
This saves every file of every table, each in a folder named after its record, so a file always
leads back to its row. It needs Python and nothing else, and the small at.py from
the whole-base page.
# attachments.py: attachments/<table>/<record id>/<file>
import os, urllib.request
from at import tables, records
for t in tables():
fields = [f["name"] for f in t["fields"] if f["type"] == "multipleAttachments"]
if not fields:
continue
for rec in records(t["id"], **{"fields[]": fields}):
for field in fields:
for a in rec["fields"].get(field, []):
folder = os.path.join("attachments", t["name"].replace("/", "-"), rec["id"])
os.makedirs(folder, exist_ok=True)
# The link works for about two hours, so download now, not later.
# The attachment id in the name keeps two files called "photo.jpg" apart.
name = f"{a['id']}-{a['filename'].replace('/', '-')}"
urllib.request.urlretrieve(a["url"], os.path.join(folder, name))
print(t["name"], rec["id"], a["filename"])
Make a token with the scopes data.records:read and schema.bases:read, then
AIRTABLE_TOKEN=pat... AIRTABLE_BASE=app... python3 attachments.py
Where it stops:
- Folders are named by record ID (
recq2uPlP4SgrNkFL), which is exact and not readable. Naming them after the record's first field is a few more lines. - File names come as Airtable holds them. Some are not names a computer accepts: on our test
base one file was called
pexels-photo-2067569.jpeg?auto=compress&cs=tinysrgb&h=750&w=1260, which Windows refuses. Clean them before saving if the files must travel. - If it stops halfway, the links it had read may have expired by the time you start again. Run it again from the top; it asks for fresh links.
- It is one file at a time. A base with tens of gigabytes takes hours.
3. Inside Airtable
Airtable's article says the Scripting extension can download a base's attachments, and that it does not "by itself, rename files based on another field". It also names a paid extension: "bulk (multi-record) downloading requires a miniExtensions subscription, which is a cost outside your Airtable plan." (same article). Good if you want to stay inside Airtable and download one field of one view.
4. One ZIP
This is what we make. You paste a read-only token, you see your tables and how many attachment files the base holds, and the download is $29 once per base. No account.
- every file, at
attachments/<Table>/<Record name [record id]>/<file>: the folder carries the record's name, so you can read it, and its ID, so it is exact - file names made safe for Windows, macOS and Linux; two files with one name both kept
- in the Excel, CSV and SQLite files, each attachment field holds the path of its files, so the table and the folder point at each other
- the rest of the base with it: every table, the comments, the schema
If what you need is a permanent link
Then a download is not the answer. Airtable no longer gives links that last. The files have to live somewhere you control (a storage bucket, a drive), with the new link written back to a text field. A download is the first half of that job.