reference · 4 min read

Email Syntax: The Rules That Decide If an Email Address Is Valid

Checking whether an email address is valid usually means two different things. Syntax is the question of whether the string follows the rules for an email address. Verification asks whether the mailbox is real and reachable. This guide covers the first part, defined by RFC 5321 and RFC 5322.

Author · EmailSherlock Research Updated · May 15, 2026 Category · Address Verification

Checking whether an email address is valid usually means two different things. One is email syntax: does the string follow the rules for an email address. The other is verification: is the mailbox real and reachable. This guide covers the first part. The email syntax rules are defined by RFC 5321 (the SMTP protocol) and RFC 5322 (the message format).

The email syntax meaning collapses to one question: would an SMTP server accept this string as a recipient. The email address syntax rules below define the answer. RFC 5322 is the canonical reference for the format that lives in headers like From:; the RFC 5322 email address format is what most validators implement.

01 · anatomy

Address structure #

A valid email address has two parts separated by a single @:

local-part@domain

Everything to the left of the @ is the local part (the mailbox name), everything to the right is the domain (the host that receives mail for this mailbox). Both sides have their own rules and their own length limits, and a valid email syntax check applies all of them.

02 · local part

Local part rules #

The local part allows the following characters without quoting:

A-Z  a-z  0-9  !  #  $  %  &  '  *  +  -  /  =  ?  ^  _  `  {  |  }  ~  .

The dot (.) is allowed between other characters but cannot appear at the start, at the end, or twice in a row. So [email protected] is valid, but [email protected], [email protected], and [email protected] are not.

Everything else (spaces, parentheses, angle brackets, commas, colons, semicolons, backslashes, @, [, ]) is only allowed inside a quoted string ("first last"@example.com). Quoted local parts are legal per RFC 5321 but rejected by most real-world mail systems. If you see one in a sign-up form, assume it is a mistake.

03 · domain part

Domain part rules #

The domain part is a hostname. It follows the DNS rules in RFC 1035: labels separated by dots, each label up to 63 characters, letters, digits, and hyphens only. Hyphens cannot appear at the start or end of a label. The top-level domain cannot be all digits.

Internationalized Domain Names (IDN) such as user@bücher.de are legal and widely supported. At the protocol level, the domain is converted to Punycode (xn--bcher-kva.de) before the DNS lookup. Validators that reject non-ASCII domain characters are out of date.

IP-literal addresses like alice@[192.0.2.1] are legal per RFC 5321 but almost never used outside testing. Receiving mail servers rarely accept them.

04 · length limits

Length limits #

local part

64 characters maximum (RFC 5321, Section 4.5.3.1).

domain

255 characters total, each label up to 63 characters.

full path

256 octets for the full forward-path in SMTP (RFC 5321, Section 4.5.3.1).

Addresses that exceed any of these limits are invalid email syntax and will be rejected by SMTP servers regardless of other properties.

email syntax checker

Check any address instantly

Our verifier runs the full email address syntax check, resolves the domain, and checks MX, disposable, and catch-all status alongside the syntax pass. Free, no signup. Acts as an email address syntax validator and a deliverability check in one call.

05 · edge cases

Edge cases most validators miss #

A naive RFC 5322 email regex passes the obvious cases and fails on the interesting ones. The six edge cases below trip up most hand-rolled validators and even some commercial ones.

01

Plus-tagging

[email protected] is a valid email address. Rejecting the + character breaks anyone using a tagged inbox, which on Gmail alone is a significant share of users.

02

Dots in the local part

Common in real addresses. Rejecting them on the grounds of "looks weird" is a validator bug, not an email syntax validation rule.

03

Single-character local parts

[email protected] is valid email syntax. Validators that enforce a minimum length of 2 or 3 characters are wrong.

04

Non-ASCII characters

RFC 6531 ("SMTPUTF8") extends the local part to allow Unicode. alice@böcker.se and αλέξης@example.com are both legal. Modern providers support this; legacy validators do not.

05

New TLDs

Some validators hardcode a list like com/net/org/... and reject anything outside it. With over 1,500 active TLDs including .email, .bank, .photography, that is always wrong.

06

Trailing whitespace

Copy-paste from a mailto link often includes trailing spaces or non-breaking spaces. Trim before validation, do not reject.

06 · scope limit

Syntax is not verification #

Passing email syntax validation only means the string could be an email address. It does not prove the domain has a mail server, the mailbox exists, or that the address is in active use. One hundred percent of gibberish that happens to match RFC 5321 will pass the email address syntax rules.

That is why our email verifier combines syntax with MX lookup, catch-all detection, disposable filtering, and reputation signals. The full set of checks answers a question syntax alone cannot: will a real message land in a real inbox.

07 · faq

FAQ #

01 What makes an email address syntactically valid?
A valid email address has two parts separated by a single @: the local part (before) and the domain (after). The local part allows letters, digits and the characters ! # $ % & ' * + - / = ? ^ _ ` { | } ~ . (with dots only between other characters). The domain must be a plausible hostname.
02 What is the maximum length of an email address?
The local part can be up to 64 characters (RFC 5321 Section 4.5.3.1). The domain part can be up to 255 characters with each label up to 63 characters. The full SMTP address path is capped at 256 octets.
03 Is [email protected] a valid email address?
Yes. Dots between characters in the local part and plus-tagging (the +tag suffix) are both legal per RFC 5322. Gmail specifically ignores dots and strips the plus-tag before delivery, so this address routes to [email protected].
04 Are emojis or non-ASCII characters allowed in email addresses?
RFC 6531 ("SMTPUTF8") extends the local part to allow Unicode, so αλέξης@example.com is technically valid. Major providers support this; legacy validators often reject it. Emojis are allowed by the spec but rarely supported in practice.
05 Which characters are not allowed in an email address?
Unquoted local parts cannot contain spaces, parentheses, angle brackets, commas, colons, semicolons, backslashes, @, [, or ]. These characters are only legal inside a quoted string, which most mail systems reject in practice.
06 Does passing syntax validation mean the email is real?
No. Syntax validation only confirms the string could be an email address. It does not prove the domain has a mail server, the mailbox exists, or that the address is in active use. Full verification combines syntax with MX, disposable and other checks.
07 Which RFCs define email address syntax?
RFC 5321 defines SMTP and the transport-level address rules including length limits. RFC 5322 defines the Internet Message Format and covers the full address syntax including comments, quoted strings and display names. RFC 6531 adds SMTPUTF8 support for Unicode.