Password Validation Regex Builder

Build a password-policy regex with your rules, plus ready-to-paste code for JavaScript, C#, Python and Java. Free and private: runs in your browser.

Set minimum and maximum length and which character types are required; the regex updates as you type.

Runs entirely in your browser. Nothing you paste is uploaded or stored.

Use cases

  • Set or review a password policy for your app.
  • Create strong credentials for test and service accounts.
  • Explain to users why a password was rejected.

Frequently asked questions

Are composition rules still recommended?

NIST SP 800-63B now favours a long minimum length and blocking common or breached passwords over forcing symbols and digits.

Is the Password Validation Regex Builder free?

Yes. It is free with no sign-up, and it runs entirely in your browser, so your input is never uploaded or stored.

What should I do with the issues it reports?

Fix high-severity items first; they usually break builds or deployments. Lower-severity items are style and best-practice suggestions.

Related tools

Checking one snippet is a start. Scan your whole repository for free with CodeInspector.

All free developer tools