JSONL to CSV
Turn a Shopify bulk export (.jsonl) into a spreadsheet. Child records like variants or discount codes are joined back to their parent.
What you’ll need
A bulk export .jsonl file (from a bulk query; the recipes below show how)
Shopify’s free GraphiQL app (with read access for what you export access)
How to get this: Shopify’s free GraphiQL app
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
Add a bulk export file
Or paste JSONL or a GraphQL response
Try a sample:
Results for
Export what Shopify can’t
Exact bulk queries for data the admin has no CSV export for. Run one, then drop the file above.
- All file URLs (Content > Files)
One row per file
- Metaobject entries
One row per entry
- Navigation menus
One row per menu link
- Collections with their rules
One row per collection
- Discount codes with usage
One row per discount
How it works
- Children back with parents
- Each line’s
__parentIdis matched to its parent, in any order, so ungrouped exports work too. - Nested fields become columns
image.url,seo.titleand so on. Lists of key/value pairs, like metaobject fields, get one column per key.- Two shapes
- One row per parent with child counts and values, or one row per child with its parent’s columns repeated (handy for variants, codes and menu links).
- Private
- The file is read in a background thread in your browser. Nothing is uploaded and there’s no account.
Questions
What is a JSONL file from Shopify?
When you run a bulk query (bulkOperationRunQuery, or shopify store bulk execute), Shopify gives you a .jsonl file: one JSON object per line. Nested lists such as a product’s variants are written as separate lines with a __parentId that points back to the parent. Spreadsheet apps can’t open it directly.
What does __parentId mean?
It’s the ID of the record a line belongs to. A variant line’s __parentId is its product’s ID. This tool uses it to put children back with their parent, either as extra columns on the parent’s row or as one row per child with the parent’s details repeated.
My children aren’t right after their parent in the file. Is that a problem?
No. Since Shopify’s groupObjects option defaults to false, children don’t always follow their parent. The tool reads the whole file first and matches every child by __parentId, so the order doesn’t matter.
Is my file uploaded?
No. The file is read in a background thread of your browser, a piece at a time, so large exports work without freezing the page. Nothing is sent to a server.
Can I paste a normal GraphQL response instead?
Yes. Paste the JSON from Shopify’s GraphiQL app or from shopify store execute (several pages back to back are fine). Connections in edges or nodes are treated the same way as bulk children.
How big a file can it handle?
It depends on your computer’s memory, because every record is kept in memory to join children to parents. Files of a few hundred megabytes usually work in a desktop browser. For more, split the export with a narrower query (for example by created_at).
Exporting orders? The Orders Export Builder writes the bulk query for you and puts line item properties, tracking and metafields in their own columns.