---
title: Password Generator
url: "https://pressable-staging.mystagingwebsite.com/web-tools/password-generator/"
published: 2025-03-28
modified: 2025-04-18
author: Wayne McWilliams
---

[ Web Tools ](/web-tools/) 

# Free Secure Password Generator

Generate secure, random passwords with our user-friendly Password Generator, customizing length and character sets to perfectly match your security needs.

 
 

#### Generated Password

Your New Password

#### Password Settings

  First Character Options 

 
 
 Include Uppercase
  

 
 
 Include Lowercase
  

 
 
 Include Numbers
  

 
 
 Include Symbols
  

 Other Characters Options 

 
 
 Include Uppercase
  

 
 
 Include Lowercase
  

 
 
 Include Numbers
  

 
 
 Include Symbols
  

  Password Length
  

 Generate Password 

 // Collect rules for the first character var firstChars = ''; if (document.getElementById('press-pg-first-uppercase').checked) { firstChars += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; } if (document.getElementById('press-pg-first-lowercase').checked) { firstChars += 'abcdefghijklmnopqrstuvwxyz'; } if (document.getElementById('press-pg-first-numbers').checked) { firstChars += '0123456789'; } if (document.getElementById('press-pg-first-symbols').checked) { firstChars += '!@#$%^&\*()-\_=+\[\]{}|;:,.<>?'; }

 // Collect rules for other characters var otherChars = ''; if (document.getElementById('press-pg-other-uppercase').checked) { otherChars += 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; } if (document.getElementById('press-pg-other-lowercase').checked) { otherChars += 'abcdefghijklmnopqrstuvwxyz'; } if (document.getElementById('press-pg-other-numbers').checked) { otherChars += '0123456789'; } if (document.getElementById('press-pg-other-symbols').checked) { otherChars += '!@#$%^&\*()-\_=+\[\]{}|;:,.<>?'; }

 // Validation if (!firstChars) { document.getElementById('press-pg-output').textContent = 'Please select at least one rule for the first character.'; return; } if (!otherChars) { document.getElementById('press-pg-output').textContent = 'Please select at least one rule for the other characters.'; return; } if (length < 1) { document.getElementById('press-pg-output').textContent = 'Invalid length.'; return; } // Generate password var password = ''; // First character password += firstChars.charAt(Math.floor(Math.random() \* firstChars.length)); // Remaining characters for (var i = 1; i < length; i++) { password += otherChars.charAt(Math.floor(Math.random() \* otherChars.length)); } document.getElementById('press-pg-output').textContent = password; }
