# validator.js

Library of string validators and sanitizers for JavaScript, used on a server or in a browser.


Source: https://findsoftware.frbit.cloud/validator-js/
Last reviewed: 2026-11-17
Listed since: 2026-11-17

## Record

### Links

- repository: https://github.com/validatorjs/validator.js

### Identity

- status: active
- maintainer: Chris O'Hara
- maintainerType: unknown
- parent: unknown
- firstRelease: 2011
- hqCountry: unknown

### Kind

- category: library
- hosting: unknown
- language: javascript
- runtime: unknown
- runtimeMin: unknown
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm, script tag, bower

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 13
- latestReleaseDate: 2026-04-02

### Adoption

- githubStargazers: 23744
- packagistDownloads: not applicable
- npmWeeklyDownloads: 35318186
- contributors: 412
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 493728
- dependentPackages: 5570

### Sources

- urls: https://api.github.com/repos/validatorjs/validator.js (read 2026-11-17)
- maintainer: https://raw.githubusercontent.com/validatorjs/validator.js/master/LICENSE (read 2026-11-17)
- category: https://raw.githubusercontent.com/validatorjs/validator.js/master/README.md (read 2026-11-17)
- language: https://api.github.com/repos/validatorjs/validator.js (read 2026-11-17)
- license: https://api.github.com/repos/validatorjs/validator.js (read 2026-11-17)
- licenseModel: https://raw.githubusercontent.com/validatorjs/validator.js/master/README.md (read 2026-11-17)
- currentMajor: https://github.com/validatorjs/validator.js/releases/tag/13.15.35 (read 2026-11-17)
- latestReleaseDate: https://github.com/validatorjs/validator.js/releases/tag/13.15.35 (read 2026-11-17)
- firstRelease: https://registry.npmjs.org/validator (read 2026-11-17)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/validator (read 2026-11-17)
- githubStargazers: https://api.github.com/repos/validatorjs/validator.js (read 2026-11-17)
- contributors: https://api.github.com/repos/validatorjs/validator.js/contributors?per_page=1 (read 2026-11-17)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/validator (read 2026-11-17)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/validator (read 2026-11-17)
- installMethod: https://raw.githubusercontent.com/validatorjs/validator.js/master/README.md (read 2026-11-17)
- installMethod: https://raw.githubusercontent.com/validatorjs/validator.js/master/README.md (read 2026-11-17)
- installMethod: https://raw.githubusercontent.com/validatorjs/validator.js/master/README.md (read 2026-11-17)

## Notes

validator.js is a library of string validators and sanitizers for JavaScript. The README documents server-side and client-side usage, with validators such as isEmail, isDate and isCreditCard and sanitizers such as escape, ltrim and normalizeEmail. It validates and sanitizes strings only, so other input has to be converted to a string first. The README serves as its documentation, and it lists several maintainers under the validatorjs GitHub organization.

## Worth knowing

The README says XSS sanitization was removed from the library and points to other projects for that job.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
