GitHub password requirements
github.comCan'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
| Requirement | Value | Source |
|---|---|---|
| Minimum length | 8 characters8 characters if the password includes a number and a lowercase letter; otherwise at least 15 characters of any kind. | Official docs |
| Maximum length | Unknown | — |
| Uppercase letter (A–Z) | Allowed, not required | Official 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 character | Allowed, not required | Official docs |
| Spaces | Unknown | — |
| Case sensitive | Unknown | — |
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
| ✓ | Example!24 | Meets the recorded requirements |
| ✕ | EXAMPLE!24 | Missing a lowercase letter |
| ✕ | Examplexa! | Missing a number |
| ✕ | Exampl2 | Too 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.
| Date | Change | Recorded rule |
|---|---|---|
| 15 Jul 2021 | Removed | — |
| 19 Jan 2021 | Changed | At least 8 characters, including a lowercase letter or a numberminlength: 8; required: lower, digit; allowed: unicode; |
| 8 Jun 2020 | Added | At 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 authentication | Security key (FIDO U2F / WebAuthn), Authenticator app (TOTP), SMS text message, Website's own app — setup instructionsSource: 2FA Directory |
|---|---|
| Passkeys | Supported 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
- GitHub Docs – Creating a strong password (Facts summarised from the website's own documentation; documentation checked 4 Dec 2026)
- 2FA Directory (MIT; imported 4 Dec 2026)
- Passkeys Directory (CC BY 4.0; imported 4 Dec 2026)
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