# Password Field

> A box that hides what you type behind dots. An eye button shows it.

**Field:** Design  
**Category:** User Interface  
**Also known as:** Password Input, Password Box

## Think of it like

It is like whispering a secret. Others see that you spoke, not what you said.

## Definition

A password field is a text box that hides what you type behind dots. A show button, often an eye icon, lets people check what they typed. It must allow paste, so password managers work. Good password fields say the rules up front, not after a failed try.

## Example

Leo types his new password, presses the eye to check it, and spots a typo before he saves.

## Example code

```html
<input type="password" autocomplete="new-password">
```

This line asks a password app to make up a strong new one.

## Why it matters

Hidden typing causes mistakes. A show button and paste support stop most of them.

## Common mistake

Blocking paste. It breaks password managers and pushes people to weak passwords.

## Three principles

- **Hidden by default.** Dots, not letters.
- **Show button.** Let people check.
- **Allow paste.** Password managers need it.

## Related terms

- [Text Input](https://learn.benibix.com/term/design/text-input)
- [Helper Text](https://learn.benibix.com/term/design/helper-text)
- [Inline Error Message](https://learn.benibix.com/term/design/inline-error-message)

## Taught in

- [Text Input and Text Area](https://learn.benibix.com/learn/design-user-interface/text-input-and-text-area): UI Components, 3/14

---

Source: https://learn.benibix.com/term/design/password-field
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
