Article
Best Node.js Email Validation Libraries in 2026 (Compared)
By Unlimited Verifier Team ·

Summary
The best Node.js setup for most teams combines a syntax library like validator.js or Zod at the form with a hosted API for mailbox-level checks on lists. npm packages can't reliably confirm a mailbox exists, because SMTP probes are often blocked or unanswered. Pick tools by the layer they cover, not by download count.The best Node.js setup for most teams pairs validator.js for instant syntax checks at the form with Unlimited Verifier's REST API for batch mailbox checks, because an npm package can't reliably confirm that a mailbox exists when SMTP probes are often blocked. This guide is for developers, technical marketers and agencies building signup flows, list-cleaning jobs or sending pipelines in Node.js. It pairs well with our guide to real-time email validation.
Quick answer
- Best overall pattern: validator.js (or Zod) for instant syntax feedback at the form, plus a hosted verification API for mailbox-level checks on lists and uncertain addresses.
- Best hosted option for Node batch jobs: Unlimited Verifier's API. It requires the Pro plan ($25/month billed annually, or $29/month), and each request accepts batches of up to 10,000 emails.
- Best for TypeScript form schemas: Zod, with an async refinement when you need a remote check.
- Best for blocking disposable signups: mailchecker. It matches known throwaway domains but doesn't verify that a mailbox exists.
- Don't treat an SMTP "exists" result as proof. Blocked outbound port 25 and providers that don't answer recipient probes both produce misleading results.
Which Node.js email validation libraries are best?
For most teams, the best options are validator.js for syntax, Zod or Joi for schema validation, and a hosted API for anything that needs a mailbox check. Pick by layer, not by download count, because each tool answers a different question.
Quick picks
- Best overall (mailbox-level, hosted): Unlimited Verifier API.
- Best for input sanitization and syntax: validator.js.
- Best for TypeScript and React schemas: Zod.
- Best for hapi and Express backends with rule-heavy schemas: Joi.
- Best for blocking disposable trials: mailchecker.
- Best self-hosted mailbox probe (with caveats): email-existence.
- Best for a bundled multi-check result: deep-email-validator.
- Best zero-dependency option: a DIY check built on
node:dnsandnode:net.
| Tool | Starting price | Free tier | Catch-all handling | Best for |
|---|---|---|---|---|
| Unlimited Verifier API | Web Free plan $0; API requires Pro at $29/mo ($25/mo billed annually) | Free plan has no API access | Detects catch-alls and routes them to Risky | Mailbox checks in batch pipelines |
| validator.js | Free (open source) | n/a | Not detected (syntax only) | Syntax checks on input and in APIs |
| Zod | Free (open source) | n/a | Not detected | TypeScript schema validation |
| Joi | Free (open source) | n/a | Not detected | Rule-based schemas in hapi and Express |
| email-existence | Free (open source) | n/a | Varies | Small self-hosted mailbox probes |
| deep-email-validator | Free (open source) | n/a | Varies | Multi-check results in one call |
| mailchecker | Free (open source) | n/a | Not applicable | Disposable-domain blocking |
DIY (node:dns + node:net) |
Your infrastructure and engineering time | n/a | Only via your own random-address probe | Zero third-party dependencies |
Bottom line: no single library covers every layer, so combine a syntax library at the form with a managed mailbox check for lists.
How we compared (and limitations)
We judged each option on the criteria that matter inside a Node.js system:
- Layer coverage. Does it check syntax, DNS/MX, the SMTP mailbox, catch-all domains or disposable domains?
- Runtime fit. Is it a built-in module or a dependency? Can a request handler await it without blocking the user?
- Failure modes. What does it get wrong, and in which direction: false accepts (bad addresses pass) or false rejects (good addresses fail)?
- Operational burden. Does it need outbound port 25, IP reputation management, caching or concurrency limits you must build yourself?
- Maintenance signals. Check the last release date, open issues and download trends on npm before you adopt any package.
Limitations. This comparison is based on public documentation, package READMEs and widely documented protocol behavior. We did not benchmark these libraries, run accuracy tests or measure latency. Package maintenance changes quickly, so verify each one yourself. The 99.5% accuracy figure for deep verification is Unlimited Verifier's own stated number, not an independent result. Test any accuracy claim on a sample of your own list that includes known-good and known-bad addresses.
Bottom line: treat this as a map of which layer each option covers. Verify maintenance and accuracy before you commit.
Which checks can a Node.js library actually perform?
Email validation has five layers, and most npm packages stop at the first one. Syntax checks confirm that a string matches the address grammar in RFC 5322. They don't confirm that the domain exists, accepts mail or has a real mailbox behind it.
| Layer | What it proves | Typical Node tool |
|---|---|---|
| Syntax | Text matches the address grammar | validator.js, Zod, Joi |
| Domain/MX | The domain has mail servers | DIY node:dns, deep-email-validator |
| Mailbox (SMTP) | A server accepted the recipient at probe time | email-existence, deep-email-validator, Unlimited Verifier |
| Catch-all | The domain accepts any local part | Unlimited Verifier (routes to Risky), DIY random-address probe |
| Disposable/role | The address is throwaway or shared | mailchecker, Unlimited Verifier flags |
Even the mailbox layer is probabilistic. A probe records what a server said at one moment, and a catch-all domain can accept any address. A sound pipeline routes uncertain results to Risky rather than forcing a yes or no.
Bottom line: a syntax library answers "is this well-formed?" but not "will this get delivered?", so plan a separate layer for the second question.
Can a Node.js script confirm that a mailbox exists?
Not reliably from an application server, and the reason is practical rather than theoretical. A mailbox check opens an SMTP session on port 25, sends RCPT TO for the address and reads the reply code. RFC 5321 defines 2xx replies as acceptance, 4xx as temporary failure and 5xx as permanent failure.
Three things make that signal weak:
- The probe may never connect. Major cloud providers restrict outbound port 25 by default, so a timeout looks the same as a dead server.
- Temporary codes are common. A 4xx reply, often from greylisting, means "try later," not "invalid." Treat it as unknown.
- Some providers don't answer recipient probes usefully. Many large mailbox providers limit or ignore these checks, and a catch-all domain accepts everything.
A practical rule: classify a 2xx as a probable Valid only after a catch-all test on the same domain, treat 5xx as a probable Invalid only when it's the recipient reply rather than a policy block, and send everything else to Risky. That's the logic a managed service encodes for you, and it's why the mailbox layer is usually the one worth outsourcing. For the underlying causes of blocked probes, see why SMTP email verification gets blocked.
Bottom line: an SMTP reply is evidence about a mailbox, not proof, so build your rules around uncertainty.
The 8 best Node.js email validation libraries and services, reviewed
1. Unlimited Verifier API (best hosted option for Node pipelines)
Unlimited Verifier is a hosted bulk verification service rather than an npm package. Your Node code calls its REST API with an API key. The service checks syntax, domain, MX records and the SMTP mailbox, detects catch-all domains, flags disposable and role-based addresses, and sorts every address into Valid, Risky or Invalid. Its use case sits within email verification API and automation: your pipeline sends a list, receives buckets and decides what to do next.
Key features
- REST API with API keys for single checks, and bulk batches of up to 10,000 emails per request (Pro).
- Catch-all domains are routed to Risky rather than passed off as valid. See catch-all email verification for how that works.
- Deep verifications for addresses that need extra scrutiny.
- Unlimited standard verification on every plan, with no per-email fees.
- Export as CSV, Excel or JSON.
- The open-source verification engine is published on GitHub at github.com/unlimitedverifier/free-email-verifier, so you can read how the checks are implemented.
Pros
- You get mailbox-level checks without running SMTP probes from your own server IP, which avoids the port 25 and IP reputation problems covered above.
- The three buckets map directly to decisions: send to Valid, suppress Invalid, segment Risky.
- Standard verification is unlimited on every plan, so re-checking a list each week doesn't add per-email charges.
Cons
- The API is Pro-only. The Free plan has no API access.
- Results are kept for 30 days on Pro and 24 hours on Free, so your code must store responses in its own database.
- Every check is a network round trip, so it can't replace instant syntax feedback in a form field.
- There are no native ESP, CRM or Zapier integrations. You call the API, or export a CSV, verify it and re-import it.
Best for: Node jobs that clean large lists or check new signups in batches, without managing SMTP infrastructure.
Where it falls short: keystroke-level validation, where a remote call on every input adds latency.
Pricing: The web Free plan includes 25 lists a month of up to 150 emails each, plus 750 deep verifications a month, but no API. Pro is $29/month, or $25/month billed annually. It includes API access (100,000 emails a month), 25,000 deep verifications a month and lists of up to 25,000 emails. You can sign up and test your file format on the Free plan before you upgrade.
Tip: run validator.js first to reject malformed input, and send only well-formed addresses to the paid mailbox check. This keeps API volume for addresses that could actually be delivered.
Bottom line: the most complete option here for mailbox and catch-all decisions, provided you're on Pro and store results yourself.
2. validator.js (best for syntax and input sanitization)
validator.js is a widely used string-validation library in the JavaScript ecosystem, and several framework validators build on it. Its isEmail() function checks an address against a grammar and accepts options such as require_tld, allow_display_name, allow_utf8_local_part and allow_ip_domain.
Key features
isEmail()with configurable policy options.- Other string validators and sanitizers in the same package.
- Runs in Node and in browsers.
- Used by express-validator as part of its validation chain.
Pros
- Fast, small and easy to drop into existing code.
- Options such as
require_tldlet you set policy, for example rejecting addresses with no top-level domain. - Fits naturally as the first gate in a server-side validation flow.
Cons
- It is syntax only.
user@gmial.compasses, and so does a well-formed address on a domain with no mail server. - The grammar is permissive, so some addresses that look wrong still pass unless you tighten the options.
- It can't tell you whether the mailbox exists or whether the domain is a catch-all.
Best for: instant feedback on signup forms and input sanitization in APIs.
Where it falls short: deciding whether a list is deliverable.
Pricing: free and open source.
Tip: trim whitespace and lowercase only the domain before validating, since RFC 5321 allows the local part to be case-sensitive. Don't reject plus-tags such as name+news@example.com, which are valid and common. For a full walkthrough, see how to validate email in JavaScript.
Bottom line: the standard syntax gate for Node, but it won't catch a typo domain or a dead mailbox.
3. Zod (best for TypeScript schemas)
Zod is a TypeScript-first schema library. Its z.string().email() check is pattern-based, so it verifies format rather than deliverability. Its real strength is composition: one schema gives you the TypeScript type, runtime validation and error messages.
Key features
.email()string check with type inference.- Async refinements, run through
parseAsync, for calling a remote check inside a schema. - Works in Node and in browsers.
Pros
- One schema can serve both a React form and an API route, so the rules never drift apart.
- Async refinements let a mailbox check sit in the same validation flow as the format check.
- Structured error objects make it easy to show field-level messages. See email validation in React Hook Form for a common pairing.
Cons
- The built-in email check does no DNS or mailbox work, so you add those layers yourself.
- A remote call inside a schema means validation can hit the network. Limit it to submit or background jobs, not every keystroke.
- The email pattern is a design decision and can differ from other libraries on edge cases such as quoted local parts.
Best for: TypeScript projects that want one schema for forms and server routes.
Where it falls short: any check beyond syntax, unless you write that code yourself.
Pricing: free and open source. See the Zod documentation for current usage.
Tip: keep the Zod email check synchronous for instant feedback. Put the mailbox check in an async refinement that runs only on submit, or move it out of the request entirely into a queue.
Bottom line: the best fit for TypeScript teams, provided you treat it as a format check and add deliverability separately.
4. Joi (best for rule-based backend schemas)
Joi is a mature schema library, widely used with hapi and Express. Its string().email() rule goes beyond pattern matching: the tlds option checks the suffix against the IANA list by default and can take a custom allow-list, and minDomainSegments requires a dotted domain.
Key features
.email()with atldsoption for suffix policy.minDomainSegmentsto require a dotted domain.- Rule chaining, custom messages and extensions.
Pros
- Stronger suffix policy than a bare regex, so malformed or unknown top-level domains are rejected.
- Mature and well understood by backend teams.
- Easy to validate several related fields, such as billing and contact emails, in one schema.
Cons
- Still syntax-level. A suffix check confirms the TLD is recognized, not that the domain has a mail server.
- The IANA-based check depends on the library's bundled data, so confirm it stays current for your version.
- Typing is weaker than Zod's inferred types, which matters in a fully typed codebase.
Best for: hapi or Express backends that already use Joi for request validation.
Where it falls short: TypeScript-first front ends, and any deliverability decision.
Pricing: free and open source. See the Joi documentation.
Tip: require minDomainSegments of 2 and a TLD policy, then log rejections for the first week. Legitimate new TLDs are the usual false rejects, so review them before you enforce the rule strictly.
Bottom line: a solid backend schema tool with a better suffix policy than most hand-written patterns, but still short of deliverability.
5. email-existence (best self-hosted mailbox probe, with caveats)
email-existence is one of the few npm packages that attempts a mailbox check. It performs a DNS MX lookup and then an SMTP handshake that asks the server whether it would accept a given recipient. Everything runs on your infrastructure.
Key features
- MX lookup followed by an SMTP recipient probe.
- No third-party API required.
- A simple promise-based call.
Pros
- No per-check fees, because it runs on your own servers.
- Useful as a rough signal on small lists, from a host where outbound port 25 is open.
- Easy to test locally against domains you control.
Cons
- Outbound port 25 is restricted by default on major cloud providers, so the probe can fail on a typical cloud VM.
- A failed or silent probe looks like a dead mailbox, so "no" can mean "blocked" rather than "invalid."
- Mass probing from one IP can get that address blocklisted and may conflict with your hosting provider's acceptable-use terms.
Best for: small internal lists from a host where you control port 25 and can accept uncertain results.
Where it falls short: large lists and any decision that needs a reliable answer.
Pricing: free and open source. Check the npm listing for current maintenance status before you adopt it.
Tip: run probes at low concurrency per domain, and treat a failed probe as Risky rather than Invalid until a second method confirms it.
Bottom line: a useful experiment on small lists, not a substitute for a managed mailbox check at scale.
6. deep-email-validator (best for multi-check results)
deep-email-validator bundles several checks into one call: format, MX, an SMTP probe and list checks such as disposable and free-provider detection. According to its documentation, it returns results per check, so you can see which layer failed.
Key features
- Format, MX and SMTP checks in one function.
- Disposable and free-provider flags alongside the mailbox result.
- Per-check output for debugging.
Pros
- Saves you from wiring a syntax library, a DNS check and a list check together yourself.
- Per-check output explains why an address was rejected, which helps support teams answer customer questions.
- Works well for internal tools that need a readable reason code.
Cons
- It inherits the SMTP limitations: blocked port 25, silent providers and IP reputation risk.
- It's a heavier dependency than validator.js alone, so check its footprint in serverless functions with cold-start limits.
- Its behavior depends on the current release, so read its changelog and open issues before you rely on a specific check.
Best for: internal tools that need per-check results without building the pipeline yourself.
Where it falls short: high-volume list cleaning, where a managed service with batch processing and a stated accuracy figure is easier to govern.
Pricing: free and open source. Confirm the license and maintenance status on npm.
Tip: log per-check output for every rejected address during the first two weeks. You'll see which failure mode dominates your list before you enforce any rule.
Bottom line: a convenient bundle for internal use, but it carries the same mailbox-probe limits as any SMTP-based tool.
7. mailchecker (best for disposable-domain blocking)
mailchecker matches an address's domain against a list of known disposable and throwaway email providers. It's built to stop free-trial abuse and throwaway signups, not to verify that a mailbox exists.
Key features
- Disposable-domain matching against a maintained list.
- A simple boolean result.
- No network calls, so the check runs offline.
Pros
- Fast and local, so it adds no latency at signup.
- Catches a common source of low-quality sign-ups before they enter your list.
- Complements a syntax check and a mailbox check rather than replacing either.
Cons
- It catches only domains already on its list. A new throwaway domain passes until the list is updated.
- It doesn't check syntax, MX or mailboxes, so a fake address on a real provider still passes.
- You must update the package to keep the list current.
Best for: blocking disposable signups on free trials and gated downloads.
Where it falls short: deciding whether an address is deliverable.
Pricing: free and open source.
Tip: on a paid checkout, don't hard-block every disposable domain. Ask for extra confirmation instead, because some legitimate customers use temporary addresses for privacy. For wider signup hygiene, see how to add real-time email verification to signup forms.
Bottom line: a narrow, useful filter that works best alongside a confirmation step.
8. DIY with node:dns and node:net (best zero-dependency option)
You can build a basic pipeline from Node's built-in modules. dns.promises.resolveMx looks up mail servers, url.domainToASCII converts internationalized domains to ASCII, and node:net opens the SMTP socket. This gives you full control over timeouts and concurrency, with no third-party code. For the DNS part in depth, see how to check MX records programmatically.
Key features
- Built-in DNS and URL modules, with nothing to install.
- Control over timeouts, retries and concurrency.
- A random-address probe for catch-all detection.
Pros
- No third-party code in your supply chain.
- It's easy to audit and tune to your own list.
- The DNS layer is simple. RFC 5321 says that if a domain has no MX record, mail may fall back to its A record, and your check should mirror that.
Cons
- You own the SMTP edge cases: greylisting, banners, STARTTLS, timeouts and rate limits.
- You own the IP reputation risk and the port 25 problem.
- You must build caching, concurrency limits and error handling yourself, and keep them working.
Best for: teams that want an auditable DNS check and have the engineering time to maintain a mailbox probe.
Where it falls short: mailbox-level accuracy at scale.
Pricing: your own infrastructure and engineering time.
Tip: detect catch-alls with a random-address probe. Send a probe to a nonexistent local part on the same domain. If the server accepts it, the domain probably accepts any address, so route its addresses to Risky.
Bottom line: the cleanest option for a DNS check, but a mailbox check you build yourself carries the same limits as any SMTP probe.
How do you validate emails in a Node.js pipeline?
The most reliable approach has two stages: a fast syntax check at input, and a batch mailbox check on the stored list. The steps below use Unlimited Verifier as the mailbox layer. Adjust the placeholders to match the API documentation.
- Add a syntax gate. Install validator.js with
npm install validator, then validate every address at the form or API boundary. Trim whitespace before you check.
const validator = require('validator');
function normalize(raw) {
const trimmed = raw.trim();
const at = trimmed.lastIndexOf('@');
if (at < 1) return trimmed;
// Lowercase the domain only. RFC 5321 allows the local part to be case-sensitive.
return trimmed.slice(0, at) + '@' + trimmed.slice(at + 1).toLowerCase();
}
function isWellFormed(raw) {
return validator.isEmail(normalize(raw), { require_tld: true });
}
Handle internationalized domains. Convert them with Node's built-in URL module before any DNS lookup.
url.domainToASCII('español.com')returnsxn--espaol-zwa.com. See the Node.js DNS documentation for the lookup side.Create an account. Sign up and test your CSV on the Free plan. The API requires Pro, so upgrade before you wire up the job.
Create an API key. Generate one on the Email verification API page and store it in an environment variable, never in source control.
Batch the list. Split addresses into groups of up to 10,000 per request. A 50,000-address list needs 50,000 ÷ 10,000 = 5 requests.
function chunk(items, size = 10000) {
const out = [];
for (let i = 0; i < items.length; i += size) out.push(items.slice(i, i + size));
return out;
}
- Call the API. Use Node's built-in
fetch, available in Node 18 and later. Replace the placeholders with the endpoint, auth header and body format from the API documentation. Run batches sequentially, or with a small parallel limit. For throttling strategy, see email validation API rate limits explained.
// Placeholders: take the endpoint, auth header and body shape from the API docs.
async function verifyBatch(emails) {
const res = await fetch(process.env.VERIFY_URL, {
method: 'POST',
headers: { 'Content-Type': 'application/json' /* plus your auth header */ },
body: JSON.stringify({ emails }), // adjust to the documented body format
});
if (!res.ok) throw new Error(`Verification failed: ${res.status}`);
return res.json();
}
Store results immediately. Write each address, its bucket (Valid, Risky or Invalid) and a timestamp to your own database. Pro results are kept on the platform for 30 days only.
Apply your rules. Send to Valid addresses. Suppress Invalid addresses. Segment Risky addresses (catch-alls, disposables and role-based addresses) by engagement. For the policy details, see email list maintenance best practices. These rules are part of wider email verification compliance and hygiene.
Spot-check without code. For one-off checks, use the free email checker. For a no-code bulk run, upload a CSV instead of calling the API.
Schedule it. Run the batch job weekly on new signups and quarterly on the full list.
Worked example (illustrative list size). Assume a 50,000-address list plus about 700 new signups a week.
- Quarterly full pass: 50,000 addresses in 5 API requests. Four passes a year means 200,000 addresses.
- Weekly delta: 700 × 52 = 36,400 checks a year, or about 3,033 a month.
- Busiest month (a quarter-end pass plus the weekly delta): 50,000 + 3,033 ≈ 53,033 checks, inside the 100,000-a-month API allowance.
- What doesn't fit: a weekly full-list pass would be 50,000 × 52 ÷ 12 ≈ 216,667 emails a month, more than double the allowance. Use the quarterly cadence, or split the list into segments that rotate through the week.
- Cost: $25 × 12 = $300 a year on the annual Pro plan. Standard verification is unlimited on every plan, so the bill doesn't rise with extra re-checks. For how per-check models compare, see email verification pricing.
Bottom line: keep validator.js at the edge, run batch mailbox checks on a schedule, and store every result on your side.
Which Node.js email validation option should you choose?
Match the option to your bottleneck: input quality, deliverability decisions, disposable abuse or zero dependencies. The table below is a starting point.
| Your situation | Pick | Why |
|---|---|---|
| Signup form needs instant feedback | validator.js or Zod | Syntax check with no network call |
| TypeScript front end and back end | Zod | One schema for both |
| Express or hapi backend with Joi | Joi | Mature rules and suffix policy |
| Clean a 50,000-address list from a Node job | Unlimited Verifier API (Pro) | Batch mailbox checks with Valid/Risky/Invalid buckets |
| Block throwaway trial signups | mailchecker | Fast disposable-domain match |
| Small internal list, port 25 open | email-existence or deep-email-validator | Free probe with caveats |
| Zero third-party dependencies | DIY node:dns + node:net |
Full control, full maintenance |
For a wider market view, see our roundup of the best email verification tools. For bulk sales lists, see email verification for sales prospecting. For SaaS and ecommerce sign-up flows, see email verification for ecommerce and SaaS. If your backend is Python rather than Node, see best Python libraries for email validation.
Bottom line: use a syntax library at the form and a managed batch check for the list, and build a probe yourself only if you can maintain it.
What mistakes do Node developers make with email validation?
- Treating a passing syntax check as deliverable.
user@gmial.comis well-formed. Syntax is the first gate, not the verdict. - Trusting one SMTP probe. Silent providers and blocked probes look like dead mailboxes. Route uncertain results to Risky and retry 4xx replies later.
- Running probes from a cloud VM without checking port 25. Many cloud providers restrict it by default, so the check can fail without an obvious error.
- Rejecting plus-tags and apostrophes with a hand-written regex. Both can be valid, and many older patterns reject them.
- Blocking the signup request on a slow mailbox check. Make the mailbox check asynchronous and let the user continue while it runs.
- Running DNS lookups without caching or limits. Most lists have far fewer unique domains than rows, because many addresses sit on a few large providers. Cache MX results by domain and cap concurrency.
- Lowercasing the whole address. Lowercasing the domain is safe, but the local part can be case-sensitive under RFC 5321. Keep the original for sending.
- Forgetting to suppress Invalid addresses. If they aren't on your ESP's suppression list, the next import brings them back.
- Ignoring sender thresholds. Google's bulk sender guidance says to keep spam rates below 0.10% and avoid 0.30% or higher. Where guidance differs, use the stricter figure. Our recommended hard-bounce target is under 1% per send. That target is our recommendation, not a published standard. See Google's sender guidelines.
- Relying on a verifier's retention window. Pro results are kept for 30 days, so store your own copy.
Bottom line: most Node.js validation failures come from treating a single check as the final answer, not from the library.
Verdict
For Node.js teams, the best answer is a two-layer setup: validator.js (or Zod) at the form for instant syntax checks, and a hosted mailbox-verification API for lists and uncertain addresses. An npm package can't reliably confirm a mailbox on its own, so the mailbox layer is where most deliverability decisions get made.
Unlimited Verifier's API is the strongest hosted option in this list for batch pipelines. It returns Valid, Risky and Invalid buckets with catch-all detection, accepts up to 10,000 emails per request and offers unlimited standard verification on every plan. The API requires Pro, which is $25/month billed annually, so store results in your own database.
Bottom line: start with validator.js today, add batch mailbox checks through the API once you're on Pro, and keep your sending list clean on a weekly and quarterly schedule.
Layered validation flow
- Form (instant): validator.js or Zod checks syntax and rejects malformed input.
- Disposable filter: mailchecker blocks known throwaway domains.
- Batch or uncertain addresses: send to a hosted verification API for mailbox-level status.
- Route results: Valid = send; Risky (catch-all) = send with caution or re-engage; Invalid = suppress.
- Re-verify lists on a schedule so stale addresses don't hurt deliverability.
Frequently asked questions
What is the best Node.js library for email validation?
validator.js is the most common choice for syntax checks, and Zod suits TypeScript schemas. Neither confirms a mailbox exists. For that, most teams add a hosted verification API for batch lists and uncertain addresses, since npm packages can't reliably probe SMTP.
Can a Node.js library confirm an email mailbox exists?
Not reliably. Many networks block outbound port 25, and many mail providers don't answer recipient probes. Self-hosted SMTP checks can return misleading results, so treat an 'exists' response as a signal, not proof.
What is a catch-all email address?
A catch-all domain accepts mail for any address on it, so an SMTP check always appears to succeed even when the specific mailbox is fake. Good verifiers flag these as risky rather than valid.
Is validator.js enough for form validation?
For most signup forms, yes at the syntax layer. It catches malformed addresses instantly. It won't detect typos in real domains, disposable addresses, or nonexistent mailboxes, so add a disposable-domain check or a verification step if those matter.
How do I block disposable email addresses in Node.js?
Use mailchecker, which matches known throwaway domains against a maintained list. It's fast and free, but it only detects known disposable providers and doesn't confirm that a mailbox exists.
Should I use Zod or Joi for email validation?
Choose Zod if your project is TypeScript-first and you want inferred types from schemas. Choose Joi if you run hapi or Express and prefer a rule-heavy, declarative API. Both are free and open source, and both need a separate tool for mailbox checks.
Can I validate emails in bulk with Node.js?
Yes. Send lists through a hosted API in batches, then handle results by status: send to valid, review risky catch-alls, and suppress invalid. Batch endpoints avoid the rate-limit and port-blocking problems of running SMTP probes yourself.
Is a DIY email check with node:dns and node:net worth building?
It works for syntax, MX lookup, and simple probes with zero third-party dependencies. However, you must handle port blocking, timeouts, greylisting, and catch-alls yourself, so expect ongoing maintenance and engineering time.
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.