What it means
A 400 Bad Request means the website's server rejected what your browser sent because it looked invalid. On everyday sites this is most often caused by damaged or oversized cookies for that site, or a mistyped or broken link, so unlike most server errors it is often fixable on your side. Related messages such as "Request Header Or Cookie Too Large" and 431 Request Header Fields Too Large mean the cookies or headers your browser sent were bigger than the server allows.
Common causes
- Too many, too large or corrupted cookies for that site
- A mistyped or broken URL, or one with invalid characters
- A very long link with lots of tracking text in it
- Uploading a file bigger than the site allows
- A browser extension changing requests
- On the site's side, header size limits set too low or a bug in the app
How to fix it
Work down the list. Each fix is safe to try before moving on to the next.
FIX 01Delete cookies for that websiteEASY
- In Chrome, open the three-dot menu and choose
Settings. - Go to
Privacy and security > Third-party cookies > See all site data and permissions. - Type the website's name in the search box.
- Click the trash icon next to the site and confirm with
Delete. - In Safari on a Mac, go to
Safari > Settings > Privacy > Manage Website Data, select the site and clickRemove. - Reload the page and sign in again.
Why it helps: Oversized or corrupted cookies are the most common cause of 400 and 431 errors, and removing them only affects that one site.
FIX 02Check the web addressEASY
- Look for typos, spaces, stray
%signs or odd characters in the address bar. - Delete everything after the main page path (for example a long
?section) and pressEnter. - If that fails, go to the site's home page and navigate to the page from there.
Why it helps: A malformed or overly long URL can be rejected before the site even tries to load the page.
FIX 03Try a private window or another browserEASY
- In Chrome press
Ctrl + Shift + Non Windows orCommand + Shift + Non a Mac to open an Incognito window. - Open the same page there.
- If it works, the problem is cookies or an extension in your normal browser profile.
Why it helps: Private windows start with no cookies and usually no extensions, so they bypass both causes.
FIX 04Turn off extensions one at a timeEASY
- In Chrome, go to the three-dot menu, then
Extensions > Manage Extensions. - Switch off extensions such as ad blockers, privacy tools or header changers.
- Reload the page, and turn extensions back on one by one to find the culprit.
Why it helps: Some extensions add or modify request headers in ways a server rejects.
FIX 05Check the file you are uploadingEASY
- If the error appeared while uploading, check the site's stated size limit.
- Compress or resize the file and try again.
Why it helps: Some servers answer an oversized or malformed upload with a 400 error.
FIX 06Contact the websiteEASY
- If the error continues after clearing cookies and in other browsers, contact the site's support.
- Tell them the page address, the time and what you clicked.
Why it helps: If it fails everywhere, the site is rejecting valid requests and must fix it.
// RUN THIS SITE? FIXES FOR SITE OWNERS
FIX 07Reduce cookie size on your siteMEDIUMSITE OWNERS
- Open your site in a browser's developer tools and check how many cookies your domain sets and how large they are.
- Remove unused cookies from plugins, analytics and A/B testing tools.
- Store large data on the server and keep only a short session ID in the cookie.
- Scope cookies to the subdomain or path that needs them instead of the whole domain.
Why it helps: Every cookie for your domain is sent with every request, so large cookies push requests over the header limit.
FIX 08Check server logs and header limitsADVANCEDSITE OWNERS
- Check the web server error log at the time of the 400 for a reason such as an oversized header or invalid request line.
- On Nginx, the header buffer size is set by
large_client_header_buffers; on Apache, byLimitRequestFieldSize. Raise them only moderately and only if your cookies are legitimately large. - If you use a load balancer, CDN or firewall, check its header limits too, since any layer can reject the request.
- For APIs, validate the request body (for example invalid JSON) and return a clear error message describing what is wrong.
Why it helps: The log shows which layer rejected the request and why, so you fix the right setting.
Check it's fixed
- The page loads in your normal browser window.
- You can sign in and stay signed in without the error coming back.
- The same link works on another device.
When to get help
If clearing that site's cookies and trying another browser do not help, the problem is likely on the site; contact its support. Site owners who cannot find the cause in their logs should ask their host or CDN provider.
Questions
What does Request Header Or Cookie Too Large mean?
Your browser sent more cookie or header data than the server accepts. Deleting that site's cookies almost always fixes it.
What is the difference between 400 and 431?
400 is a general "invalid request" error. 431 Request Header Fields Too Large is more specific: the headers, usually cookies, were too big.
Will deleting the site's cookies log me out?
Yes, for that site only. Your other sites and saved passwords are not affected.
Do I need to clear all my browsing data?
No. Deleting cookies for just the problem site is enough in most cases and keeps you signed in elsewhere.
Related fixes
Still stuck?
Paste the exact message and the repair bot will find the closest fix, or search it on Google, Microsoft, Apple, Reddit and YouTube.