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

1,000 JSON templates Theme: Applies JSON templates per theme1,000 JSON templates Theme: Applies JSON templates per theme1,000 JSON templates JSON: Not at level JSON templates per theme1,000 JSON templates Group: Not at level JSON templates per theme1,000 JSON templates Section: Not at level JSON templates per theme1,000 JSON templates File: Not at level JSON templates per theme20 section groups Theme: Applies Section groups per theme20 section groups Theme: Applies Section groups per theme20 section groups JSON: Not at level Section groups per theme20 section groups Group: Not at level Section groups per theme20 section groups Section: Not at level Section groups per theme20 section groups File: Not at level Section groups per theme300 theme block files Theme: Applies Theme block files (blocks/ folder) per theme300 theme block files Theme: Applies Theme block files (blocks/ folder) per theme300 theme block files JSON: Not at level Theme block files (blocks/ folder) per theme300 theme block files Group: Not at level Theme block files (blocks/ folder) per theme300 theme block files Section: Not at level Theme block files (blocks/ folder) per theme300 theme block files File: Not at level Theme block files (blocks/ folder) per theme100,000 files Theme: Applies Files per theme100,000 files Theme: Applies Files per theme100,000 files JSON: Not at level Files per theme100,000 files Group: Not at level Files per theme100,000 files Section: Not at level Files per theme100,000 files File: Not at level Files per theme50 MB uploaded theme package Theme: Applies Uploaded theme package size (compressed)50 MB uploaded theme package Theme: Applies Uploaded theme package size (compressed)50 MB uploaded theme package JSON: Not at level Uploaded theme package size (compressed)50 MB uploaded theme package Group: Not at level Uploaded theme package size (compressed)50 MB uploaded theme package Section: Not at level Uploaded theme package size (compressed)50 MB uploaded theme package File: Not at level Uploaded theme package size (compressed)250 MB total code (except assets) Theme: Applies Total code (all files except assets)250 MB total code (except assets) Theme: Applies Total code (all files except assets)250 MB total code (except assets) JSON: Not at level Total code (all files except assets)250 MB total code (except assets) Group: Not at level Total code (all files except assets)250 MB total code (except assets) Section: Not at level Total code (all files except assets)250 MB total code (except assets) File: Not at level Total code (all files except assets)25 sections Theme: Not at level Sections per JSON template25 sections JSON: Applies Sections per JSON template25 sections JSON: Applies Sections per JSON template25 sections Group: Not at level Sections per JSON template25 sections Section: Not at level Sections per JSON template25 sections File: Not at level Sections per JSON template1,250 blocks Theme: Not at level Blocks per JSON template or section group1,250 blocks JSON: Applies Blocks per JSON template or section group1,250 blocks JSON: Applies Blocks per JSON template or section group1,250 blocks Group: Applies Blocks per JSON template or section group1,250 blocks Group: Applies Blocks per JSON template or section group1,250 blocks Section: Not at level Blocks per JSON template or section group1,250 blocks File: Not at level Blocks per JSON template or section group25 sections per section group Theme: Not at level Sections per section group25 sections per section group JSON: Not at level Sections per section group25 sections per section group Group: Applies Sections per section group25 sections per section group Group: Applies Sections per section group25 sections per section group Section: Not at level Sections per section group25 sections per section group File: Not at level Sections per section group50 blocks Theme: Not at level Blocks per section50 blocks JSON: Not at level Blocks per section50 blocks Group: Not at level Blocks per section50 blocks Section: Applies Blocks per section50 blocks Section: Applies Blocks per section50 blocks File: Not at level Blocks per section8 levels of theme block nesting Theme: Not stated Theme block nesting depth8 levels of theme block nesting JSON: Not stated Theme block nesting depth8 levels of theme block nesting Group: Not stated Theme block nesting depth8 levels of theme block nesting Section: Not stated Theme block nesting depth8 levels of theme block nesting File: Not stated Theme block nesting depth512 KB JSON template file Theme: Not at level JSON template file size512 KB JSON template file JSON: Not at level JSON template file size512 KB JSON template file Group: Not at level JSON template file size512 KB JSON template file Section: Not at level JSON template file size512 KB JSON template file File: Applies JSON template file size512 KB JSON template file File: Applies JSON template file size512 KB section group file Theme: Not at level Section group file size512 KB section group file JSON: Not at level Section group file size512 KB section group file Group: Not at level Section group file size512 KB section group file Section: Not at level Section group file size512 KB section group file File: Applies Section group file size512 KB section group file File: Applies Section group file size256 KB Liquid file Theme: Not at level Liquid file size (sections, snippets, layouts)256 KB Liquid file JSON: Not at level Liquid file size (sections, snippets, layouts)256 KB Liquid file Group: Not at level Liquid file size (sections, snippets, layouts)256 KB Liquid file Section: Not at level Liquid file size (sections, snippets, layouts)256 KB Liquid file File: Applies Liquid file size (sections, snippets, layouts)256 KB Liquid file File: Applies Liquid file size (sections, snippets, layouts)1.5 MB settings_data.json Theme: Not at level settings_data.json file size1.5 MB settings_data.json JSON: Not at level settings_data.json file size1.5 MB settings_data.json Group: Not at level settings_data.json file size1.5 MB settings_data.json Section: Not at level settings_data.json file size1.5 MB settings_data.json File: Applies settings_data.json file size1.5 MB settings_data.json File: Applies settings_data.json file size

  • 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.

A Shopify JSON template or section group holds up to 25 sections of up to 50 blocks each, and 1,250 blocks in total
LimitTheme (yes/no)JSON (yes/no)Group (yes/no)Section (yes/no)File (yes/no)Limit
1,000 JSON templatesAppliesNot at levelNot at levelNot at levelNot at levelJSON templates per theme
20 section groupsAppliesNot at levelNot at levelNot at levelNot at levelSection groups per theme
300 theme block filesAppliesNot at levelNot at levelNot at levelNot at levelTheme block files (blocks/ folder) per theme
100,000 filesAppliesNot at levelNot at levelNot at levelNot at levelFiles per theme
50 MB uploaded theme packageAppliesNot at levelNot at levelNot at levelNot at levelUploaded theme package size (compressed)
250 MB total code (except assets)AppliesNot at levelNot at levelNot at levelNot at levelTotal code (all files except assets)
25 sectionsNot at levelAppliesNot at levelNot at levelNot at levelSections per JSON template
1,250 blocksNot at levelAppliesAppliesNot at levelNot at levelBlocks per JSON template or section group
25 sections per section groupNot at levelNot at levelAppliesNot at levelNot at levelSections per section group
50 blocksNot at levelNot at levelNot at levelAppliesNot at levelBlocks per section
8 levels of theme block nestingNot statedNot statedNot statedNot statedNot statedTheme block nesting depth
512 KB JSON template fileNot at levelNot at levelNot at levelNot at levelAppliesJSON template file size
512 KB section group fileNot at levelNot at levelNot at levelNot at levelAppliesSection group file size
256 KB Liquid fileNot at levelNot at levelNot at levelNot at levelAppliesLiquid file size (sections, snippets, layouts)
1.5 MB settings_data.jsonNot at levelNot at levelNot at levelNot at levelAppliessettings_data.json file size
512 KB settings_schema.jsonNot at levelNot at levelNot at levelNot at levelAppliessettings_schema.json file size
1.5 MB locale fileNot at levelNot at levelNot at levelNot at levelAppliesLocale file size
50 KB liquid setting contentNot at levelNot at levelNot at levelNot at levelNot at levelContent in a single liquid setting
50 characters in the theme nameAppliesNot at levelNot at levelNot at levelNot at levelTheme name length
25 characters in a schema nameNot at levelNot at levelNot at levelAppliesNot at levelSection and block schema name attribute length
100 characters in a custom section or block nameNot at levelNot at levelNot at levelAppliesNot at levelCustom 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.

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.

Downloads

  • 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 PNG
  • Data: Shopify theme limits: templates, sections, blocks and files, shopify.dev, November 20, 2026 CSV

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

Changes

  1. · Shopify theme limits: templates, sections, blocks and files, shopify.dev, November 20, 2026
    First release. 21 limit rows from one shopify.dev page.
Deploi is not affiliated with Shopify. Questions about this data: contact@deploi.ca.