Article
HTML5 Email Input Validation: What type="email" Misses and How to Close the Gaps
By Unlimited Verifier Team ·

Summary
The HTML5 input type="email" check only tests whether text matches a format pattern from the WHATWG HTML standard. It cannot confirm that a domain exists, that a mailbox accepts mail, or that the person owns the address, so it works as a usability filter rather than a validation control.The HTML5 input type="email" check only tests whether a value matches a text pattern from the WHATWG HTML standard, so it cannot look up the domain, reach a mail server or confirm that a mailbox exists. A typo like jane@gmial.com passes without complaint. Treat the native check as a usability filter, not a validation control.
Quick answer
- The native check is format-only. It tests text against a pattern, so
jane@gmial.comandjane@localhostboth pass. - It leaves five gaps: misspelled and dead domains, dead mailboxes, catch-all domains, disposable, role-based and spam-trap addresses, and enforcement that anyone can bypass.
- Browsers can't reach mail servers. DNS and SMTP checks have to run on your server or in a verification service.
- Enforcement is optional.
novalidate, disabled JavaScript, direct POSTs and CSV imports skip the browser check entirely. - Layer your checks, then clean stored data. Keep the native check for usability, add server-side syntax, DNS and typo checks, and verify your existing list in bulk with Unlimited Verifier, which sorts results into Valid, Risky and Invalid.
What does input type="email" actually check?
The browser checks one thing: whether the entered text matches the pattern in the WHATWG HTML Living Standard's valid email address definition. If it doesn't, the browser blocks submission and sets the field's typeMismatch flag. If it does, the browser knows nothing more about the address.
The specification is open about this trade-off. It calls its pattern a "willful violation" of RFC 5322, the internet message format standard, because RFC 5322's full syntax is too permissive to be useful in a form field. Read the WHATWG HTML Living Standard and RFC 5322 together to see the gap.
The table shows how the browser pattern treats common inputs. Every "Yes" is a format result only.
| Input | Passes HTML5 check? | Why | What it still doesn't tell you |
|---|---|---|---|
| jane.doe+news@example.co.uk | Yes | Dots, plus tags and multi-part TLDs are allowed | Whether the mailbox exists |
| o'brien@example.com | Yes | Apostrophes are in the allowed local-part set | Nothing extra; punctuated names pass |
| jane..doe@example.com | Yes | The pattern allows consecutive dots; RFC 5322 forbids them outside quoted strings | Some mail systems will reject it |
| jane@localhost | Yes | A single-label domain matches the pattern | Whether it can receive internet mail (it can't) |
| jane@gmial.com | Yes | Syntactically fine | Likely a typo; the domain may accept mail anyway |
| jane@-example.com | No | Labels cannot start with a hyphen | Correctly rejected |
| josé@example.com | No | Non-ASCII characters are outside the pattern | Whether a non-ASCII address is deliverable depends on the destination provider |
| " jane@example.com " | Yes, after trimming | Browsers strip leading and trailing whitespace from the value | Store the trimmed value, not the raw input |
The consecutive-dots row shows that "passes the browser" and "conforms to the standard" are different things. The non-ASCII row means a native-only form can turn away customers whose addresses use accented characters, even when those addresses would work.
Bottom line: The native check tests the shape of the text, not whether the address is real, reachable or owned by the person typing it.
Why can't the browser confirm an address is real?
A real check needs data the page can't reach: the DNS records for the domain, and a response from the recipient's mail server. Browsers can't open raw SMTP connections to arbitrary servers, so any mailbox-level check has to run on your server or inside a verification service.
This is a platform limit, not a bug in one browser. It's also why the answer to "is this address real?" belongs on the server. For the wider case for checking at the point of entry, see real-time email validation.
Bottom line: Mailbox existence is a server-side question. The browser can only answer the format question.
Does a well-formed domain mean the address can receive mail?
Not necessarily. Mail for a domain is routed through its MX (mail exchanger) records, so a server-side DNS check is the first test that can catch an unroutable domain. RFC 5321 says that if a domain has no MX record, a sender may fall back to the domain's address records, so a missing MX is a strong warning rather than an automatic verdict. The RFC 5321 text sets the exact rules.
Use these signals:
- No MX and no address record: the domain almost certainly can't receive mail. Treat it as a strong negative.
- Null MX: under RFC 7505, a domain can publish an explicit "accepts no mail" record. Treat it as Invalid.
- Lapsed domains: a domain that once hosted mail may still resolve with no working mailbox behind it.
DNS can't close the lookalike-domain gap. Some misspellings, such as gmial.com or yahooo.com, are registered by third parties who set up MX records and accept mail, so they pass a DNS check. Catch them with typo suggestions on the form, covered in the framework below. How to check MX records programmatically includes the lookup code.
Bottom line: DNS catches dead domains. It does not catch lookalikes, so pair it with typo detection.
How reliable is an SMTP mailbox check?
It is the strongest signal available short of sending an email. A verifier connects to the domain's mail server, announces itself, issues RCPT TO for the address and reads the reply. A 250 means the server accepts mail for that recipient at that point. A 550 with enhanced status code 5.1.1 usually means the mailbox is unknown, as defined in RFC 3463.
The check has practical limits:
- Port 25 is often blocked on residential and many cloud networks, so the verifier's network matters.
- Greylisting returns temporary
4xxreplies to unfamiliar senders, so one probe can be inconclusive. - Catch-all servers accept every recipient, so a
250settles nothing (see the next section). - Rate limits and blocks can stop a verifier from getting answers at all. Why SMTP email verification gets blocked lists the common causes.
A good verifier reports uncertain results as uncertain instead of forcing them into yes or no. Treat an SMTP "Valid" as strong evidence, not proof.
Bottom line: SMTP is the only check that approaches "does this mailbox exist?", and it runs outside the browser with known gaps.
What happens with catch-all domains?
A catch-all domain accepts mail for any local part, so anything@domain gets a 250. An SMTP probe then tells you the domain exists, not that the person does. Organisations configure catch-alls deliberately, so B2B lists often contain many of them.
This is the trap for sales teams. A catch-all address can look flawless in a report and still bounce or go unread. Email verification for sales prospecting covers that workflow. Unlimited Verifier detects catch-all domains so you can segment them separately, and the catch-all email verification page explains that handling.
The practical rule is to send to catch-all addresses last, after confirmed contacts have shown healthy engagement.
Bottom line: A catch-all result means "this server accepts everything," not "this person exists," so give it its own segment.
Are disposable, role-based and spam-trap addresses invalid?
Not by format. These addresses are syntactically valid, so whether to mail them is a policy decision.
- Disposable addresses come from temporary inbox services. They pass the format check and often indicate a sign-up made to get a download rather than to start a relationship. Block or flag them according to your policy.
- Role-based addresses such as info@, sales@, admin@ and noreply@ are real and often deliverable, but they are shared and rarely engaged. Many B2B teams tag them rather than delete them.
- Spam traps are the hardest. Operators recycle abandoned addresses into traps that report senders who mail them. No format check or SMTP probe reliably identifies a trap, so the defence is list age, consent at the source and engagement. Email list growth strategies covers capturing consent properly. This is part of email verification compliance and hygiene.
Google's sender guidelines advise keeping the spam rate in Postmaster Tools below 0.10% and never letting it reach 0.30%. Those are two thresholds, not one. We recommend treating 0.10% as your working target, because 0.30% is the level to avoid, not a safe zone.
Bottom line: Disposable and role flags are automatable policy decisions. Spam traps are managed through list age and engagement, not detection.
Can users or bots bypass the HTML5 check?
Yes. The browser check runs only when a browser submits the form, and novalidate on a form turns it off. Disabled JavaScript, a curl request, a script posting straight to your endpoint or a bot that never renders the page all skip it.
Two consequences follow. First, every write path, including your API, webhook receivers and CSV imports, needs its own server-side checks. Second, the browser's error text isn't under your control, and it varies by browser. Test the form in the browsers and on the mobile keyboards your audience uses rather than assuming identical behaviour. For the trade-offs, read client-side vs server-side email validation, and for the JavaScript side, how to validate email in JavaScript.
Bottom line: The browser check is a courtesy to honest users. The server has to enforce the rules for everyone else.
How should you validate emails on top of type="email"?
Layer your checks from cheapest to most informative, and stop where the value of the form no longer justifies the cost.
- Keep
type="email"withautocomplete="email". Why: mobile users get an @ keyboard and autofill, and obvious format errors show instantly. - Normalise on the server. Trim whitespace, lowercase the domain (domains are case-insensitive) and convert internationalised domains to punycode. Deduplicate on the normalised form. Why: without this,
Jane@Example.comandjane@example.comcreate two records. Lowercasing the local part is a practical choice for matching, even though RFC 5321 technically allows case-sensitive local parts. - Run a maintained syntax library on every write path. Why: libraries encode edge cases that hand-written regular expressions usually get wrong. Language options are covered in best Node.js email validation libraries, best Python libraries for email validation, email validation in Java Spring Boot and best Golang email validation packages.
- Check the domain's DNS. Look for MX records (with the address-record fallback) and reject null MX. Why: this stops unroutable domains before they reach your database.
- Suggest typo corrections for common domains. Prompt with "Did you mean gmail.com?" rather than silently changing the input. Why: silent edits change what the customer typed and create support tickets.
- Apply disposable and role policies, and log what you block. Why: you can't audit a policy you don't record.
- Reserve mailbox verification for high-value steps. A live SMTP check adds latency, so use it at checkout or B2B demo requests. Why: mailbox checks are slower and less certain than DNS, so they earn their place only where a wrong address is costly. The approach is in how to add real-time email verification to signup forms.
- Re-verify stored data in bulk, on a schedule. Why: no form can fix records that are already in the table. Email list maintenance best practices sets out the cadence.
The table compares the approaches and their limits.
| Approach | What it catches | Where it runs | Main limitation | Best used for |
|---|---|---|---|---|
Native type="email" |
Obvious format errors | Browser | Format only; skippable; no DNS or mailbox data | First-pass usability on every form |
| Server syntax library | Format edge cases; consistent results across clients | Your server | No DNS or mailbox data | Every write path: forms, APIs, imports |
| DNS/MX check | Unroutable domains, null MX, missing domains | Your server, with caching | Lookalike domains with working MX pass | Signup and import pipelines |
| Real-time mailbox check (API) | Mailbox-level responses, catch-all and disposable flags | Server call during the request | Adds latency; depends on the recipient server's answers | High-value forms where a short delay is acceptable |
| Bulk file verification | The full set of checks across a whole list | Offline batch | Not instant; a snapshot in time | Existing databases, old or purchased lists, pre-campaign cleaning |
No single row is sufficient. A reasonable default combines the first four at signup and uses bulk verification on stored data. If you're comparing providers, the best email verification tools landscape is the place to start.
Bottom line: Each layer catches a different failure, so pair cheap checks at entry with bulk verification of what you already store.
How do you audit your form and existing list?
Run this audit once, then repeat the list step monthly.
- Build a 20-address test set. Include one example from each category in this article: a plus tag, an apostrophe, consecutive dots, a single-label domain, a typo domain such as gmial.com, a disposable address, a role address, an address with a leading space and an accented address. Add ordinary addresses too, so you can see false positives. Save the list as a text file.
- Submit the set through your live form with JavaScript enabled. Record which inputs are blocked, which are accepted and what the error messages say.
- Repeat the test with JavaScript disabled, or post directly with
curl. Check what your server stores. Anything that reaches the database without server checks is a gap. - Export your last 12 months of sign-ups to CSV, with one email column and one signup-date column. Keep this export unchanged for your audit trail.
- Create a free account. The Free plan covers 25 lists a month of up to 150 emails each, which suits spot checks. A full export will usually need Pro.
- Upload the CSV or Excel file (up to 10MB; the email column is detected automatically). Pro lists hold up to 25,000 emails each, so split larger files first.
- Review the three buckets. Valid addresses are safe to send to. Invalid addresses should be removed and suppressed. Risky addresses, including catch-all, disposable and role-based ones, need their own segment and a policy decision.
- Export the results as CSV, Excel or JSON, and save the summary counts.
- Spot-check edge cases with the free email checker, such as a high-value contact that came back Risky.
- Fix the form and retest. Add the server-side steps from the framework, then run your 20-address set again. If you want new sign-ups checked automatically, use the Email verification API with a email verification API and automation workflow. Free has no API access. Pro includes API access (100,000 emails a month), with single-email checks and bulk batches of up to 10,000 emails per request. Plan your request volume with email validation API rate limits explained.
Bottom line: An afternoon of testing shows which bad addresses your form accepts, and the export shows how many are already stored.
What does a 60,000-record cleanup look like in practice?
This example is hypothetical. The product limits and arithmetic are real.
The situation: A SaaS company has collected 60,000 sign-up records over three years through a form that relied only on type="email". Nobody has cleaned the table, and marketing wants to send a campaign. This is a typical email verification for ecommerce and SaaS case: steady sign-ups plus a long tail of old records.
Splitting the file: Pro lists hold up to 25,000 emails each, so the export becomes three files:
25,000 + 25,000 + 10,000 = 60,000 rows
On the Free plan the same job would need 400 lists of 150 (60,000 ÷ 150), far beyond the 25 lists a month allowed. Free isn't practical at this size.
Verification: Standard verification is unlimited on every plan, so all 60,000 rows are checked. The 25,000 monthly deep verifications go to the riskiest subset, such as the oldest records and anything on a catch-all domain.
Hypothetical results:
- Valid: 48,600 (81%)
- Risky: 6,600 (11%)
- Invalid: 4,800 (8%)
Check: 48,600 + 6,600 + 4,800 = 60,000.
What the numbers mean:
- If the full table were mailed unchanged, the Invalid group alone could produce up to 4,800 bounces, or 8%. That is well above the 2% ceiling this guide recommends. Removing Invalid addresses before sending has the most direct effect on bounce rate.
- The 6,600 Risky addresses belong in a small, late segment, not in the main send.
- The 48,600 Valid addresses form the core list, and the form should now block the failure modes that created the Invalid group.
Cost: One month of Pro at $29 covers the job. Divided by 60 thousand records, that is about $0.48 per 1,000 records. When you compare email verification pricing, use a per-thousand unit cost so plans with different limits are comparable. If you need Pro every month, billing annually at $25 a month works out to $300 a year, against $348 billed monthly: a saving of $48 a year.
Bottom line: Splitting into three files, verifying every row and spending deep verifications on the riskiest 25,000 turns "our list is messy" into a precise, auditable count.
What are the common mistakes with HTML5 email validation?
- Treating
type="email"as validation. It passesa@b.candjane@gmial.com, so it can't be your only control. - Writing a strict custom regex. Overly tight patterns reject valid plus tags and apostrophes like o'brien@example.com. Use a maintained library.
- Rejecting all non-ASCII input. Convert internationalised domains to punycode, which is safe. Non-ASCII local parts such as josé@ depend on the destination provider's support, so decide on them deliberately and document the decision.
- Running a live SMTP probe on every keystroke. It adds latency and invites blocking. Run it on submit or in a background job.
- Treating catch-all results as Valid. A catch-all server accepts everything, so the result tells you little about the person.
- Verifying only new sign-ups. Your existing table is usually where the damage is. Clean it in bulk, then keep it clean.
- Trusting case-sensitive matching. Domains are case-insensitive, so deduplicate on lowercased domains at a minimum.
- Confusing valid with consented. A verified address is not an opted-in address. Verification supports compliance but doesn't replace consent records.
- Skipping server checks on imports and APIs. CSV imports and API endpoints bypass the form, so they need the same rules.
Bottom line: Most failures come from relying on a single layer, or from rules that are too loose at entry or too strict for real customers.
How we compared (and limitations)
This guide is based on public documentation: the WHATWG HTML Living Standard, the RFCs cited above and Google's sender guidelines. We haven't run controlled tests of browser behaviour across versions, so check the browser-specific points against the browsers your audience uses.
Unlimited Verifier's figures come from its published plan details. It states 99.5% accuracy for deep verification; that is the company's own figure, not an independent benchmark. The company also publishes its open-source verification engine on GitHub at github.com/unlimitedverifier/free-email-verifier, so you can read the checks yourself. The worked example is illustrative, and its percentages are hypothetical. Test any vendor's accuracy claim, ours included, against a sample of your own data before you rely on it.
Bottom line: The HTML5 check is a useful first filter with documented limits. Reliable answers come from layered server-side checks and bulk verification of what you already store.
Layered check outcomes
| Input | Native check | Server syntax | DNS/MX | Result |
|---|---|---|---|---|
| jane@example.com | Pass | Pass | MX found | Accept |
| jane@gmial.com | Pass | Pass | MX found | Prompt: did you mean gmail.com? |
| jane@localhost | Pass | Fail (no dot in domain) | None | Reject |
| jane@nonexistent-domain.invalid | Pass | Pass | No MX | Reject |
Frequently asked questions
Does input type="email" check if an email address exists?
No. The browser only tests whether the text matches a format pattern. It does not query DNS, contact a mail server or check whether a mailbox exists. Confirming existence requires server-side SMTP or a verification service.
Why does jane@localhost pass HTML5 email validation?
The WHATWG pattern allows a single-label domain, so localhost matches the format. The address cannot receive internet mail, which is why server-side domain checks are needed to reject it.
Can users bypass the HTML5 email check?
Yes. Adding novalidate to the form, disabling JavaScript, sending direct POST requests or importing CSV files all skip the browser check entirely. Always validate again on the server.
Should I remove type="email" from my form?
Keep it. It gives mobile users the right keyboard and catches obvious mistakes. Just do not rely on it as your only check, and add server-side and DNS-based validation alongside it.
How do I detect typos like gmial.com?
Compare the domain against a list of common providers using edit distance or a known misspelling list, then prompt the user to confirm. This catches likely typos even when the domain resolves.
Does HTML5 email validation reject non-ASCII addresses?
Yes, the pattern excludes non-ASCII characters, so addresses like josé@example.com fail the native check. Whether such an address is deliverable depends on the destination provider, so you may need to handle internationalised addresses separately.
What is a catch-all domain and why does it matter?
A catch-all domain accepts mail sent to any local part, so SMTP checks cannot confirm a specific mailbox. Verification tools mark these as Risky rather than Valid because deliverability is uncertain.
How do I check an existing email list for invalid addresses?
Run the list through a bulk verification service that checks syntax, DNS records and mailbox signals, then sort results into Valid, Risky and Invalid. Remove or suppress Invalid addresses before your next send.
Cut Bounces and Protect Your Sender Reputation With Unlimited Email Verification
Every invalid address you send to hurts your sender reputation and your inbox placement. Verifying your list before each send means fewer bounces, healthier deliverability, and a predictable cost. With Unlimited Verifier, standard verification is unlimited on every plan, with no per-email fees.
Unlimited Verifier checks syntax, domain, MX records and the SMTP mailbox. It also detects catch-all domains and flags disposable and role-based addresses. Export a CSV from your email platform or CRM, upload and verify the list, then re-import the clean results. You can also automate checks with the email verification API.
| Free | Pro | |
|---|---|---|
| Price | $0 | $29/month ($25/month billed annually) |
| Lists | 25 a month, up to 150 emails each | Unlimited, up to 25,000 emails each |
| Deep verifications | 750 a month | 25,000 a month |
| API access | No | Yes (100,000 emails a month) |
| Result retention | 24 hours | 30 days |
Why teams choose Unlimited Verifier
- Unlimited standard verification on all plans, including Free, with no per-email fees.
- Catch-all detection so you know which domains accept every address.
- Clear Valid / Risky / Invalid results, exportable as CSV, Excel or JSON.
- An open-source verification engine you can inspect on GitHub.
Unlimited Verifier states 99.5% accuracy for deep verification.
Create a free account and verify your next list before you hit send.
Want to test a single address first? Try the free email checker.