What is a header field limit?

Still have a question, spotted an error, or have a better explanation or a source we should cite?

A header field limit is the maximum length allowed for email headers, both per line and for the entire header section. Cross this limit and mail servers will truncate your email or reject it outright.

RFC 5322 (the standard that defines email format) recommends keeping individual header lines under 78 characters for readability. The hard limit is 998 characters per line. Beyond that, the line must be folded (broken across multiple lines) or it'll break.

For the total header section, there's no official RFC limit, but most mail servers enforce practical caps between 32KB and 256KB. If your headers balloon past that, it's usually a sign something's wrong (a misconfigured tracking system adding redundant headers, or a spam attempt with thousands of routing hops). Mail servers tend to reject these emails on sight.

The most common cause of oversized headers: ESPs that inject dozens of tracking and routing headers into every message. If you're sending through SendGrid, Mailchimp, or any platform that adds its own headers, you're usually fine. But if you're building your own SMTP setup or routing through multiple relays, check your raw headers occasionally. Our Email Header Analyzer will flag oversized sections and show you which fields are eating up space.

If you hit this limit in the wild, the symptoms are rejection bounces ("message too large") or silent truncation where the receiving server just cuts off your headers mid-flight. Fix it by trimming custom headers, reducing relay hops, or debugging whatever's injecting redundant data.

Contributors

Who worked on this answer

Every name links to their profile. Every company links to their site. Real people, real accountability.

Ask an AI · tailored to your setup

Ask AI about your header size

I read this on the Email Almanac about header field limits: "A header field limit is the maximum length allowed for email headers, both per line and for the entire header section. RFC 5322 recommends keeping individual lines under 78 characters and sets a hard limit of 998 characters per line. Most mail servers enforce practical caps between 32KB and 256KB for total header size." Help me figure out if this applies to my setup: 1. Am I at risk? What scenarios cause oversized headers? 2. How do I check? What should I look for in my raw email source? 3. Common culprits: ESPs, tracking pixels, relay chains, what's adding bloat? 4. Fix it: If I'm hitting this limit, what's the fastest fix? --- My details (fill in what applies, the more you share, the better the advice): - ESP/platform: e.g. SendGrid, Mailchimp, custom SMTP - Sending setup: direct send, relay chain, multiple hops - Custom headers: yes/no, what kind - Symptoms: [rejection bounces, truncation, "message too large" errors] - Volume: approx. emails/month

Edit the yellow boxes, then send to the AI of your choice.