Show password
People cannot check a password they cannot see, but anyone nearby can read one that is shown.
The answer
Hide the password by default, with a control that shows it. As strong as the weakest rule behind it: moderate.
-
Hide the password by default, with a button to show it.
GOV.UK, NHS, Carbon, Android and NIST agree, and 82% of 202 people surveyed in one study preferred hidden by default with a way to show. The same study found most audited sites offered no such control. Convention, so 3.
- Applies when
- Always.
- Based on
- Convention
- Principle
- Keep people in control
- Common mistake
- No way to see what was typed, on a touch keyboard where typos are common.
- ExperimentExperiment: Unmasking the Security and Usability of Password MaskingYuqi Hu, 2024
- StandardStandard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Password input component, GOV.UK Design SystemGOV.UK Design System
- Guidance: Password input, NHS digital service manualNHS England
- Guidance: Text input usage (password input variant), IBM Carbon Design SystemIBM Carbon Design System
- Guidance: Show or hide password based on a user toggleAndroid Developers
The other rules
-
Make the show button’s name and state available to screen readers, and announce changes.
WCAG 2.2 level A (4.1.2). Reopened and checked.
- Applies when
- A show control is offered.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 4.1.2 Name, Role, ValueW3C WAI, 2026
-
Hide the password again when the form is submitted.
GOV.UK only; reopened and checked. Rated 2.
- Applies when
- A show control is offered.
- Based on
- Convention
- Principle
- Prevent errors
- GuidanceGuidance: Password input component, GOV.UK Design SystemGOV.UK Design System
Accessibility
- WCAG 2.2 · 4.1.2WCAG 2.2, 4.1.2 Name, Role, Value (A).
- GOV.UK notes that screen readers have their own ways to read a password field and that a control's label can fall out of step with the visible state. No test was read.
Open questions
- OpenDoes hiding cause more typing errors? An experiment with 600 people found lower first-try success when hidden but no difference that survived correction; a 10-person study found no clear difference. A widely cited essay claims masking causes errors and gives no data.
- OpenWhether showing by default would be acceptable on phones: untested.
- OpenNo published online experiment of a show control was found.
Checked November 12, 2026
Sources
- ExperimentExperiment: Unmasking the Security and Usability of Password MaskingYuqi Hu, 2024
- StandardsStandard: Understanding SC 4.1.2 Name, Role, ValueW3C WAI, 2026
- Standard: NIST SP 800-63B-4 Digital Identity Guidelines, Authentication and Authenticator Management (Sec. 4.2 Account Recovery; Sec. 3.1.1.2)NIST, 2025
- GuidanceGuidance: Password input component, GOV.UK Design SystemGOV.UK Design System
- Guidance: Password input, NHS digital service manualNHS England
- Guidance: Text input usage (password input variant), IBM Carbon Design SystemIBM Carbon Design System
- Guidance: Show or hide password based on a user toggleAndroid Developers