What hard limits does Shopify put on a theme's templates, sections, blocks and files?
A Shopify JSON template or section group holds up to 25 sections and 1,250 blocks, a section up to 50 blocks, and an uploaded theme package is capped at 50 MB compressed, per Shopify's developer documentation read November 20, 2026. Updated November 20, 2026.
By Martin DejnickiUpdated Data through November 20, 2026
Short answer
A Shopify JSON template or section group holds up to 25 sections and up to 1,250 blocks, and each section holds up to 50 blocks, per Shopify's theme limits documentation on shopify.dev read November 20, 2026. A theme holds up to 1,000 JSON templates and 20 section groups, and its uploaded package is capped at 50 MB compressed.
A Shopify JSON template or section group holds up to 25 sections of up to 50 blocks each, and 1,250 blocks in total
15 of the 21 theme limits in Shopify's developer documentation, by the level each applies to, read November 20, 2026; all 21 in the table
- Each check marks the level the documentation names for the limit; the nesting depth of 8 levels has no level stated, so its row shows dashes.
- The 25-section limit is stated both per JSON template and per section group, and the 1,250-block limit applies to each JSON template and each section group.
- The grid shows 15 of the 21 stated limits; settings_schema.json, locale file, liquid setting and the three name-length limits are in the data table.
- The documentation read states no size limit for asset files; total code (250 MB) excludes assets.
Source: Shopify, Theme limits, shopify.dev developer documentation, read November 20, 2026. Read on .
What are Shopify's hard limits on a theme?
Shopify's theme limits page, read November 20, 2026, states 21 limits: counts per theme, per JSON template, per section group and per section, a nesting depth, file sizes and name lengths. Per theme it sets 1,000 JSON templates, 20 section groups, 300 theme block files, 100,000 files, 250 MB of total code and a 50 MB compressed upload.
| Limit | Value | Applies per |
|---|---|---|
| JSON templates | 1,000 | Theme |
| Section groups | 20 | Theme |
| Theme block files (blocks/ folder) | 300 | Theme |
| Files | 100,000 | Theme |
| Total code (all files except assets) | 250 MB | Theme |
| Uploaded theme package (compressed) | 50 MB | Theme |
| Theme name length | 50 characters | Theme |
| Sections | 25 | JSON template |
| Sections | 25 | Section group |
| Blocks | 1,250 | JSON template or section group |
| Blocks | 50 | Section |
| Theme block nesting depth | 8 levels, excluding the section level | Not stated |
| Section and block schema name length | 25 characters | Section or block |
| Custom section and block name length (set by merchants) | 100 characters | Section or block |
| JSON template file | 512 KB | File |
| Section group file | 512 KB | File |
| settings_schema.json | 512 KB | File |
| Other Liquid files (sections, snippets, layouts) | 256 KB | File |
| settings_data.json | 1.5 MB | File |
| Locale file | 1.5 MB | File |
| Content in a single liquid setting | 50 KB | Liquid setting |
The chart draws 15 of these 21 limits by level. The settings_schema.json, locale file, liquid setting and name length limits appear only in this table and the data table. Shopify lists the name length limits without a level, so their Applies per cells are Deploi's reading.
How many sections and blocks can a template or section group hold?
A JSON template and a section group each hold up to 25 sections and up to 1,250 blocks in total, and each section holds up to 50 blocks, per Shopify's theme limits documentation read November 20, 2026. A section's max_blocks setting can lower the 50-block limit for that section.
The section and block limits count blocks that merchants can add, remove or reorder, including app blocks and theme blocks. Statically rendered blocks added with content_for do not count toward them. Section groups have their own limit of 20 per theme. Twenty-five sections of 50 blocks each is 1,250 blocks, computed by Deploi from the two stated limits.
How deep can theme blocks nest?
Theme blocks can nest up to 8 levels, excluding the section level, per Shopify's theme limits documentation read November 20, 2026. The documentation states no scope for the depth, such as per theme, per template or per section, so the chart shows dashes in its row.
Nesting depth is the only one of the 21 limits with no stated scope.
What file size limits apply to a theme?
Shopify limits JSON template files, section group files and settings_schema.json to 512 KB each, Liquid files for sections, snippets and layouts to 256 KB, and settings_data.json and locale files to 1.5 MB, per its theme limits documentation read November 20, 2026. Total code is limited to 250 MB, excluding assets, and the compressed upload to 50 MB.
The content of a single liquid setting is limited to 50 KB, which is a limit on one setting, not on a whole file. The documentation read states no size limit for an asset file, so none is shown and it is not treated as unlimited. Theme app extensions have their own file and content size limits, which this page does not cover.
How many files can a theme hold, and how long can names be?
A theme holds up to 300 theme block files in its blocks folder and 100,000 files in total, per Shopify's theme limits documentation read November 20, 2026. Names are limited to 50 characters for the theme name, 25 characters for a section or block schema name and 100 characters for a custom section or block name set by merchants.
The 100,000-file limit and the 250 MB total code limit both apply per theme. Total code counts all files except assets.
What does the documentation not state?
The documentation read on November 20, 2026 states no scope for the 8-level nesting limit and no size limit for asset files. Neither is treated as zero or none. The page lists limits on a theme's structure, files and names and does not cover product, variant, metafield or API limits.
Shopify's documentation changes, so a later reading can differ from this one.
The data
Each chart on this page is drawn from the numbers below. Units are in the column headers.
| Limit | Theme (yes/no) | JSON (yes/no) | Group (yes/no) | Section (yes/no) | File (yes/no) | Limit |
|---|---|---|---|---|---|---|
| 1,000 JSON templates | Applies | Not at level | Not at level | Not at level | Not at level | JSON templates per theme |
| 20 section groups | Applies | Not at level | Not at level | Not at level | Not at level | Section groups per theme |
| 300 theme block files | Applies | Not at level | Not at level | Not at level | Not at level | Theme block files (blocks/ folder) per theme |
| 100,000 files | Applies | Not at level | Not at level | Not at level | Not at level | Files per theme |
| 50 MB uploaded theme package | Applies | Not at level | Not at level | Not at level | Not at level | Uploaded theme package size (compressed) |
| 250 MB total code (except assets) | Applies | Not at level | Not at level | Not at level | Not at level | Total code (all files except assets) |
| 25 sections | Not at level | Applies | Not at level | Not at level | Not at level | Sections per JSON template |
| 1,250 blocks | Not at level | Applies | Applies | Not at level | Not at level | Blocks per JSON template or section group |
| 25 sections per section group | Not at level | Not at level | Applies | Not at level | Not at level | Sections per section group |
| 50 blocks | Not at level | Not at level | Not at level | Applies | Not at level | Blocks per section |
| 8 levels of theme block nesting | Not stated | Not stated | Not stated | Not stated | Not stated | Theme block nesting depth |
| 512 KB JSON template file | Not at level | Not at level | Not at level | Not at level | Applies | JSON template file size |
| 512 KB section group file | Not at level | Not at level | Not at level | Not at level | Applies | Section group file size |
| 256 KB Liquid file | Not at level | Not at level | Not at level | Not at level | Applies | Liquid file size (sections, snippets, layouts) |
| 1.5 MB settings_data.json | Not at level | Not at level | Not at level | Not at level | Applies | settings_data.json file size |
| 512 KB settings_schema.json | Not at level | Not at level | Not at level | Not at level | Applies | settings_schema.json file size |
| 1.5 MB locale file | Not at level | Not at level | Not at level | Not at level | Applies | Locale file size |
| 50 KB liquid setting content | Not at level | Not at level | Not at level | Not at level | Not at level | Content in a single liquid setting |
| 50 characters in the theme name | Applies | Not at level | Not at level | Not at level | Not at level | Theme name length |
| 25 characters in a schema name | Not at level | Not at level | Not at level | Applies | Not at level | Section and block schema name attribute length |
| 100 characters in a custom section or block name | Not at level | Not at level | Not at level | Applies | Not at level | Custom section and block name length (set by merchants in the theme editor) |
Download Shopify theme limits: templates, sections, blocks and files, shopify.dev, November 20, 2026 as CSV · All 11 columns on the dataset page
Methodology
Reading the chart: A Shopify JSON template or section group holds up to 25 sections of up to 50 blocks each, and 1,250 blocks in total
- Each check marks the level the documentation names for the limit; the nesting depth of 8 levels has no level stated, so its row shows dashes.
- The 25-section limit is stated both per JSON template and per section group, and the 1,250-block limit applies to each JSON template and each section group.
- The grid shows 15 of the 21 stated limits; settings_schema.json, locale file, liquid setting and the three name-length limits are in the data table.
- The documentation read states no size limit for asset files; total code (250 MB) excludes assets.
Caveats: Shopify theme limits: templates, sections, blocks and files, shopify.dev, November 20, 2026
- Values are the limits shopify.dev states on its Theme limits page, read November 20, 2026; Shopify can change them without notice.
- The per-section and per-template block limits count blocks merchants can add, remove or reorder, including app blocks and theme blocks; statically rendered blocks added with content_for do not count.
- Blocks per section is 50 unless a section's max_blocks setting lowers it.
- Theme block nesting depth is 8 levels, excluding the section level; the page states no level the depth applies per, so its scope cells are empty, not no.
- Total code (250 MB) counts all files except assets; the page states no size limit for asset files, so none is in the dataset and it is not treated as unlimited.
- The 50 KB limit applies to the content of one liquid setting, not to a whole file; its level cells are all no because it names no theme, template, section group, section or file level.
- Theme app extensions have their own file and content size limits, not covered here.
- The page lists the three name-length limits under Naming without saying what level they apply to; their scope cells (per theme for the theme name, per section or block for the two section and block names) are Deploi's reading. The page names the 256 KB limit for 'Other Liquid files (sections, snippets, layouts)'.
Deploi's charts and compilation are licensed CC BY 4.0. The underlying facts belong to their sources, which are named on every page. How Deploi Shopify Data works.
Sources
Tier A sources are primary documents: filings, official releases and official price pages. How sources are ranked.
- Tier ATheme limits (shopify.dev), captured 2026-11-20
Shopify · TEXT · Read on
Cite and reuse
Deploi's charts and compilation are licensed CC BY 4.0. The underlying facts belong to their sources, which are named on every page.
APA
Deploi. (2026). What hard limits does Shopify put on a theme's templates, sections, blocks and files? [Web page]. https://deploi.ca/shopify/data/shopify-theme-limits Retrieved November 20, 2026.
BibTeX
@misc{deploi_shopify_theme_limits_2026,
author = {{Deploi}},
title = {What hard limits does Shopify put on a theme's templates, sections, blocks and files?},
year = {2026},
url = {https://deploi.ca/shopify/data/shopify-theme-limits},
note = {Accessed 2026-11-20}
}Embed this chart
Embed code
<iframe src="https://deploi.ca/embed/shopify/data/shopify-theme-limits" title="A Shopify JSON template or section group holds up to 25 sections of up to 50 blocks each, and 1,250 blocks in total" loading="lazy" style="width:100%;height:850px;border:0"></iframe> <p style="font:12px/1.4 Arial,sans-serif;margin:4px 0 0">Source: <a href="https://deploi.ca/shopify/data/charts/shopify-theme-limits">Deploi, A Shopify JSON template or section group holds up to 25 sections of up to 50 blocks each, and 1,250 blocks in total</a></p>
Keep the credit line under the embed. It is the license condition.
Questions
How many sections can a Shopify JSON template have?
Up to 25 sections per JSON template, and up to 25 per section group, per Shopify's theme limits documentation on shopify.dev read November 20, 2026. Each section can hold up to 50 blocks.
How many blocks can a Shopify section have?
Up to 50 blocks per section, which a section's max_blocks setting can lower, and up to 1,250 blocks per JSON template or section group, per Shopify's theme limits documentation read November 20, 2026.
What is the maximum size of a Shopify theme upload?
The uploaded theme package is limited to 50 MB compressed, per Shopify's theme limits documentation read November 20, 2026. A theme's total code, excluding assets, is separately limited to 250 MB, and a theme to 100,000 files.
How many JSON templates can a Shopify theme have?
Up to 1,000 JSON templates per theme, plus up to 20 section groups and 300 theme block files per theme, per Shopify's theme limits documentation on shopify.dev read November 20, 2026.
How deep can Shopify theme blocks be nested?
Up to 8 levels of theme block nesting, excluding the section level, per Shopify's theme limits documentation read November 20, 2026. The documentation does not state a scope for the limit, such as per template or per section.
Is there a size limit for Shopify theme asset files?
The documentation read on November 20, 2026 states no size limit for asset files, so none is given here and it is not treated as unlimited. The 250 MB total code limit counts all files except assets.
More on Performance and technology
- Do the largest Shopify stores pass Core Web Vitals as often as the largest stores on other platforms?
Shopify's mobile Core Web Vitals pass rate falls from 76.5% of all origins to 38.4% in the top 100k by popularity, while its median home page grows from 4.1 MB to 6.4 MB, HTTP Archive crawl of October 2026. Updated November 20, 2026.
- How many public Oxygen environments does each Shopify plan get for a Hydrogen storefront, and how long are deployments and logs kept?
Shopify Plus stores can have 25 public Oxygen environments for a Hydrogen storefront, nine other plans and store types 1 each, and development stores and trial plans 0, per shopify.dev read November 20, 2026. Updated November 20, 2026.
- How often does the Universal Commerce Protocol ship dated versions and breaking changes, and how much notice is given?
The Universal Commerce Protocol listed four dated protocol releases in 2026, on January 11, January 23, April 8 and August 25, and GitHub release notes mark three of them as breaking, per ucp.dev and GitHub pages read November 20, 2026. UCP's versioning guide says a breaking change is announced 2 weeks before it is merged. Updated November 20, 2026.
- In which visitor countries do Shopify stores pass Core Web Vitals most and least often?
Shopify stores pass mobile Core Web Vitals more often than all sites in all 21 visitor countries charted, from 31.2% of origins in Indonesia to 89.6% in Norway, HTTP Archive crawl of October 2026. Updated November 20, 2026.
- Is Shopify's Core Web Vitals pass rate slipping in 2026, and on which vital, device and tier of Shopify sites?
Shopify's mobile Interaction to Next Paint (INP) pass rate fell from 91.0% in February 2026 to 85.9% in October, and the overall mobile pass rate from 79.5% in March to 76.5%, as computed by Deploi from HTTP Archive data retrieved November 20, 2026. Updated November 20, 2026.
- What does a Shopify store expose to AI shopping agents by default, and what can an agent do at each identity tier?
Anonymous AI agents get 2 of 5 capabilities on a Shopify store and signed agents 3, and only a token granted permission can complete a purchase, per Shopify's agent documentation captured November 20, 2026. Updated November 20, 2026.
Changes
- · Shopify theme limits: templates, sections, blocks and files, shopify.dev, November 20, 2026
First release. 21 limit rows from one shopify.dev page.