A simple and elegant Chrome extension for generating secure passwords with customizable options.
- 🔐 Generate Secure Passwords - Create random passwords with a single click
- 📏 Custom Length - Set password length from 4 to 64 characters (default: 20)
- 🎯 Character Options:
- Uppercase letters (A-Z)
- Lowercase letters (a-z)
- Numbers (0-9)
- Symbols (!@#$%^&*...)
- 📋 Copy to Clipboard - One-click copy functionality
- 🎨 Beautiful UI - Modern gradient design with smooth interactions
- ⚡ Instant Generation - Auto-generates password on load
- Extract or clone this repository to your computer
- Open Chrome and navigate to
chrome://extensions/ - Enable Developer mode (toggle in top right corner)
- Click Load unpacked
- Select the
password-generatorfolder - The extension will appear in your Chrome toolbar!
- Click the Password Generator icon in your Chrome toolbar
- Adjust the password length if needed (default is 20 characters)
- Select which character types to include:
- ✓ Uppercase
- ✓ Lowercase
- ✓ Numbers
- ✓ Symbols
- Click Generate Password to create a new password
- Click Copy to copy the password to your clipboard
- A success message will confirm the copy action
password-generator/
├── manifest.json # Extension configuration
├── popup.html # UI markup
├── popup.js # Password generation logic
├── styles.css # Styling
└── README.md # This file
- manifest.json - Extension metadata and permissions (Manifest V3)
- popup.html - HTML structure for the extension popup
- popup.js - JavaScript logic for password generation and clipboard handling
- styles.css - CSS styling with gradient theme
- Manifest Version: 3 (latest Chrome extension standard)
- Permissions:
clipboardWrite(for copy functionality) - Character Sets: Uppercase, lowercase, numbers, and special symbols
- Random Generation: Uses
Math.random()for password generation
Edit popup.js and modify the default value:
const length = parseInt(lengthInput.value) || 20; // Change 20 to desired defaultEdit popup.js and update the character set constants:
const UPPERCASE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const LOWERCASE = 'abcdefghijklmnopqrstuvwxyz';
const NUMBERS = '0123456789';
const SYMBOLS = '!@#$%^&*()_+-=[]{}|;:,.<>?';Edit styles.css and modify the gradient colors:
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);- Chrome 88+
- Edge 88+ (Chromium-based)
- Brave
- Other Chromium-based browsers
- ✅ No data collection
- ✅ No external API calls
- ✅ All generation happens locally
- ✅ Passwords are not stored or logged
- ✅ Only requires
clipboardWritepermission
Potential features for future versions:
- Password strength indicator
- Password history
- Custom character set input
- Exclude similar characters (I, l, 1, O, 0, etc.)
- Passphrase generation
- Dark mode toggle
This project is open source and available for personal and commercial use.
Feel free to fork, modify, and improve this extension!
