+ Start a Discussion

visualforce page size



What is the maximum supported size of visualforce page??


Thankx in advance!

Bhawani SharmaBhawani Sharma


Ankit AroraAnkit Arora

Yes the page size is 128 KB. You can also check the page size from view state of your page.


Go to Setup > My Personal Information > Personal Information > Check Development Mode > Check Show View State in Development Mode.


Now execute you page and you can test the view state in development mode.



Ankit Arora

Blog | Facebook | Blog Page


Please refer

 Visualforce Developer's Guide, (SP11), page no21:


Salesforce allows Visualforce pages to have a maximum view state size of 135KB.


I have to confirm is this correct one, because I were solving dev401 questions, there was an option for 128 kb as you both told bot not for 135kb, and none of these option was also not there.

Ankit AroraAnkit Arora

Yes after spring 11 page size is increased to 135 KB .



Ankit Arora

Blog | Facebook | Blog Page


The answer is "it depends" :)  As of the Summer 2012 release, here are the size limits for a VisualForce page:


Maximum response size for a Visualforce page: Less than 15 MB
Maximum view state size in a Visualforce page: 135KB
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 response size of a JavaScript remote call: 15 MB


15 mb

Nishant Dubey 7Nishant Dubey 7
Response Size of VF page : less than 15MB
Nishant Dubey 7Nishant Dubey 7
135KB its a maximum size of View State
Mukesh Kumar 107Mukesh Kumar 107
135KB as of Winter 16