Steps
How we tested, and what is real
On 30 October 2026 we ran a throwaway n8n 2.43.7 in Docker (the official
n8nio/n8n:2.43.7image, SQLite) with three Webhook workflows: one taking a JSON body, one with the Raw Body option on (application/octet-stream), and one taking a multipart file upload into binary propertydata. We sent bodies of 1 MB, 5 MB and 20 MB, plus a gzipped 20 MB JSON, under three configurations, about 40 requests in all. Every status code and message below is copied from those runs.Quick answer: what you see and what it means
What the caller gets Cause Fix HTTP 500 There was a problem executing the workflow(JSON body)Body larger than N8N_PAYLOAD_SIZE_MAX(16 MB by default). The log saysPayloadTooLargeError: request entity too large.Raise N8N_PAYLOAD_SIZE_MAX, or send the file as multipart.HTTP 500 Workflow Webhook Error: Workflow could not be started!(Raw Body webhook)Same limit, raw body. Same fix. HTTP 413 The submitted form data exceeds the allowed size.Multipart upload larger than N8N_FORMDATA_FILE_SIZE_MAX(200 MB by default).Raise N8N_FORMDATA_FILE_SIZE_MAX.HTTP 413 as an HTML page ( 413 Request Entity Too Largewith nginx or Cloudflare branding)A reverse proxy in front of n8n, not n8n. Raise the proxy limit, for example nginx client_max_body_size.n8n does not answer 413 for a big JSON body
With default settings a 1 MB and a 5 MB JSON body worked. A 20 MB JSON body got HTTP 500 with
{"code":0,"message":"There was a problem executing the workflow"}, not 413. Nothing in the response says the body was too big. Only the server log does:Error in handling webhook request POST /webhook/big: There was a problem executing the workflowfollowed byPayloadTooLargeError: request entity too largefrombody-parser. So if a large webhook call fails with this vague 500, checkdocker logs n8n 2>&1 | grep -i PayloadTooLargebefore you debug the workflow itself. The execution never starts, so the Executions list stays empty.Raw Body webhooks fail with "Workflow could not be started!"
The same 20 MB sent as
application/octet-streamto a Webhook with Raw Body turned on got HTTP 500Workflow Webhook Error: Workflow could not be started!. Same cause, samePayloadTooLargeErrorin the log, different text for the caller.Fix: raise N8N_PAYLOAD_SIZE_MAX
The value is in megabytes and the default is
16. WithN8N_PAYLOAD_SIZE_MAX=32every one of our tests returned 200, including the 20 MB JSON and the gzipped one. In Docker, add-e N8N_PAYLOAD_SIZE_MAX=32(or the line underenvironment:in docker compose) and recreate the container: a plain restart of a container started without it keeps the old value. Raise it only as far as you need, since n8n holds the whole body in memory; very large bodies can crash the instance (see n8n out of memory errors).The limit is exact, and gzip does not help
With
N8N_PAYLOAD_SIZE_MAX=1, a raw body of exactly 1,048,576 bytes worked and a JSON body of 1,048,587 bytes (11 bytes more) failed, so "1" means 1 MiB. Compressing does not get around it: a 20 MB JSON sent gzipped withContent-Encoding: gzipwas tiny on the wire but still failed at the default limit, because n8n checks the size after decompressing.Multipart uploads have their own limit, and the only real 413
A 20 MB file sent as
multipart/form-dataworked with default settings: multipart is not covered byN8N_PAYLOAD_SIZE_MAXbut byN8N_FORMDATA_FILE_SIZE_MAX, 200 MB by default. WithN8N_FORMDATA_FILE_SIZE_MAX=1, 5 MB and 20 MB uploads got HTTP 413{"code":413,"message":"The submitted form data exceeds the allowed size."}, and a file of exactly 1 MiB still worked. This is the only 413 that n8n itself sent in our tests. It applies to Webhook file uploads and the Form Trigger. So the practical fix for big files is often to send them as multipart instead of base64 in JSON. More on that: n8n webhook file upload and binary data.A 413 HTML page comes from your proxy
If the caller sees an HTML page titled
413 Request Entity Too Large, the request never reached n8n. nginx allows 1 MB by default; addclient_max_body_size 50m;to the server block that proxies n8n and reload nginx. Other proxies and tunnels have their own caps (Cloudflare documents 100 MB on its free plan). We did not test proxies live for this guide, so check your proxy docs. nginx setup for n8n: n8n Connection lost behind a reverse proxy.
All test results
Real requests to n8n 2.43.7 in Docker. PAYLOAD and FORMDATA are N8N_PAYLOAD_SIZE_MAX and N8N_FORMDATA_FILE_SIZE_MAX in MB.
| Test | Result |
|---|---|
| JSON 1 MB, 5 MB (defaults) | 200 |
| JSON 20 MB (defaults) | 500 There was a problem executing the workflow; log PayloadTooLargeError |
| Raw Body octet-stream 20 MB (defaults) | 500 Workflow could not be started! |
| Multipart 20 MB (defaults) | 200 (200 MB form-data limit applies) |
| Gzipped 20 MB JSON (defaults) | 500, limit applies after decompression |
| PAYLOAD 1: raw exactly 1,048,576 bytes | 200 |
| PAYLOAD 1: JSON 1,048,587 bytes | 500 |
| FORMDATA 1: multipart 5 MB, 20 MB | 413 The submitted form data exceeds the allowed size. |
| FORMDATA 1: multipart exactly 1 MiB | 200 |
| PAYLOAD 32: every case above | 200 |
Checklist
- HTML 413 page? Fix the proxy limit, not n8n.
- Vague 500 on a big call? Grep the n8n log for
PayloadTooLargeError. - JSON or raw body over 16 MB? Raise
N8N_PAYLOAD_SIZE_MAXand recreate the container. - Multipart upload getting a JSON 413? Raise
N8N_FORMDATA_FILE_SIZE_MAX. - Sending files as base64 in JSON? Send multipart instead.
- Raised the limit and now n8n crashes? You hit memory, not the limit.
Good to know
- Right after n8n starts, webhooks answered an HTML
Cannot POST /webhook/big404 for a few seconds. Wait for startup before testing. Other 404s: n8n webhook not working (404). - Big responses from other APIs are a different problem: n8n HTTP Request node errors. Binary that disappears between nodes: n8n binary data not found.
- Every error text from our guides: n8n error message index.
What we did not test
n8n Cloud (its limits are set by n8n, not by you), queue mode with webhook processors, the public REST API (it uses the same N8N_PAYLOAD_SIZE_MAX in the source, but we did not send it big bodies), and real proxies in front of n8n.
Start from a working agent
FAQ
How do I fix 413 Request Entity Too Large in n8n?
If it is an HTML page, raise your reverse proxy limit (nginx client_max_body_size). If it is JSON with "The submitted form data exceeds the allowed size.", raise N8N_FORMDATA_FILE_SIZE_MAX. For big JSON or raw bodies n8n answers 500, not 413; raise N8N_PAYLOAD_SIZE_MAX.
What is the default N8N_PAYLOAD_SIZE_MAX?
16, in megabytes (MiB). In our tests a 20 MB JSON body failed with the default and worked with N8N_PAYLOAD_SIZE_MAX=32.
Why does my n8n webhook return "There was a problem executing the workflow" for large requests?
In our tests that was the response to a JSON body larger than N8N_PAYLOAD_SIZE_MAX. The n8n log shows PayloadTooLargeError: request entity too large. The workflow never starts.
Does gzip compression get around the n8n payload limit?
No. A gzipped 20 MB JSON body still failed at the 16 MB default, because n8n measures the body after decompressing it.
What is N8N_FORMDATA_FILE_SIZE_MAX?
The size limit in MB for multipart/form-data uploads to Webhook and Form Trigger nodes, 200 by default. Over it, n8n answers HTTP 413 "The submitted form data exceeds the allowed size."
Related guides
- n8n Webhook file upload not working? Binary data keys, 25 tests
- n8n binary data in queue mode: worker says File not found? 6 tests
- n8n out of memory? 9 crash tests, and the setting to raise
- n8n Discord node not working? 20 tests, every error decoded
- n8n 429 Too Many Requests: fix rate limits with Retry On Fail, batching or Retry-After
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes