Skip to content

Email

Check an email address format

See exactly which rule an address breaks: length limits, dots, allowed characters, domain labels, and likely typos.

Try an example

How to read the result

The badge says whether the address is well formed. The rows show how the checker split and cleaned it, and the Issues row names every rule it breaks, in plain words.

Field What it means What to do with it
Status Valid: no format rule is broken. Invalid: at least one is, and the Issues row says which. On Invalid, show the issue next to the field so the person can fix it.
Did you mean A corrected address, offered when the domain looks like a typo of a common one: jane@gmial.com gives jane@gmail.com. Offer it as a one-click fix. Never replace the input silently.
Normalized The address as the checker reads it after cleanup: surrounding spaces removed, domain in lowercase. Store this form rather than the raw input.
Local part Everything before the @. Keep it exactly as typed when you send mail.
Domain Everything after the @, in readable form. Show it back to the person, for example in a confirmation screen.
ASCII domain The domain as DNS and SMTP carry it. Internationalized labels appear in their xn-- form. Use it for lookups and for comparing domains.
Issues Every format rule the address breaks, or None. Show the first issue as the error message. The table below explains each.
Mailbox check (SMTP) Locked. The mail server's own answer about this address, from the full verification. The step that turns a well-formed address into a known mailbox.
Quality score Locked. A 0 to 100 score built from every check of the full verification. Rank addresses by quality. See the email score.
Bulk CSV upload Locked. Check every address of a file. Find malformed addresses in an imported list.
API access Locked. The full verification from your code. Check the format and the mailbox in one call.

Unlocking those rows takes a free account. The full verification costs 1 credit through the API, and the free plan includes 100 credits every month.

How the check works

The checker reads the address the way a careful mail system would, entirely on our side. It does not look the domain up or contact any server.

  1. Trim and split. Spaces around the address are removed. The address must then contain exactly one @ outside quotes, with something on each side.
  2. Check the local part. It must fit in 64 characters and use the allowed characters, with dots only between other characters. A quoted local part is recognized and flagged.
  3. Clean the domain. Full-width dots typed on some keyboards become normal dots, the text is normalized to standard Unicode form, and letters are lowercased. Each label with non-ASCII letters is converted to its xn-- form with Punycode (RFC 3492), as IDNA (RFC 5891) prescribes.
  4. Check the domain. No label may be empty, longer than 63 characters, start or end with a hyphen, or contain characters other than letters, digits and hyphens. The ASCII domain must fit in 253 characters. The last label must be two to 63 letters, or an xn-- label, and there must be at least one dot.
  5. Check the whole length. The full address must fit in 254 characters.
  6. Look for typos. If the domain is a near miss of a common one, the result suggests the corrected address.

Because nothing leaves our side, this check is instant. It also means a perfect format can sit on a domain that does not exist. The email verifier adds the DNS and mailbox steps.

The rules and their limits

Rule Limit or requirement Source
Whole address 254 characters at most RFC 5321 section 4.5.3.1.3 caps the path at 256 octets, angle brackets included (RFC 3696 erratum 1690)
Local part 64 octets at most RFC 5321 section 4.5.3.1.1
Domain 253 characters at most in ASCII form RFC 1035 section 2.3.4 (255 octets on the wire) and RFC 5321 section 4.5.3.1.2
Each domain label 1 to 63 characters RFC 1035 section 2.3.4
Domain characters Letters, digits and hyphens, no hyphen at either end of a label RFC 1035 section 2.3.1, RFC 1123 section 2.1
Local part characters Letters, digits, dots and 19 symbols, listed below RFC 5322 section 3.2.3
Dots in the local part Not first, not last, never two in a row RFC 5322 section 3.2.3 (dot-atom)
Quoted local part Allowed, discouraged for new mailboxes RFC 5322 section 3.4.1, RFC 5321 section 4.1.2
Address literal An IP address in brackets may replace the domain RFC 5321 section 4.1.3
Characters beyond ASCII Allowed with the SMTPUTF8 extension RFC 6531, with IDNA for domains (RFC 5891)

The 19 symbols allowed in an unquoted local part are ! # $ % & ' * + - / = ? ^ _ ` { | } ~. Everything else, including spaces, commas, parentheses and the @ itself, needs quotes before the @, which few systems accept.

Valid but unusual addresses

Strict forms often reject addresses that the standards allow. These all pass, or are flagged for a reason worth knowing.

Address What the checker reports Why
first.last+tag@example.co.uk Valid A subaddress tag and a two-label suffix are both normal.
o'brien@example.com Valid The apostrophe is one of the 19 symbols.
1234@example.com Valid A local part can be digits only.
jane@bücher.example Valid, ASCII domain xn--bcher-kva.example Internationalized domains are converted, not rejected.
"jane doe"@example.com Issue: quoted part before the @ Legal under RFC 5322, refused by most systems.
jane@[192.0.2.1] Issue: IP address instead of a domain Legal in SMTP, but there is no domain to look up.

Every issue the checker reports

Issue Example How to fix it
The address is empty (nothing typed) Make the field required.
Contains spaces jane doe@example.com Remove the space. Spaces are only legal inside quotes.
Missing the @ sign jane.example.com Put the @ between the name and the domain.
More than one @ sign jane@@example.com Keep a single @.
Nothing before the @ @example.com Add the name part.
Part before the @ is longer than 64 characters A pasted sentence before the @ Check for text pasted by mistake.
Starts with a dot .jane@example.com Remove the first dot.
Dot right before the @ jane.@example.com Remove the last dot.
Two dots in a row jane..doe@example.com Keep one dot.
Character not allowed before the @ jane,doe@example.com Replace the character, usually a comma typed for a dot.
Quoted part before the @ (valid but rarely accepted) "jane doe"@example.com Ask for another address if you need reliable delivery.
Nothing after the @ jane@ Add the domain.
Domain longer than 253 characters A domain made of pasted text Check what was pasted.
Empty part in the domain (two dots in a row) jane@example..com Remove the extra dot.
A domain part is longer than 63 characters A label of 64 letters or more Check the domain for a missing dot.
A domain part starts or ends with a hyphen jane@-example.com Remove the hyphen.
Character not allowed in the domain jane@exam_ple.com Domains take letters, digits and hyphens only.
IP address instead of a domain jane@[192.0.2.1] Ask for an address on a domain name.
The extension after the last dot is not valid jane@example.123, jane@localhost Use a real extension, such as .com or .org.
Address longer than 254 characters Several addresses pasted together Enter one address per field.

The IP address in the example, 192.0.2.1, comes from a block reserved for documentation by RFC 5737.

Typos the format check catches

Most bad addresses in a form are typos, not inventions. These are the common shapes and how the checker reports them.

Typed What the checker shows The slip
jane@gmial.com Did you mean jane@gmail.com Swapped letters in a common domain
jane@exmaple.com Did you mean jane@example.com Swapped letters
jane..doe@example.com Two dots in a row A double key press
jane@gmailcom The extension after the last dot is not valid A missing dot
jane@gmail,com Character not allowed in the domain A comma typed for a dot
jane @example.com Contains spaces A space from autocomplete or pasting

Did you mean only fires for near misses of common domains. A typo in a rare domain, such as a small company's name, produces a well-formed address that looks fine here, so pair the format check with the full verification when the address matters.

Check the email field of a form

The browser's own check is a good start and a poor finish. An input of type email follows the WHATWG HTML definition of a valid address, which the specification itself calls a willful violation of RFC 5322. It accepts jane..doe@example.com, jane@localhost and jane@example.123, all reported by this checker, and it rejects quoted local parts and non-ASCII characters before the @.

A sound setup has four layers:

  1. In the browser, keep the built-in check for instant feedback, or a loose test for one @ with text on both sides.
  2. On your server, run the full format check and show the first issue in words people understand, plus the Did you mean link when there is one.
  3. Before you accept the address, verify the domain and the mailbox with the full verification, in fast mode while the person waits.
  4. After signup, send a confirmation email. It is the only check that proves the person controls the inbox.

Never reject plus signs, apostrophes, long top-level domains or internationalized domains on your own: each of them is valid, and each turns away real customers when blocked. The guide Validate signup forms shows these layers in code.

Same check through the API

One HTTPS call, one credit. The response below is the real schema returned by the API.

cURL
curl https://api.qelka.com/v1/email \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"email":"jane@exmaple.com","mode":"fast"}'
JavaScript
const response = await fetch("https://api.qelka.com/v1/email", {
  method: "POST",
  headers: {
    Authorization: "Bearer sk_test_your_key",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    email: "jane@exmaple.com",
    mode: "fast",
  }),
});
const result = await response.json();
{
  "id": "lkp_01M84QZDZG5EJDJJE338NYR2ZA",
  "object": "email",
  "input": "jane@exmaple.com",
  "status": "unknown",
  "reason": "smtp_not_checked",
  "did_you_mean": "jane@example.com",
  "checks": {
    "syntax": true,
    "mx": true,
    "smtp": null,
    "catch_all": null,
    "disposable": false,
    "role": false,
    "free_provider": false
  },
  "domain": {
    "name": "exmaple.com",
    "spf": true,
    "dmarc": true
  },
  "score": 55,
  "credits_used": 1,
  "cached": false
}

Bulk and pricing

  • Upload a CSV of up to 2,000,000 rows from the dashboard or the API, pick the column, get the results back as a CSV.
  • Every check costs 1 credit, live phone lookups cost 3. Cached results are billed the same way; calls that fail upstream are not billed.
  • The free plan includes 100 credits every month. Paid plans start at $29 for 10,000 credits.

Frequently asked questions

What is a valid email address format?
A local part, one @ sign and a domain: jane@example.com. The local part holds letters, digits, dots and a set of symbols, with no dot at the start, at the end or twice in a row. The domain is made of labels separated by dots and ends with a top-level domain. The whole address fits in 254 characters, and the local part in 64.
What characters are allowed in an email address?
Before the @: letters, digits, dots and the symbols ! # $ % & ' * + - / = ? ^ _ ` { | } ~, as RFC 5322 defines them. Spaces and other characters are only allowed inside quotes. After the @: letters, digits and hyphens in each label, with dots between labels. With RFC 6531, non-Latin letters are allowed on both sides.
Can an email address have two dots in a row?
Not in its usual form. RFC 5322 lets dots separate parts of the local part, so a dot cannot start it, end it or follow another dot: jane..doe@example.com breaks the rule. The same goes for the domain, where two dots leave an empty label. Only a quoted local part may contain consecutive dots, and almost no mailbox uses one.
Is an email address case-sensitive?
The domain never is: EXAMPLE.COM and example.com are the same. The local part may be. RFC 5321 lets the receiving server treat Jane and jane as different mailboxes, while discouraging anyone from relying on it. Keep the local part as the person typed it when you send mail, and decide on purpose whether your product treats two spellings as one account.
How long can an email address be?
254 characters in total. RFC 5321 limits the path used in SMTP to 256 octets, angle brackets included, which leaves 254 for the address. Within that, the local part can have up to 64 octets and the domain up to 253 characters in its ASCII form, with no single label over 63. In practice, real addresses are far shorter.
Can an email address contain a plus sign?
Yes. The plus sign is one of the symbols RFC 5322 allows in the local part, and many providers use it for subaddressing: jane+news@example.com reaches jane@example.com with a tag attached. Forms that reject the plus sign turn away real, permanent addresses. Accept it, store the address as typed, and do not strip the tag without asking.
Can an email address contain an apostrophe?
Yes. The apostrophe is allowed in the local part by RFC 5322, so o'brien@example.com is a correct address. It is also a classic victim of overly strict form validation and of code that does not escape quotes properly. If your system rejects it, the fix belongs in your validation, not in the customer's name.
Are email addresses with accents or non-Latin characters valid?
Yes, under the SMTPUTF8 extension of RFC 6531, which allows UTF-8 in both the local part and the domain. Internationalized domains also have an ASCII form, produced with IDNA and Punycode, shown in the ASCII domain row: bücher.example becomes xn--bcher-kva.example. A non-ASCII local part only works when every mail server on the way supports SMTPUTF8.
What regex should I use to validate email addresses?
A loose one, and only for instant feedback. Check for one @ with something on each side, then let a real parser on your server apply the full rules. Strict home-made patterns tend to reject valid addresses with plus signs, apostrophes or long top-level domains. A complete RFC 5322 pattern is long, hard to maintain and still says nothing about whether the mailbox exists.
Why does an address that looks fine fail the format check?
Usually because of a character you cannot see. Text copied from documents or chat can carry a non-breaking space, a zero-width space or a look-alike letter from another alphabet. The Issues row names the rule that failed. Retype the address by hand, or paste it into a plain text editor first, and check it again.
Does a valid format mean the email address exists?
No. A correct format only means the address could exist. jane@example.com is perfectly formed and still receives nothing. To learn whether the domain accepts mail and whether the mailbox is there, use the email verifier, which adds DNS checks and a mailbox check. To know that the right person holds it, send a confirmation email.
What is a quoted local part?
A local part wrapped in double quotes, which RFC 5322 allows so that spaces and other special characters can appear before the @, as in "jane doe"@example.com. RFC 5321 advises against creating mailboxes that need quotes, and most providers and forms do not support them. The checker reports a quoted local part as an issue so that you can decide what to do with it.
Can a top-level domain contain numbers?
No. Top-level domains are letters, or an internationalized name whose ASCII form starts with xn--. RFC 3696 notes that a top-level domain is never all-numeric, which also keeps domains apart from IP addresses. The checker requires two to 63 letters in the last label, so jane@example.123 is reported with an invalid extension.
Why is an underscore allowed before the @ but not after it?
The two halves follow different rules. The local part uses RFC 5322's character set, which includes the underscore, so jane_doe@example.com is fine. The domain follows the hostname rules of RFC 1035 and RFC 1123: letters, digits and hyphens only. An address like jane@exam_ple.com is therefore reported as having a character not allowed in the domain.
Can an email address start or end with a number?
Yes. Digits are allowed anywhere in the local part, so 1jane@example.com and jane2@example.com are both fine, and so is a local part made only of digits. Domain labels may start with a digit too, since RFC 1123 relaxed the older hostname rule. Only the top-level domain at the very end must be letters.
Can an email address contain a hyphen?
Yes, on both sides. In the local part a hyphen is one of the allowed symbols, even at the start or the end. In the domain, hyphens are fine inside a label, as in mail-example.com, but a label cannot start or end with one, so jane@-example.com is reported as an issue.
Is jane@localhost a valid email address?
Not on the internet. RFC 5321 only permits fully qualified domain names in SMTP, and localhost is a single label that means the machine you are on. Internal systems sometimes use such addresses, but no one outside can deliver to them. The checker reports the missing top-level domain as an invalid extension.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.