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.
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.
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.
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.
Length limits #
64 characters maximum (RFC 5321, Section 4.5.3.1).
255 characters total, each label up to 63 characters.
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.
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.
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.
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.
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.
Single-character local parts
[email protected] is valid email syntax. Validators that enforce a minimum length of 2 or 3 characters are wrong.
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.
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.
Trailing whitespace
Copy-paste from a mailto link often includes trailing spaces or non-breaking spaces. Trim before validation, do not reject.
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.
FAQ #
01 What makes an email address syntactically valid?
@: 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?
03 Is [email protected] a valid email address?
+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?
αλέξης@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?
@, [, 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?
07 Which RFCs define email address syntax?
Thanks for the feedback.