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

Canonical: https://scaplet.com/errors/cdn/vercel-payload-too-large

Guide Error · CDN and hosting errors

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 with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-payload-too-large%20(%22Vercel%20413%3A%20FUNCTION_PAYLOAD_TOO_LARGE%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-payload-too-large%20(%22Vercel%20413%3A%20FUNCTION_PAYLOAD_TOO_LARGE%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-payload-too-large%20(%22Vercel%20413%3A%20FUNCTION_PAYLOAD_TOO_LARGE%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Ferrors%2Fcdn%2Fvercel-payload-too-large%20(%22Vercel%20413%3A%20FUNCTION_PAYLOAD_TOO_LARGE%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 3 minutes.

1. [The limit and what it covers 01](#the-limit-and-what-it-covers)
2. [Fixes, in the order Vercel lists them 02](#fixes-in-the-order-vercel-lists-them)
3. [Choosing the fix 03](#choosing-the-fix)
4. [Related Vercel limits that look similar 04](#related-vercel-limits-that-look-similar)
5. [What a 413 means for SEO 05](#what-a-413-means-for-seo)

_01_Where 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

**Check the size on the wire, not the file on disk**A JSON body, a multipart form with other fields, or a Base64 string is bigger than the file it carries. Measure the request body the client sends.

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

_03_Your 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

_04_Documented Vercel Function limits

## Related Vercel limits that look similar

Limit

### Request or response body

Value

4.5 MB

Limit

### Bundle size, uncompressed

Value

250 MB, or 500 MB for Python

Limit

### File descriptors

Value

1,024 shared across concurrent executions

Limit

### Duration, Fluid compute

Value

300 seconds default; 300 seconds maximum on Hobby, 800 on Pro and Enterprise

A function that is too slow gets [FUNCTION_INVOCATION_TIMEOUT](/errors/cdn/vercel-function-invocation-timeout), not a 413. A 413 from your own server software is a different problem; the nginx version is on [413 request entity too large in nginx](/errors/http/413/nginx).

_05_Explained

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

_01_ What 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.

_02_ Can 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.

_03_ How 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.

_04_ Is 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. 01 [Vercel Docs: FUNCTION_PAYLOAD_TOO_LARGE](https://vercel.com/docs/errors/FUNCTION_PAYLOAD_TOO_LARGE) vercel.com · checked 2026-11-01
2. 02 [Vercel Docs: Vercel Functions limits](https://vercel.com/docs/functions/limitations) vercel.com · checked 2026-11-01
3. 03 [How HTTP status codes affect Google's crawlers](https://developers.google.com/crawling/docs/troubleshooting/http-status-codes) developers.google.com · checked 2026-11-01

## Keep learning

[All errors](/errors)

[Learn Vercel FUNCTION_INVOCATION_TIMEOUT CDN and hosting errors](/errors/cdn/vercel-function-invocation-timeout) [Related 5xx server errors Status codes and links](/seo-issues/server-errors-5xx) [Read next 413 Request Entity Too Large in nginx HTTP status codes](/errors/http/413/nginx) [Do Run a free site audit Free, about two minutes](/site-audit)

Other 413 errors
[413 Request Entity Too Large in Apache](/errors/http/413/apache) [413 Request Entity Too Large in IIS](/errors/http/413/iis) [413 Request Entity Too Large in nginx](/errors/http/413/nginx) [413 Payload Too Large in Express](/errors/http/413/express) [413 Payload Too Large in PHP uploads](/errors/http/413/php)

More Vercel errors
[Vercel domain not working](/errors/cdn/vercel-domain-not-working) [Vercel FUNCTION_INVOCATION_TIMEOUT](/errors/cdn/vercel-function-invocation-timeout) [Vercel: too many redirects](/errors/cdn/vercel-too-many-redirects) [Vercel 429: Too Many Requests](/errors/cdn/vercel-429) [Vercel 500: Internal Server Error](/errors/cdn/vercel-500)

Nearby in errors
[100 Continue](/errors/http/100)

More in CDN and hosting errors
[Firebase Hosting 404](/errors/cdn/firebase-hosting-404) [GitHub Pages 404 Not Found](/errors/cdn/github-pages-404) [Google Cloud 502 Bad Gateway](/errors/cdn/google-cloud-502) [Heroku 503 Service Unavailable](/errors/cdn/heroku-503) [Heroku H10: App crashed](/errors/cdn/heroku-h10-app-crashed) [Heroku H12: Request timeout](/errors/cdn/heroku-h12-request-timeout) [Heroku H13: Connection closed without response](/errors/cdn/heroku-h13) [Heroku H14: No web processes running](/errors/cdn/heroku-h14) [Netlify build failed](/errors/cdn/netlify-build-failed) [Netlify function timeout](/errors/cdn/netlify-function-timeout) [Render 502 Bad Gateway](/errors/cdn/render-502) [S3 Access Denied (403 Forbidden)](/errors/cdn/s3-access-denied) [Vercel 413: FUNCTION_PAYLOAD_TOO_LARGE](/errors/cdn/vercel-payload-too-large) [Vercel 429: Too Many Requests](/errors/cdn/vercel-429) [Vercel 500: Internal Server Error](/errors/cdn/vercel-500) [Vercel build failed](/errors/cdn/vercel-build-failed) [Vercel domain not working](/errors/cdn/vercel-domain-not-working) [Vercel FUNCTION_INVOCATION_TIMEOUT](/errors/cdn/vercel-function-invocation-timeout) [Vercel: too many redirects](/errors/cdn/vercel-too-many-redirects) [Akamai reference number](/errors/cdn/akamai-reference-number) [ALB 503 Service Unavailable](/errors/cdn/alb-503) [ALB 504 Gateway Timeout](/errors/cdn/alb-504-gateway-timeout) [API Gateway 403 Forbidden](/errors/cdn/api-gateway-403-forbidden) [API Gateway 504 Gateway Timeout](/errors/cdn/api-gateway-504)

Free · 2 minutes

## Tools point. Agencies advise. _This one ships._

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

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **0→7** ChatGPT citations in six weeks Paylane
