How to upload a Shopify theme (full guide)

How to upload a Shopify theme

To upload a theme to Shopify, go to Online Store in your Shopify admin, then in the Draft themes section click Import theme > Upload zip file, choose your theme's ZIP file and click Upload. The ZIP must be smaller than 50 MB, and the theme lands in your draft themes so you can preview and customize it before you publish.

Shopify calls this "importing" a theme in the admin, so you'll see both words used. This guide covers the upload steps on desktop and in the Shopify app, what to check before and after you import, and the other ways to add a theme: from the Shopify Theme Store, from GitHub, or with Shopify CLI.

How to upload (import) a theme ZIP to Shopify

On desktop

  1. From your Shopify admin, go to Online Store. This opens the Themes page.
  2. In the Draft themes section, click Import theme > Upload zip file.
  3. In the Import theme dialog, click Choose File and select the ZIP file on your computer.
  4. Click Upload.

The theme appears in Draft themes. It isn't live until you publish it.

In the Shopify app (iPhone or Android)

  1. In the Shopify app, tap the menu icon.
  2. In the Sales channels section, tap Online Store.
  3. Tap Manage themes.
  4. In the Draft themes section, tap Import theme > Upload zip file.
  5. In the Import theme dialog, tap Choose File and select the ZIP file.
  6. Tap Upload.

Before you upload: file and plan limits

Check these before you import, because they're the most common reasons an upload fails.

Limit Value
ZIP file size
Smaller than 50 MB (compressed)
Total code (all files except assets)
250 MB
Files per theme
100,000
Theme name
50 characters
Themes per store: Starter plan
Spotlight theme only
Themes per store: Basic, Grow, Advanced
Up to 20
Themes per store: Shopify Plus
Up to 100

A few more things to check:

  • Folder structure. The ZIP must contain the theme folders (assets, config, layout, locales, sections, snippets, templates and so on) at its top level. At minimum, Shopify needs a layout folder with a theme.liquid file. If you zip a parent folder that contains the theme folder, the upload will fail.
  • File size. If your ZIP is too big, the cause is usually large images or videos in the assets folder. Upload those through Content > Files instead and point the theme at them, then re-zip.
  • Theme limit. If you're at your plan's limit, delete an old draft theme first. Our guide on deleting a Shopify theme shows how, and what to back up first.
  • License. A theme bought on the Shopify Theme Store is licensed only to the store it was bought for. Uploading a purchased theme's ZIP to a second store doesn't give that store a license, and unlicensed themes don't get support or updates.

What carries over when you import a theme (and what doesn't)

A theme ZIP holds the design: templates, sections, settings, code and translations. It doesn't hold your store's content. Your products, collections, pages, blog posts and menus are managed in the admin and stay the same whichever theme you publish.

After an import, check these:

  • Theme settings and sections. Settings saved in the theme (colors, fonts, section layouts) come with the ZIP. If the ZIP is a fresh copy from a developer, you'll need to set these up again.
  • App blocks and embeds. Blocks from apps only show if the app is installed on the store you're importing into. Re-add or re-enable them in the theme editor.
  • robots.txt.liquid. If your theme has a custom robots.txt.liquid template, check it's still there after the upload. Merchants have reported in the Shopify Community that it goes missing after a ZIP import. If it has, re-create it in the code editor or push the theme with Shopify CLI, and compare the live /robots.txt with what you expect. Our Shopify robots.txt guide explains what the file should contain.

Theme Store vs ZIP upload vs GitHub vs Shopify CLI: which import method to use

There are four main ways to get a theme into your store. Pick the one that matches where the theme comes from and who's working on it.

Method Use it when Where
Shopify Theme Store
You want a free or paid theme from Shopify's marketplace
Online Store > Discover themes or themes.shopify.com
ZIP upload
You have a theme file from a developer, a backup, or another marketplace
Online Store > Draft themes > Import theme > Upload zip file
GitHub integration
A developer keeps the theme in a GitHub repository
Connect from GitHub in the theme library (needs the Shopify GitHub app)
Shopify CLI
A developer works on the theme locally and pushes changes
Command line: shopify theme push, shopify theme dev

Shopify also lets you generate a free personalized theme by describing your business, but only from the Shopify app or the admin in a mobile browser, and not on the Starter plan.

Add a free theme from the Shopify Theme Store

  1. From your Shopify admin, go to Online Store.
  2. In the Discover themes section near the bottom of the page, choose one of the top free themes, or click Visit theme store to browse them all.
  3. Click the theme name to see its details.
  4. Click Add. The theme is added to Draft themes.

Free themes are built by Shopify, and Shopify support helps with them.

Try and buy a paid theme

  1. Go to the Shopify Theme Store and choose a paid theme.
  2. Click Try theme. The theme is added to your store with a Theme trial label.
  3. In your admin, go to Online Store. In Draft themes, open the actions menu next to the theme and click Preview.
  4. Customize it in the theme editor. If you buy it, your customizations are kept.
  5. When you're ready, click Buy on the theme in Draft themes.

Things to know about paid themes:

  • You can try up to 19 paid themes at the same time.
  • While a theme is on trial, you can't edit its code or use the AI code generator.
  • You can only publish a paid theme after you buy it.
  • To buy, your staff account needs the Themes, Manage and install apps and channels and Approve app charges permissions.
  • Theme Store purchases are final sale; the developer can't refund you.
  • Support for paid themes comes from the theme developer, not Shopify.

Not sure which to pick? See our guides to the best Shopify themes and free vs paid themes.

Connect a theme from GitHub

If your developer keeps the theme in GitHub, connect the repository instead of uploading ZIPs:

  1. Install the Shopify GitHub app.
  2. In your theme library, click Add theme > Connect from GitHub (depending on your admin version, this sits next to Import theme in Draft themes).
  3. Choose the GitHub account or organization, the repository and the branch.

The branch must use Shopify's standard theme folder structure. After you connect, Shopify keeps both sides in sync: commits to the branch update the theme, and changes made in the theme editor or code editor are committed back to GitHub. You need write access to the repository, and a disconnected branch can't be reconnected (it comes back as a new theme). Our Shopify GitHub integration guide walks through the setup in more detail.

Push a theme with Shopify CLI

Shopify CLI is the command-line tool developers use to build and deploy themes. It's the best option when someone edits theme code regularly.

  • shopify theme dev creates a development theme connected to your store and previews changes live as you edit files.
  • shopify theme push --unpublished creates a new unpublished theme in your store and uploads your local files to it.
  • shopify theme pull downloads a theme from your store to your computer.

Add --store your-store.myshopify.com the first time you run a command against a store. Development themes are deleted after seven days without activity, and logging out of the CLI deletes yours, so push anything you want to keep to an unpublished theme. See the Shopify CLI documentation for installation and the full command list.

How to preview, share and publish your new theme

Once the theme is in Draft themes, test it before it goes live.

Preview it

In Online Store, open the actions menu next to the theme and click Preview. You can switch country or language in the preview to check different markets.

Share a preview

From the preview, click the link button in the preview bar to copy a visitor preview link. Anyone can open it without logging in, and it expires two days after you create it. It's a quick way to get feedback before you switch themes. You can't share a preview of your published theme.

Publish it

  1. From your Shopify admin, go to Online Store.
  2. In Draft themes, find the theme and click Publish.

You can also click Edit theme, then Publish in the top bar of the theme editor. Your old theme moves to Draft themes with all its changes, so you can switch back if something's wrong. Only one theme can be published at a time.

Before you publish, check your main pages on mobile and desktop, run a test order, and make sure your apps show where they should. If you're replacing an older version of the same theme, our guide on updating a Shopify theme without losing anything covers how to move your settings across.

Related theme guides

Frequently asked questions

How do I import a theme into Shopify?
From your Shopify admin, go to Online Store. In the Draft themes section, click Import theme > Upload zip file, choose your ZIP file and click Upload. The theme is added to your draft themes, ready to preview and customize.
What is the maximum theme file size on Shopify?
The ZIP file must be smaller than 50 MB. Shopify also limits the total code in a theme (all files except assets) to 250 MB and a theme to 100,000 files.
How many themes can I have in my Shopify store?
Up to 20 themes on the Basic, Grow and Advanced plans, and up to 100 on Shopify Plus. The Starter plan can only use the Spotlight theme. If you hit the limit, delete a theme before adding another.
Why won't my theme ZIP upload?
The usual causes are a file over 50 MB, or a ZIP where the theme folders sit inside an extra parent folder. Shopify needs the theme structure (with layout/theme.liquid) at the top of the ZIP. Remove large images from the assets folder or re-zip from the theme's root folder and try again.
Should I use Shopify CLI or a ZIP upload?
Use the ZIP upload for a one-off theme from a developer or marketplace. Use Shopify CLI or the GitHub integration if a developer is actively working on the theme, so changes stay in version control and you don't re-upload a ZIP for every edit.