Fix misspelled email addresses in JavaScript

📮 An ultratiny (1.9 KB) and fast JavaScript email checker to reduce users typing a wrong email. Written in TypeScript. Enterprise-grade.

Marta garcia
Alexander Guy Head of Marketing & Growth at Zerion
Alexander Guy Head of Marketing & Growth at Zerion
Marta

96,000+ weekly downloads

7.8M+Downloads since 2022
Live demoEdit the address — it corrects as you type
🤔 Did you mean ? Click to fix it.
Or try:

Get started in 2 minutes!

1

Install @zootools/email-spell-checker

npm
yarn
pnpm
javascript
npm i @zootools/email-spell-checker --save

2

Import and call run method to validate your email

import emailSpellChecker from '@zootools/email-spell-checker';

const suggestion = emailSpellChecker.run({
  email: 'jorge@gmaik.co'
})

3

If the user made a typo, suggestion contain the fixed email. 🎉

if (suggestion) {
  // dev: user made a typo -- handle the suggestion.
  // for example: show a message to fix the email.

  console.log(suggestion.address); // jorge
  console.log(suggestion.domain); // gmail.com
  console.log(suggestion.full); // jorge@gmail.com
}

First-class developer experience you deserve

🔥 96k+ weekly downloads

Top companies and brands use it every day in demanding production products.

⚡️ Lightning fast

Highly performant email checking using Sift3 - a fast and accurate string distance algorithm.

🔨 1-minute migration

Same API and functions as mailcheck so you can switch in a sec!

🔋 Updated

39+ popular domains, and 66+ modern TLDs out-of-the-box. Frequently updated.

🚀 Ridiculously small

1.9KB (minzip) and 0 external dependencies. We agree, big bundles suck!

💙 Written in TypeScript

Fully written in TypeScript, cause we know you love it and we too.

⚙️ Extensible

Allows you to pass your custom rules and domains. Tweak it as you need.

🔐 Unit tested

Cause we'd never use a library without tests :).

Frequently asked questions

Does the checker send my users' emails anywhere?

No. The library runs entirely in the browser and makes zero network requests. Addresses are compared against a local dictionary of popular domains and TLDs, so nothing is ever transmitted or stored.

Is this the same as email verification?

Not quite — it's complementary. The spell checker fixes obvious typos at the point of entry (like gmaik.co → gmail.com). To confirm an address is real, deliverable, and not disposable, use SMASHSEND's Email Verification add-on, which checks MX records, mailbox existence, and known spam-trap domains.

Can I customize the suggestions?

Yes. Pass your own domains, topLevelDomains, threshold values, or even a custom distance function to run() to tune it for your specific audience.

How much does it cost?

The library is free and open source (MIT). It's built and maintained by the team behind SMASHSEND — the email platform that helps you turn every clean signup into a customer.

Got questions?

Watch this quick tutorial or contact us

Great emails start with a clean list

Catch typos on the way in, then send campaigns, automations, and transactional email that actually land — all from one platform.

Free tool • Zero dependencies • Open source • Built by SMASHSEND

Other products from us:TidySupport·SuperBuilder·Inbounter·Blossu·KnowledgeSDK·TypeHop·EverydaySEO