Can passwords contain spaces?
It depends on the website. Current NIST guidance says websites should accept spaces, and many do – which makes multi-word passphrases possible. Others reject spaces entirely, and some (Google, for example) don't allow a password to start or end with a space.
- Some websites silently remove spaces at the start or end of what you type.
- Copying a password can pick up an extra space at the end – a common cause of “incorrect password”.
- Where spaces aren't allowed, a passphrase can use hyphens instead: example-words-here.
Each website page shows whether spaces are allowed, or “Unknown” if no source says.