---
schema_version: "1"
id: 5295cce2da50105885c63f05223f5d75521e1e01f2f5c940ffb0d47189e89895
title: Visualforce Limits
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-app-limits-cheatsheet/guides/limits/salesforce-app-limits-platform-vf.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-app-limits-cheatsheet/guide/salesforce-app-limits-platform-vf.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: b01b340d3ffe67b3dbf76b71c65aaf609eef228691ac18ffc10736acf3be1431
products:
  - Salesforce Developer Limits and Allocations Quick Reference
  - Platform Developer Content
---

# Visualforce Limits

|Limit|Value|
|-----|-----|
|Maximum response size for a Visualforce page|Less than 15 MB|
|Maximum view state size in a Visualforce page|170KB|
|Maximum size of a Visualforce email template|1 MB|
|Maximum file size for a file uploaded using a Visualforce page|10 MB|
|Maximum size of HTML response *before* rendering, when Visualforce page is rendered as PDF|Less than 15 MB|
|Maximum PDF file size for a Visualforce page rendered as a PDF|60 MB|
|Maximum total size of all images included in a Visualforce page rendered as a PDF|30 MB|
|Maximum header size of a Visualforce page|8,192 bytes|
|Maximum request size of a JavaScript remoting call|4 MB|
|Default timeout for a JavaScript remoting call|30,000 milliseconds (30 seconds)|
|Maximum timeout for a JavaScript remoting call|120,000 milliseconds (120 seconds)|
|Maximum rows retrieved by queries for a single Visualforce page request|50,000|
|Maximum rows retrieved by queries for a single Visualforce page request in read-only mode|1,000,000|
|Maximum collection items that can be iterated in an iteration component such as `<apex:pageBlockTable>` and `<apex:repeat>`|1,000|
|Maximum collection items that can be iterated in an iteration component such as `<apex:pageBlockTable>` and `<apex:repeat>` in read-only mode|10,000|
|Maximum field sets that can be displayed on a single Visualforce page.|50|
|Maximum field sets allowed per sObject.|2,000|
|Maximum fields through lookup relationships allowed per field set.|25|
|Maximum records that can be handled by StandardSetController|10,000|

