Export recipe
Export every file URL from Shopify Files to a CSV
Already have the file?
Drop it into the converter. It reads it in your browser and gives you a CSV.
Runs in your browser. Your file is never uploaded.
What the admin can’t do
Content > Files has a Copy link button per file and no export (Shopify Help Center, Uploading and managing files).
A bulk query asks Shopify to collect everything in the background and hand you one file to download. It reads data only; it can’t change your store. Shopify keeps the download link for 7 days.
Run it with Shopify CLI (recommended)
You need Shopify CLI installed on your computer. shopify store auth asks you to approve access in your browser, then shopify store bulk execute runs the export.
- Save the query below in a file named
files.graphql. - Run the two commands. The first opens your browser to approve access (scopes:
read_files). The second waits for the export and saves it asfiles.jsonl.
{
files {
edges {
node {
__typename
id
alt
createdAt
fileStatus
... on MediaImage {
mimeType
image {
url
width
height
}
originalSource {
fileSize
}
}
... on GenericFile {
url
mimeType
originalFileSize
}
... on Video {
filename
originalSource {
url
mimeType
fileSize
}
}
... on Model3d {
filename
originalSource {
url
mimeType
filesize
}
}
}
}
}
}shopify store auth --store your-store.myshopify.com --scopes read_files
shopify store bulk execute --store your-store.myshopify.com --version 2026-10 \
--query-file files.graphql --watch --output-file files.jsonlOr with Shopify’s GraphiQL app
- Install Shopify’s GraphiQL app on your store and tick these scopes:
read_files. Choose API version 2026-10. - Paste the mutation below and run it. Copy the
idit returns. - Paste the status query, put the id in it, and run it every minute or so until
statusisCOMPLETED. - Open the
urlit returns to download the.jsonlfile.
mutation {
bulkOperationRunQuery(
query: """
{
files {
edges {
node {
__typename
id
alt
createdAt
fileStatus
... on MediaImage {
mimeType
image {
url
width
height
}
originalSource {
fileSize
}
}
... on GenericFile {
url
mimeType
originalFileSize
}
... on Video {
filename
originalSource {
url
mimeType
fileSize
}
}
... on Model3d {
filename
originalSource {
url
mimeType
filesize
}
}
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
code
}
}
}query {
bulkOperation(id: "PASTE_THE_ID_HERE") {
status
errorCode
objectCount
url
partialDataUrl
}
}Turn it into a CSV
- Open the JSONL to CSV converter.
- Drop in
files.jsonl. It’s read in your browser; nothing is uploaded. - Choose One row per file, then click Download CSV.
Columns you get
__typename- MediaImage (image), GenericFile (PDF and other files), Video or Model3d.
image.url- Image link (images only).
url- Link for PDFs and other non-image files.
originalSource.url- Original upload for videos and 3D models.
alt- Alt text.
fileStatus- READY once processed. UPLOADED, PROCESSING or FAILED otherwise.
Limits
- Image links end in ?v=<number>. That number is a version Shopify changes when you replace the file; the link also loads without it.
- If you only need images to fill a product CSV, the Files URL Exporter does the matching for you.
- The query needs the read_files scope (Shopify also accepts read_images or read_themes for this query).
- Every type and field in these queries was checked against Shopify’s GraphQL Admin API reference for version 2026-10. We haven’t run them on a live store. If Shopify returns an error, the message names the field or scope it’s missing.
- Bulk queries allow up to five connections, two levels deep (Shopify bulk operation limits).
More recipes
- Export Shopify metaobject entries to a CSV
- Export Shopify navigation menus to a CSV
- Export Shopify collections and their conditions to a CSV
- Export Shopify discount codes and their usage to a CSV
- Files URL Exporter: fill product CSV image columns
Sources: files query, MediaImage, GenericFile, Video, Model3d, Uploading and managing files (Help Center). Not affiliated with, endorsed by, or sponsored by Shopify Inc. Shopify is a trademark of Shopify Inc.