What is a valid email address format?
A valid email address has a local part, one @ sign and a domain, like dana.lee@northwind.example. The local part can be up to 64 characters and the whole address up to 254, and each part has its own rules for which characters are allowed.
Email address syntax is defined by RFC 5322 (the message format) and RFC 5321 (how mail is delivered), with RFC 6531 extending it to non-ASCII characters. In everyday terms an address is local-part@domain: the local part names the mailbox, and the domain says where it lives.
A syntax check is the first and cheapest test. A malformed address can never receive mail, so it should be caught before anything else runs. A well-formed address can still be fake, though: format says nothing about whether the mailbox exists. That's what /glossary/smtp-verification is for.
The rules, part by part
| Part | Rule |
|---|---|
| Local part length | 1 to 64 characters |
| Local part characters | Letters, digits and ! # $ % & ' * + - / = ? ^ _ ` { | } ~ |
| Dots in the local part | Allowed, but not first, not last, and never two in a row |
| Quoted local parts | "dana lee"@northwind.example is technically valid. Almost no real system accepts it. |
| The @ sign | Exactly one, outside any quotes |
| Domain | Labels of letters, digits and hyphens separated by dots. Each label is up to 63 characters and can't start or end with a hyphen. |
| Whole address | Up to 254 characters |
| Case | Domains are case-insensitive. Local parts may technically be case-sensitive, but virtually every provider treats them as case-insensitive. |
| International addresses | Non-ASCII domains are allowed (sent as xn-- punycode), and RFC 6531 allows UTF-8 local parts where both servers support it. |
Valid and invalid examples
| Address | Valid? | Why |
|---|---|---|
| dana.lee@northwind.example | Valid | Standard dot-separated local part |
| dana+invoices@northwind.example | Valid | Plus addressing, delivered to dana@ by providers that support it |
| d_lee-2026@mail.northwind.example | Valid | Underscores, hyphens, digits and subdomains are all fine |
| dana..lee@northwind.example | Invalid | Two dots in a row |
| .dana@northwind.example | Invalid | The local part can't start with a dot |
| dana lee@northwind.example | Invalid | Unquoted space |
| dana@@northwind.example | Invalid | Two @ signs |
| dana@-northwind.example | Invalid | A domain label can't start with a hyphen |
| dana@northwind | Invalid in practice | The grammar allows a single-label domain, but nothing on the public internet can deliver to it |
A practical validation pattern
This is the pattern the HTML standard uses for <input type="email">. It's deliberately looser than the full RFC grammar, so pair it with length limits and a real verification check.
// WHATWG HTML definition of a valid email address
const EMAIL = /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;
EMAIL.test("dana.lee@northwind.example"); // true
EMAIL.test("dana lee@northwind.example"); // false: unquoted space
EMAIL.test("dana..lee@northwind.example"); // true: the pattern allows it, RFC 5322 does not
EMAIL.test("dana@northwind"); // true: format only, no public domainHow MailVet checks syntax
Syntax runs first, before any DNS or mail-server check. A malformed address comes back undeliverable with reason invalid_syntax and is never charged. In bulk uploads, malformed rows and duplicates are removed before verification starts, so they don't use credits either.
MailVet also catches typos in common domains, the gmial.com and outlok.com kind, which pass a format check but would never reach the person. To test a single address by hand, try /tools/email-syntax-checker.
Email address format questions
What characters are allowed in an email address?
In the local part: letters, digits, dots (not at the start or end, and never two in a row) and the symbols ! # $ % & ' * + - / = ? ^ _ { | } ~ plus the backtick. In the domain: letters, digits, hyphens and dots. Forms that reject the plus sign or apostrophes turn away real people, so don't be stricter than that.
How long can an email address be?
Up to 254 characters in total, with the local part before the @ limited to 64 characters. Each label in the domain can be up to 63 characters.
Are email addresses case-sensitive?
The domain never is. The local part technically can be, but in practice virtually every mail provider treats Dana@ and dana@ as the same mailbox. Store addresses as entered and compare them in lowercase.
Is an email address with a plus sign valid?
Yes. dana+news@northwind.example is a valid address, and providers that support plus addressing, including Gmail, deliver it to dana@. Rejecting the plus sign on a form blocks real users.
Format is only step one
MailVet checks syntax, domain, mailbox and catch-all status in one call. Bad syntax is caught first and never charged.
Related
Last updated November 13, 2026