Check an email address format
See exactly which rule an address breaks: length limits, dots, allowed characters, domain labels, and likely typos.
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.
- Trim and split. Spaces around the address are removed. The address must then contain exactly one @ outside quotes, with something on each side.
- 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.
- 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.
- 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.
- Check the whole length. The full address must fit in 254 characters.
- 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:
- In the browser, keep the built-in check for instant feedback, or a loose test for one @ with text on both sides.
- 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.
- Before you accept the address, verify the domain and the mailbox with the full verification, in fast mode while the person waits.
- 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 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"}'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?
What characters are allowed in an email address?
Can an email address have two dots in a row?
Is an email address case-sensitive?
How long can an email address be?
Can an email address contain a plus sign?
Can an email address contain an apostrophe?
Are email addresses with accents or non-Latin characters valid?
What regex should I use to validate email addresses?
Why does an address that looks fine fail the format check?
Does a valid format mean the email address exists?
What is a quoted local part?
Can a top-level domain contain numbers?
Why is an underscore allowed before the @ but not after it?
Can an email address start or end with a number?
Can an email address contain a hyphen?
Is jane@localhost a valid email address?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.