Email subject line length: what RFC 5322 requires, and what inboxes truncate
The email standard limits how long a line may be, not how short a subject must be. A long subject can be valid and still be cut on a phone. Here is what RFC 5322 and RFC 6532 actually say, and what they leave to each inbox.
There is a real standard for how long an email line may be, and there is a separate, unofficial habit of cutting a subject to “about 40 or 50 characters” so it looks good on a phone. Those two things are often mixed together. This guide separates them, the same way our guide on Google title and meta description length separates Google’s own rules from SEO rules of thumb.
What the email standard actually says
RFC 5322, the Internet Message Format standard, does not give the Subject field a character cap of its own. It limits the length of each line in a message, and it allows a long header, including Subject, to be split across lines. The two line limits, excluding the CRLF at the end of the line, are [1]:
- A line MUST be no more than 998 characters.
- A line SHOULD be no more than 78 characters, so that older display software is less likely to truncate or wrap it badly.
The 998-character “MUST” exists because many mail systems will not accept a line longer than 1,000 characters including the carriage return and line feed [1]. The 78-character “SHOULD” is a display recommendation, not a ban on longer subjects.
A header field is logically one line: the name, a colon, and the field body. To stay inside the 998- and 78-character line limits, RFC 5322 allows folding: you may insert a CRLF before a space and continue the field on the next line. The standard’s own example is a Subject written as two lines, “Subject: This” and “ is a test,” which unfolds to a single subject, “This is a test” [1]. Once unfolded, “an unfolded header field has no length restriction and therefore may be indeterminately long” [1].
In other words, a subject of 200 characters can be a valid email. It is not a protocol error. Whether a particular inbox shows all 200 characters is a different question, and the standard does not answer it.
Unicode subjects and the 78-character advice
RFC 5322 is written around ASCII lines. RFC 6532, which describes internationalized email headers, keeps the same idea and tightens the units. It changes the hard line limit from 998 characters to 998 octets (bytes), because a UTF-8 character may be more than one byte. The 78-character recommendation “remains defined in terms of characters, not octets, since it is intended to address display width issues, not line-length issues” [2].
That split matters if you write a subject in Chinese, or you include an emoji. A subject of 40 Chinese characters is 40 characters for the 78-character advice, and typically 120 bytes in UTF-8, which is still far under 998 octets on a single line. A long English subject that looks fine as 90 letters can, once encoded for transport, become a longer byte string. If you are close to a line limit, count both characters and bytes, and let the mail program fold the header rather than packing one huge physical line. Our guide on characters, bytes and weights walks through the arithmetic.
One practical detail follows from the 78-character recommendation: the limit applies to the whole physical line, which includes the field name. The eight characters of “Subject:” plus a space are already part of that line if the header is not folded. A subject that fills 78 characters on its own is, on an unfolded single line, already past the recommended line length. This is a reason to fold, or to write a shorter first line, not a reason to invent a “69-character official subject limit.” The standard does not state one.
Inbox truncation is not a published character cap
Mail apps shorten a long subject to fit the screen, just as Google shortens a long title in a search result. Neither Gmail nor Outlook publishes, on the help pages we checked for this guide, a single official “subject must be N characters” display limit that applies on every device. The visible length changes with font, pane width, whether a date or a sender name shares the row, and whether the subject contains wide characters.
That is why marketing articles often recommend keeping a subject to about 40, 50 or 60 characters. Those figures are rules of thumb for what tends to remain visible on a small screen. They are not RFC 5322 limits, and they are not a guarantee that a 41-character subject will be cut or that a 39-character subject will be shown in full. We do not print a “best length” as if it were a standard, because we have not found a mailbox provider that documents one.
If you need a working habit, write the identifying words first, the same way you would for a search title, and then check the subject on a narrow screen in your own sending tool. The CountText counter will tell you the character count; it will not tell you how many of those characters a particular inbox will display.
Preview text, or the preheader, is a different field
Many inboxes show a line of preview text next to or under the subject. That line is usually taken from the opening of the message body, or from a dedicated preheader that the sender places first in the body (sometimes visually hidden in HTML). RFC 5322 does not define a preheader field and does not give it a character limit.
Because preview text is drawn from the body, a subject that says “Your receipt” and a body that starts with a tracking pixel, a logo, or a long mailing address can produce a useless preview. Putting a short, plain-text sentence at the start of the body is the reliable way to control that line. Treat any “40–100 character preheader” figure you see on a vendor blog as advice about layout, not as a protocol cap. If your sending tool shows a preview, use that, and confirm with a test email to yourself.
Worked examples
These counts use ordinary visible characters, including spaces, which is what “Characters (with spaces and line breaks)” shows in CountText:
- “Meeting moved to 3pm” is 21 characters. It is well under the 78-character line recommendation and will usually display in full.
- “Your CountText backup of 21 November is ready to download” is 58 characters. Still under 78 on the subject text alone; on some phones the last few words may disappear beside a long sender name.
- A 120-character subject can be sent as a valid, folded header under RFC 5322. It is not “too long to send.” It is long enough that most inbox lists will cut it, so the first clause has to make sense on its own.
- The eight-character Chinese subject “备份已完成,请下载” is 8 characters and, in UTF-8, 24 bytes, plus punctuation. It is short as a character count and still uses more bytes per character than English, which is why a CJK subject can feel tighter on a byte budget even when the character count looks small.
A practical way to write a subject
- Put the fact the reader needs first: the what, the when, or the action, not “Hello” or the company name they can already see in the sender field.
- Count the characters in the CountText counter if you are trying to stay short for display, not because 40 or 78 is a sending limit.
- If the subject is long, let the mail program fold the header, and do not paste it as one 200-character physical line.
- Write the first sentence of the body as if it will appear next to the subject.
- Send a test to the inboxes you actually use and see where the subject and preview are cut. That result is more reliable than a generic character target.
Frequently asked questions
Is there an official character limit for an email subject?
RFC 5322 does not cap the Subject field itself. It says each line MUST be no more than 998 characters and SHOULD be no more than 78, excluding CRLF, and it allows a long Subject to be folded across lines. Once unfolded, a header field has no length restriction. [1]
Should an email subject be 40, 50 or 78 characters?
78 is the recommended maximum length of a physical line in RFC 5322, not a “best subject length.” Figures such as 40 or 50 characters are unofficial rules of thumb for what may remain visible on a small screen. Mail apps do not, on the help pages we checked, publish one official display cap. [1]
Does a long subject get rejected by the mail server?
Not merely for being long, if the header is folded so that no physical line exceeds 998 characters (or 998 octets under RFC 6532). A subject of a few hundred characters can still be a valid message. Whether an inbox displays all of it is a separate issue. [1][2]
How should Chinese or emoji in a subject be counted?
RFC 6532 keeps the 78-character display recommendation in characters, and states the hard line limit as 998 octets. A Chinese character is one character and typically three UTF-8 bytes. Count both if you are close to a line limit, and let the mail program fold the header. [2]
What is the official limit for email preview or preheader text?
RFC 5322 does not define a preheader field or give it a character limit. Preview text is usually taken from the start of the body or from a preheader the sender places there. Any specific character target for that line is a layout habit, not a protocol cap.
Sources (checked November 2026)
- RFC 5322, Internet Message Format, sections 2.1.1 and 2.2.3: 998-character MUST and 78-character SHOULD line limits, excluding CRLF; header folding; an unfolded header field has no length restriction.
- RFC 6532, Internationalized Email Headers, section 3.4: the hard line limit becomes 998 octets; the 78-character recommendation remains in characters for display width.
- The 21-, 58- and 8-character subject examples were counted in CountText on 21 November 2026, using visible characters including spaces. The 24-byte figure for the Chinese example is its UTF-8 length.
Try it: Open the CountText counter to count a subject or the first line of a body. “Characters (with spaces and line breaks)” is the figure to compare with the 78-character line recommendation; the UTF-8 byte count is the figure to compare with a 998-octet line. Your text stays in your browser.