GitHub password requirements

github.com

Can't remember your GitHub password? Use the requirements below to narrow down which variation you may have used.

GitHub's documentation describes passwords of at least 8 characters, including a lowercase letter and a number.

Password requirements

GitHub password requirements
RequirementValueSource
Minimum length8 characters8 characters if the password includes a number and a lowercase letter; otherwise at least 15 characters of any kind.Official docs
Maximum lengthUnknown—
Uppercase letter (A–Z)Allowed, not requiredOfficial docs
Lowercase letter (a–z)Sometimes requiredNeeded for passwords shorter than 15 characters.Official docs
Number (0–9)Sometimes requiredNeeded for passwords shorter than 15 characters.Official docs
Special characterAllowed, not requiredOfficial docs
SpacesUnknown—
Case sensitiveUnknown—
Source: the website's own documentation. · Record last changed 4 Dec 2026Report an error

Other documented requirements

  • A password can be 8 characters long if it includes a number and a lowercase letter, or 15 characters long with any combination of characters. (Official docs)
  • GitHub checks new passwords against datasets of known weak or breached passwords. (Official docs)

Example password formats

Illustrative example passwords for GitHub
✓Example!24Meets the recorded requirements
✕EXAMPLE!24Missing a lowercase letter
✕Examplexa!Missing a number
✕Exampl2Too short (minimum 8 characters)

These examples are for illustration only. Do not use them as your actual password. A password that meets the recorded requirements is not guaranteed to be accepted.

Generate a password for GitHub

 

Generated in your browser with the Web Crypto API. Nothing is sent or saved. Some of this website's requirements are unknown, so a generated password may still be rejected.

Use a unique password for every website. A password manager can generate and remember them for you.

Have the requirements changed?

If you created your GitHub password years ago, it may have been made under older rules. The table shows every change to this website's entry in Apple's Password Manager Resources. A change can mean the website changed its policy, or that the record was corrected.

DateChangeRecorded rule
15 Jul 2021Removed—
19 Jan 2021ChangedAt least 8 characters, including a lowercase letter or a numberminlength: 8; required: lower, digit; allowed: unicode;
8 Jun 2020AddedAt least 8 characters, including a lowercase letter and a numberminlength: 8; required: lower; required: digit; allowed: lower, upper, digit, [`!@#$%^&*()+~{}'";:<>?];

Forgot your GitHub password?

We can't retrieve or reset passwords. If none of your usual variations work, reset it through GitHub's official website rather than guessing repeatedly — many websites lock an account after several failed attempts.

What to do when you forget a password · Why an old password might not meet current rules

Account security

Two-factor authenticationSecurity key (FIDO U2F / WebAuthn), Authenticator app (TOTP), SMS text message, Website's own app — setup instructionsSource: 2FA Directory
PasskeysSupported for passwordless sign-in and as a second factor — instructionsSource: Passkeys Directory

Frequently asked questions

What is the minimum GitHub password length?

At least 8 characters, according to the website's documentation.

Does GitHub require a special character?

No. GitHub's recorded rule allows a special character but does not require one.

Does GitHub require a capital letter?

No. GitHub's recorded rule allows a capital letter but does not require one.

Does GitHub require a number?

Sometimes — see the notes in the requirements table.

Have GitHub's password requirements changed?

The recorded rule for github.com has changed 2 times since it was first added on 8 Jun 2020. A change can reflect a new policy or a correction to the record. See the history table above.

Sources and verification

Raw rule: minlength: 8; required: lower; required: digit; allowed: ascii-printable; (github.com, Official docs)

Found a mistake? Report an error · How we collect data

Related websites