Free auditStart free
GuideError · CDN and hosting errors

Vercel 413: FUNCTION_PAYLOAD_TOO_LARGE

Fix Vercel 413 FUNCTION_PAYLOAD_TOO_LARGE: the 4.5 MB request and response body limit, client-side uploads to Vercel Blob, chunking, and how to check payload size.

3 min
read
3
sources
Oct 28, 2026
updated
Scaplet Editorial Team
author
In one line

Vercel returns 413 FUNCTION_PAYLOAD_TOO_LARGE when the request or response body of a Vercel Function is bigger than 4.5 MB. The limit is fixed, so the fixes are to send less, compress, upload large files straight from the browser to Vercel Blob, split the data across requests, or keep big data in external storage.

30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
01Where the 4.5 MB limit is checked

The limit and what it covers

Vercel documents the maximum payload size for the request body or the response body of a Vercel Function as 4.5 MB. A function that receives a payload over the limit returns 413: FUNCTION_PAYLOAD_TOO_LARGE. The pages I checked document no setting to change it; the guidance is to change how the data travels.
Direction

Request body to a function

Limit
4.5 MB
Result
413 FUNCTION_PAYLOAD_TOO_LARGE
Direction

Response body from a function

Limit
4.5 MB
Result
Also covered by the same documented limit
02How it works

Fixes, in the order Vercel lists them

Reproduce it: send a body over 4.5 MB to your function
head -c 5000000 /dev/zero > big.bin
curl -i -X POST --data-binary @big.bin https://your-app.vercel.app/api/upload

The curl test sends 5,000,000 bytes, which is above 4.5 MB. Expect a 413; then repeat with a smaller file to confirm the route works.

  1. 01

    Review the payload

    Measure what the client sends and compare it with 4.5 MB.

  2. 02

    Reduce it

    Send less data, or compress it before sending.

  3. 03

    Upload directly to Vercel Blob

    For large files, use client-side uploads: the file goes from the browser to Vercel Blob without passing through the function.

  4. 04

    Split into multiple requests

    Send smaller chunks in separate requests when the data cannot shrink.

  5. 05

    Use external storage

    For very large data, keep it in storage and pass the function a reference instead of the bytes.

03Your call

Choosing the fix

If this fits

Upload straight to storage when

  • Users upload images, video, PDFs or other files
  • The file may exceed 4.5 MB by design
  • The function only needs to know where the file is
Or

Chunk or compress when

  • The data is JSON or text you control
  • You can send it in several smaller requests
  • The function must process the bytes itself
Strengths
  • Client-side upload avoids the function limit entirely
  • Files do not use function execution time
Weaknesses
  • You must set up storage and a way to authorize the upload
  • The function learns about the file after the upload, so you handle that step separately
05Explained

What a 413 means for SEO

Google says it does not use content from URLs that return 4xx, and a 413 is a 4xx. Ordinary page fetches by crawlers carry no request body, so this limit mostly affects uploads and API calls. The documented limit also covers response bodies, so keep pages served by a function well under 4.5 MB.
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What is the Vercel request body size limit?

4.5 MB for the request body or the response body of a Vercel Function. A request over that limit returns 413 FUNCTION_PAYLOAD_TOO_LARGE.

02Can I raise the 4.5 MB limit on Vercel?

The Vercel docs I checked list it as a fixed limit and give no setting to raise it. They suggest reducing or compressing the payload, uploading client-side to Vercel Blob, splitting into requests, or using external storage.

03How do I upload a large file on Vercel?

Use a client-side upload to Vercel Blob so the file travels from the browser to storage and not through your function. Your function then handles only the file reference.

04Is FUNCTION_PAYLOAD_TOO_LARGE the same as nginx 413?

The meaning is the same HTTP status, 413 Payload Too Large. The limit, the setting and the fix are specific to the platform that enforces it.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • vercel.com
  • google.com
  1. 01Vercel Docs: FUNCTION_PAYLOAD_TOO_LARGEvercel.com · checked 2026-11-01
  2. 02Vercel Docs: Vercel Functions limitsvercel.com · checked 2026-11-01
  3. 03How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-11-01
Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane