-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpassword-generator.html
More file actions
879 lines (784 loc) · 63.1 KB
/
Copy pathpassword-generator.html
File metadata and controls
879 lines (784 loc) · 63.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Strong Password Generator — Secure, Random | FreeDevTool</title>
<meta name="description" content="Free strong password generator. Cryptographically secure via Web Crypto API. NIST 800-63B compliant, custom length, no ambiguous chars. Browser-only.">
<meta name="robots" content="index, follow">
<meta name="author" content="Anees Ur Rehman">
<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","datePublished":"2026-05-02","dateModified":"2026-05-19","inLanguage":"en-US","isPartOf":{"@type":"WebSite","name":"FreeDevTool","url":"https://freedevtool.org"}}</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"Person","name":"Anees Ur Rehman","url":"https://freedevtool.org/about","jobTitle":"Full-stack developer","worksFor":{"@type":"Organization","name":"FreeDevTool","url":"https://freedevtool.org"}}</script>
<link rel="canonical" href="https://freedevtool.org/password-generator">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preload" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:wght@300;400;500;600&display=swap" as="style">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=DM+Sans:wght@300;400;500;600&display=swap">
<link rel="preload" href="style.css?v=20260502-cards" as="style">
<link rel="stylesheet" href="style.css?v=20260502-cards">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/favicon.svg">
<meta property="og:image" content="https://freedevtool.org/og-image.svg">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="FreeDevTool — 50+ free, fast, privacy-first developer tools">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://freedevtool.org/og-image.svg">
<meta name="twitter:title" content="Strong Password Generator — Secure, Random">
<meta name="twitter:description" content="Cryptographically secure password generator. Custom length, NIST-compliant. Runs in browser, never sent to a server.">
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3L0CMH3X36"></script>
<script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag('js',new Date());gtag('config','G-3L0CMH3X36');</script>
<meta property="og:title" content="Password Generator — FreeDevTool">
<meta property="og:description" content="Free strong password generator. Secure, customizable, instant.">
<meta property="og:url" content="https://freedevtool.org/password-generator">
<meta property="og:type" content="website">
<meta property="og:site_name" content="FreeDevTool">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Password Generator",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Web Browser",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"description": "Free secure random password generator"
}
</script>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[
{"@type":"Question","name":"How do I generate a strong password?","acceptedAnswer":{"@type":"Answer","text":"Use a password generator that creates random strings using a cryptographically secure random number generator (CSPRNG). A strong password in 2026 should be at least 16 characters long, include uppercase letters, lowercase letters, numbers, and special symbols, and be unique for every account. Never use dictionary words, personal information, or patterns."}},
{"@type":"Question","name":"Is it safe to use an online password generator?","acceptedAnswer":{"@type":"Answer","text":"It depends on how the generator works. This tool generates passwords entirely in your browser using the Web Crypto API (crypto.getRandomValues) — no password is ever sent to a server or stored anywhere. Avoid generators that send requests to a backend server, as the generated password could be logged or intercepted."}},
{"@type":"Question","name":"How long should a strong password be in 2026?","acceptedAnswer":{"@type":"Answer","text":"NIST recommends a minimum of 8 characters, but security experts recommend at least 16 characters in 2026. Longer passwords exponentially increase brute-force difficulty. A 16-character password with mixed case, numbers, and symbols has approximately 10^31 possible combinations, making it virtually uncrackable with current computing power."}},
{"@type":"Question","name":"What is the difference between a password generator and a password manager?","acceptedAnswer":{"@type":"Answer","text":"A password generator creates random passwords. A password manager stores, organizes, and auto-fills your passwords securely. Most password managers (1Password, Bitwarden, KeePass) include built-in generators. Use both together: generate a unique password for each account and store it in a password manager so you only need to remember one master password."}},
{"@type":"Question","name":"What is a passphrase and is it more secure than a password?","acceptedAnswer":{"@type":"Answer","text":"A passphrase is a sequence of random words like 'correct horse battery staple'. Passphrases are easier to memorize than random character strings and can be very secure when using 4+ truly random words. A 4-word passphrase from a 7,776-word dictionary has about 50 bits of entropy. For maximum security, use a random password stored in a password manager."}},{"@type":"Question","name":"Is an online password generator safe to use?","acceptedAnswer":{"@type":"Answer","text":"Only if it generates passwords entirely in the browser (client-side). This generator uses the Web Crypto API — the same primitives as a real password manager — and never transmits your password to a server. Open DevTools Network tab while generating: you will see zero requests."}},{"@type":"Question","name":"Are passphrases stronger than random passwords?","acceptedAnswer":{"@type":"Answer","text":"Per character, no. Per memorability, yes. A 4-word passphrase from a 7,776-word list has about 50 bits of entropy. A 12-character random password with full charset has about 78 bits. The passphrase is weaker mathematically but humans can remember it."}},{"@type":"Question","name":"How long does it take to crack an 8-character password?","acceptedAnswer":{"@type":"Answer","text":"Depends on charset and attacker capability. A random 8-character password using all 95 ASCII printables has about 52 bits — crackable in hours on a high-end GPU farm. An 8-character dictionary password is crackable in seconds. NIST recommends 16+ character random passwords in 2026."}}
]}
</script>
<style>
.password-display {
background:var(--bg3); border:1px solid var(--border); border-radius:var(--radius);
padding:18px 16px; font-family:var(--mono); font-size:18px; font-weight:500;
color:var(--text); word-break:break-all; line-height:1.5;
text-align:center; min-height:60px; cursor:pointer;
transition:border-color .2s, background .2s;
position:relative;
}
.password-display:hover { border-color:var(--accent2); background:var(--bg); }
.strength-bar { height:4px; border-radius:2px; margin-top:12px; background:var(--bg4); overflow:hidden; }
.strength-fill { height:100%; border-radius:2px; transition:width .3s, background .3s; }
.strength-label { font-family:var(--mono); font-size:11px; margin-top:4px; text-align:center; }
.pw-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px; }
@media(max-width:500px) { .pw-options { grid-template-columns:1fr; } }
.pw-option {
display:flex; align-items:center; gap:8px;
padding:10px 14px; background:var(--bg3); border:1px solid var(--border);
border-radius:var(--radius); cursor:pointer; transition:border-color .2s, background .2s;
}
.pw-option:hover { border-color:var(--border2); }
.pw-option:has(input:checked) { border-color:rgba(0,208,132,.3); background:var(--accent-dim); }
.pw-option label { font-size:12px; cursor:pointer; text-transform:none; letter-spacing:normal; margin:0; color:var(--text); }
.length-row { display:flex; align-items:center; gap:12px; margin-top:14px; }
.length-row input[type="range"] { flex:1; }
.length-val { font-family:var(--mono); font-size:16px; font-weight:600; color:var(--accent); min-width:32px; text-align:center; }
.bulk-output {
background:var(--bg3); border:1px solid var(--border); border-radius:var(--radius);
padding:12px 14px; font-family:var(--mono); font-size:12px; color:var(--text);
max-height:200px; overflow:auto; line-height:1.8; word-break:break-all;
}
.entropy-info { font-family:var(--mono); font-size:11px; color:var(--text3); text-align:center; margin-top:4px; }
</style>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [
{
"@type": "ListItem",
"position": 1,
"name": "Home",
"item": "https://freedevtool.org/"
},
{
"@type": "ListItem",
"position": 2,
"name": "All Tools",
"item": "https://freedevtool.org/all-tools"
},
{
"@type": "ListItem",
"position": 3,
"name": "Strong Password Generator",
"item": "https://freedevtool.org/password-generator"
}
]
}
</script>
<script src="/ga4-events.js" defer></script>
</head>
<body>
<nav>
<a class="nav-logo" href="/" aria-label="FreeDevTool home"><svg class="logo-mark" width="22" height="22" viewBox="0 0 24 24" aria-hidden="true" fill="none"><rect x="1" y="1" width="22" height="22" rx="6" fill="currentColor" opacity=".12"/><path d="M9.5 8.5L6 12l3.5 3.5M14.5 8.5L18 12l-3.5 3.5" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>FreeDevTool</a>
<div class="nav-links">
<div class="nav-dropdown" id="tools-dropdown">
<a href="all-tools" onclick="event.preventDefault();this.parentElement.classList.toggle('open')" aria-haspopup="true">Tools <svg class="chev" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg></a>
<div class="nav-dropdown-menu">
<a href="encoding-tools">
<div class="dd-icon">b64</div>
<div class="dd-info"><div class="dd-name">Encoding & Conversion</div><div class="dd-count">11 tools · Base64, YAML, px→rem</div></div>
</a>
<a href="generation-tools">
<div class="dd-icon">{ }</div>
<div class="dd-info"><div class="dd-name">Generation & Formatting</div><div class="dd-count">16 tools · JSON, SQL, gradients</div></div>
</a>
<a href="security-tools">
<div class="dd-icon">#</div>
<div class="dd-info"><div class="dd-name">Security & Hashing</div><div class="dd-count">3 tools · JWT, MD5, SHA</div></div>
</a>
<a href="text-tools">
<div class="dd-icon">.*</div>
<div class="dd-info"><div class="dd-name">Code & Text Tools</div><div class="dd-count">9 tools · Regex, diff, tokens</div></div>
</a>
<a href="devops-tools">
<div class="dd-icon">JS</div>
<div class="dd-info"><div class="dd-name">Optimization & DevOps</div><div class="dd-count">7 tools · Minifiers, cURL, git</div></div>
</a>
<a href="network-tools">
<div class="dd-icon">IP</div>
<div class="dd-info"><div class="dd-name">Network & Time</div><div class="dd-count">4 tools · IP, DNS, timestamps</div></div>
</a>
<a href="seo-tools">
<div class="dd-icon">SEO</div>
<div class="dd-info"><div class="dd-name">SEO & Meta Tools</div><div class="dd-count">3 tools · OG, meta, slug</div></div>
</a>
<div class="nav-dropdown-divider"></div>
<a class="dd-all" href="all-tools">
<div class="dd-icon">All</div>
<div class="dd-info"><div class="dd-name">Browse all 50 tools</div><div class="dd-count">Searchable catalog & categories</div></div>
</a>
</div>
</div>
<a href="/guides">Guides</a>
<a href="about">About</a>
<a href="privacy">Privacy</a>
</div>
</nav>
<div id="copy-toast">Copied!</div>
<div class="wrapper">
<a class="tool-back" href="/" aria-label="Back to home">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 18l-6-6 6-6"/></svg>
Back
</a>
<div class="tool-header">
<div class="tool-badge">Security Tool</div>
<h1>Strong Password Generator</h1>
<p class="tool-description">
Cryptographically secure random passwords from <a href="https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues" rel="noopener" style="color:var(--accent)"><code>crypto.getRandomValues()</code></a> — same source browsers use for SSL keys, never <code>Math.random()</code>. Custom length, character classes, exclude ambiguous chars. Compliant with <a href="https://pages.nist.gov/800-63-3/sp800-63b.html" rel="noopener" style="color:var(--accent)">NIST 800-63B</a>. Nothing leaves your browser.
</p>
<div class="last-updated">Last updated: May 2026 · Written by <a href="/about">Anees Ur Rehman</a>, full-stack developer</div>
</div>
<div class="tool-card">
<div class="tool-card-header">
<div class="dot dot-red"></div><div class="dot dot-yellow"></div><div class="dot dot-green"></div>
<span class="tool-card-title">password-generator.tool</span>
</div>
<div class="tool-body">
<div class="password-display" id="password" onclick="copyPassword()" title="Click to copy">Generating...</div>
<div class="strength-bar"><div class="strength-fill" id="strength-fill"></div></div>
<div class="strength-label" id="strength-label"></div>
<div class="entropy-info" id="entropy-info"></div>
<div class="btn-row" style="justify-content:center;margin-top:14px">
<button class="btn btn-primary" onclick="generate()">Generate New</button>
<button class="btn btn-secondary" onclick="copyPassword()">Copy</button>
</div>
<div class="divider"></div>
<label>Password Length</label>
<div class="length-row">
<span style="font-size:12px;color:var(--text3)">4</span>
<input type="range" id="pw-length" min="4" max="128" value="20" oninput="generate()">
<span style="font-size:12px;color:var(--text3)">128</span>
<span class="length-val" id="length-val">20</span>
</div>
<div class="pw-options">
<div class="pw-option"><input type="checkbox" id="opt-upper" checked onchange="generate()"><label for="opt-upper">Uppercase (A-Z)</label></div>
<div class="pw-option"><input type="checkbox" id="opt-lower" checked onchange="generate()"><label for="opt-lower">Lowercase (a-z)</label></div>
<div class="pw-option"><input type="checkbox" id="opt-numbers" checked onchange="generate()"><label for="opt-numbers">Numbers (0-9)</label></div>
<div class="pw-option"><input type="checkbox" id="opt-symbols" checked onchange="generate()"><label for="opt-symbols">Symbols (!@#$%...)</label></div>
<div class="pw-option"><input type="checkbox" id="opt-no-ambiguous" onchange="generate()"><label for="opt-no-ambiguous">Exclude ambiguous (0OIl1)</label></div>
<div class="pw-option"><input type="checkbox" id="opt-no-similar" onchange="generate()"><label for="opt-no-similar">Exclude similar ({[}]|)</label></div>
</div>
<div class="divider"></div>
<label>Bulk Generate</label>
<div style="display:flex;gap:8px;align-items:center;margin-bottom:10px">
<input type="number" id="bulk-count" value="5" min="1" max="50" style="width:70px;padding:8px 10px">
<button class="btn btn-secondary" onclick="bulkGenerate()">Generate Bulk</button>
<button class="btn btn-ghost" onclick="copyBulk()">Copy All</button>
</div>
<div class="bulk-output" id="bulk-output" style="display:none"></div>
</div>
</div>
<!-- =============================================================
LONG-FORM ARTICLE — comprehensive guide for E-E-A-T + ranking.
============================================================= -->
<article>
<p class="aeo-lead" style="font-size:16px;line-height:1.7;color:var(--text);max-width:760px;margin:24px auto 18px;padding:0 4px">
<strong>A strong password</strong> in 2026 is at least 16 characters generated by a cryptographically secure random source (CSPRNG), with mixed case, numbers, and symbols, and unique per account. Entropy is what makes it strong — 80 bits is the modern minimum for high-value accounts. This <strong>free password generator</strong> uses the browser's Web Crypto API (the same primitives as a real password manager) with no signup and no upsell.
</p>
<section id="examples" style="max-width:760px;margin:24px auto 32px">
<h2 style="font-size:18px;margin-bottom:14px">Examples</h2>
<div style="background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:12px">
<strong style="display:block;color:var(--accent);font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px">Entropy by length§§8 chars random: ~52 bits — crackable in days§§12 chars random: ~78 bits — crackable in years on a high-end GPU§§16 chars random: ~104 bits — effectively unbrackable§§Modern minimum: 16 characters for high-value accounts.</strong>
</div>
<div style="background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:12px">
<strong style="display:block;color:var(--accent);font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px">Passphrase vs random§§4-word passphrase from a 7,776-word dictionary: ~50 bits (correct-horse-battery-staple style).§§12-char random with full charset: ~78 bits.§§Passphrases are easier to memorize; random is stronger per character.</strong>
</div>
<div style="background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:12px">
<strong style="display:block;color:var(--accent);font-family:var(--mono);font-size:11px;text-transform:uppercase;letter-spacing:1px;margin-bottom:6px">NIST 800-63B 2026§§Length matters more than complexity. NIST recommends 8+ char minimum, encourages 64+ char passphrases, and DEPRECATES mandatory complexity rules and forced rotation. Mixed case and symbols are nice but length is dominant.</strong>
</div>
</section>
<aside class="founder-note" style="max-width:760px;margin:24px auto 32px;padding:20px 24px;background:rgba(0,208,132,0.05);border-left:3px solid var(--accent);border-radius:6px;font-size:14px;line-height:1.7;color:var(--text2)">
<div style="font-family:var(--mono);font-size:11px;color:var(--accent);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:10px;font-weight:600">💡 Why I built this</div>
<p style="margin:0 0 12px">I built this because I needed to generate 50 temporary passwords for a customer onboarding sprint, and every "free" generator I tried was actually a landing page for a password manager. Bitwarden, 1Password, NordPass — they all offer generators on their sites, but the page exists primarily to convert you to their paid product. This generator just generates passwords. Uses the Web Crypto API (cryptographically random, identical primitives to a real password manager). No signup, no email gate, no upsell. Generate what you need, copy, close the tab. The tab forgets everything when you close it.</p>
<p style="margin:0;font-size:13px;color:var(--text3)">— <a href="/about" style="color:var(--accent);text-decoration:none">Anees Ur Rehman</a>, full-stack developer</p>
</aside>
<section class="article-section">
<h2>What makes a password actually strong?</h2>
<p>A "strong password" isn't about being hard to remember — it's about having enough <strong>entropy</strong> (randomness) that an attacker can't reasonably brute-force or guess it. Entropy is measured in bits: each bit doubles the number of possible passwords. A password with 60 bits of entropy has 2<sup>60</sup> ≈ 1.15 quintillion possible values; with current hardware, that takes ~6 years to crack on a single GPU. 80 bits is the modern minimum for high-value accounts; 100+ bits is overkill but cheap.</p>
<p>The two factors that determine entropy:</p>
<ul>
<li><strong>Length</strong> — each additional character multiplies the search space. Length matters more than complexity.</li>
<li><strong>Character classes</strong> — lowercase letters, uppercase, digits, symbols. Each class added expands the pool.</li>
</ul>
<p>Counterintuitively, <strong>a 16-character password from <code>[a-z]</code> alone (75 bits) is stronger than an 8-character password using all symbols (53 bits)</strong>. Length wins. This is why modern guidance (NIST, OWASP, every password manager's defaults) emphasize <strong>longer over more complex</strong>.</p>
<table class="ref-table">
<thead><tr><th>Length</th><th>Lowercase only</th><th>+ digits</th><th>+ uppercase</th><th>+ symbols (full ASCII)</th></tr></thead>
<tbody>
<tr><td>8 chars</td><td>~38 bits</td><td>~41 bits</td><td>~48 bits</td><td>~53 bits</td></tr>
<tr><td>12 chars</td><td>~57 bits</td><td>~62 bits</td><td>~71 bits</td><td>~79 bits</td></tr>
<tr><td>16 chars</td><td>~75 bits</td><td>~83 bits</td><td>~95 bits</td><td>~105 bits</td></tr>
<tr><td>20 chars</td><td>~94 bits</td><td>~103 bits</td><td>~119 bits</td><td>~131 bits</td></tr>
<tr><td>24 chars</td><td>~113 bits</td><td>~124 bits</td><td>~143 bits</td><td>~158 bits</td></tr>
</tbody>
</table>
<div class="article-aside">
<strong>Recommended minimums (2026):</strong> 16 chars + all 4 character classes for online accounts. 24+ chars for service-account passwords, root credentials, or backup keys. 32+ for symmetric encryption keys (AES-256, etc).
</div>
</section>
<section class="article-section">
<h2>How a secure password generator works</h2>
<p>The crucial difference between a "real" password generator and a fake one is the <strong>random number source</strong>. There are two:</p>
<h3>❌ <code>Math.random()</code> — DO NOT USE</h3>
<p>JavaScript's <code>Math.random()</code> is a pseudorandom number generator (PRNG) seeded from system state. It's fast and predictable enough that a determined attacker who knows when a password was generated can narrow down possibilities dramatically. The Mersenne Twister algorithm used internally is well-known and not designed for cryptographic use. Many "free password generators" online use <code>Math.random()</code> — their output is technically random-looking but not safe.</p>
<h3>✅ <code>crypto.getRandomValues()</code> — the right way</h3>
<p>Every modern browser exposes a cryptographically secure RNG via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API" rel="noopener">Web Crypto API</a>. The OS provides random bytes from a hardware entropy source (CPU jitter, mouse movement, network packet timing). The result is unpredictable enough for cryptographic keys, SSL handshakes, and password generation.</p>
<div class="lang-block">
<div class="lang-block-header">javascript</div>
<pre><code>// SAFE — cryptographically secure
function securePassword(length, chars) {
const arr = new Uint32Array(length);
crypto.getRandomValues(arr);
return Array.from(arr, n => chars[n % chars.length]).join('');
}
// UNSAFE — never use Math.random() for passwords
function unsafePassword(length, chars) {
return Array.from({length}, () =>
chars[Math.floor(Math.random() * chars.length)]
).join('');
}
// Use the secure version
const pw = securePassword(20, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*');
</code></pre>
</div>
<p>This password generator uses <code>crypto.getRandomValues()</code> exclusively. Every password you see is generated from cryptographically secure entropy.</p>
</section>
<section class="article-section">
<h2>Random passwords vs passphrases — diceware</h2>
<p>For passwords humans need to <em>type or remember</em> (master password for a password manager, full-disk encryption phrase, SSH key passphrase), random characters are painful. The alternative: <strong>diceware passphrases</strong> — multiple random words from a curated list, joined with hyphens or spaces.</p>
<div class="lang-block">
<div class="lang-block-header">examples</div>
<pre><code>Random 16-char password:
v5kJ$7@nQc9!xRf2
Diceware 6-word passphrase:
correct-horse-battery-staple-mango-pier
Both have ~78 bits of entropy. The passphrase is far easier to type
on a phone, easier to remember, and survives in the user's head.</code></pre>
</div>
<p>The classic <a href="https://www.eff.org/dice" rel="noopener">EFF wordlist</a> has 7,776 words. Each word adds <code>log₂(7776) ≈ 12.9 bits</code> of entropy. Six words = ~77 bits, eight words = ~103 bits. That's the math behind the famous <a href="https://xkcd.com/936/" rel="noopener">xkcd "correct horse battery staple"</a> comic.</p>
<p><strong>Use random passwords for:</strong> account passwords stored in a password manager (you never type them).<br>
<strong>Use passphrases for:</strong> master passwords, full-disk encryption, SSH keys, anything you'll type by hand.</p>
</section>
<section class="article-section">
<h2>What NIST 800-63B actually recommends (2026)</h2>
<p><a href="https://pages.nist.gov/800-63-3/sp800-63b.html" rel="noopener">NIST Special Publication 800-63B</a> is the authoritative US federal guidance on digital identity. The 2017 update (still current in 2026 with minor revisions) overturned decades of conventional password wisdom:</p>
<ul>
<li>✅ <strong>Use long passwords (≥ 8 chars minimum, prefer 14+).</strong></li>
<li>✅ <strong>Allow ALL printable ASCII characters AND Unicode.</strong> No artificial restrictions.</li>
<li>✅ <strong>Check passwords against breach databases</strong> (HaveIBeenPwned, etc.) and reject ones that have appeared.</li>
<li>✅ <strong>Use a password manager.</strong> NIST explicitly endorses this.</li>
<li>❌ <strong>DON'T require composition rules</strong> ("must include uppercase, number, symbol"). Users respond by adding <code>!1</code> at the end, which doesn't help.</li>
<li>❌ <strong>DON'T require periodic password changes</strong> unless there's evidence of compromise. Forced rotation leads to weaker passwords (people pick patterns like <code>Spring2026!</code>).</li>
<li>❌ <strong>DON'T use SMS for 2FA.</strong> SIM-swap attacks made this a known weak link. Use TOTP authenticator apps or hardware keys (YubiKey).</li>
<li>❌ <strong>DON'T allow security questions</strong> as a password reset mechanism. Most answers are searchable on social media.</li>
</ul>
</section>
<section class="article-section">
<h2>Common password mistakes — what actually leaks accounts</h2>
<ul>
<li><strong>Password reuse across sites</strong> — the #1 cause of compromised accounts. One breach exposes every reused account. Per Verizon's DBIR, credential stuffing (using leaked passwords against other sites) accounts for > 60% of web app breaches. <strong>Fix:</strong> unique password per site, stored in a password manager.</li>
<li><strong>"Strong" patterns that aren't.</strong> <code>P@ssw0rd123!</code>, <code>Spring2026!</code>, <code>WelcomeJune!</code> — all hit composition requirements but are in every password-cracking dictionary. <strong>Fix:</strong> let a generator produce truly random output.</li>
<li><strong>Rotating one base password</strong> by appending a counter or month. Attackers expect this.</li>
<li><strong>Using a memorable word + symbol substitution</strong> (<code>l3tm3in!</code>). These are in cracking dictionaries.</li>
<li><strong>Writing passwords in a Notes app</strong>, email, or shared spreadsheet. Use a real password manager.</li>
<li><strong>Reusing the master password</strong> for your password manager elsewhere. The master must be unique.</li>
<li><strong>SMS-based 2FA on important accounts.</strong> SIM-swap attacks are common. Use a TOTP app (Aegis, Authy, Bitwarden's built-in) or hardware key.</li>
<li><strong>Storing passwords as MD5 or plain SHA-256 server-side.</strong> Both are too fast — a leaked database is cracked in hours. Use <code>bcrypt</code>, <code>argon2id</code>, or <code>scrypt</code>.</li>
<li><strong>Pasting passwords into chat/Slack to share.</strong> Logs, sync indexes, backups all see the message. Use one-time secret sharing (1Password Send, Bitwarden Send, encrypted Wire message).</li>
</ul>
</section>
<section class="article-section">
<h2>Generating secure passwords in 8 languages</h2>
<h3>JavaScript / browser</h3>
<div class="lang-block">
<div class="lang-block-header">javascript</div>
<pre><code>function generatePassword(length = 20) {
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*';
const arr = new Uint32Array(length);
crypto.getRandomValues(arr);
return Array.from(arr, n => chars[n % chars.length]).join('');
}
generatePassword(24); // 'k7Y!qXm2$Pn9ZcVfRbT4@uA8'
</code></pre>
</div>
<h3>Node.js</h3>
<div class="lang-block">
<div class="lang-block-header">node.js</div>
<pre><code>import { randomBytes, randomInt } from 'node:crypto';
function generatePassword(length = 20) {
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*';
let pw = '';
for (let i = 0; i < length; i++) pw += chars[randomInt(chars.length)];
return pw;
}
</code></pre>
</div>
<h3>Python</h3>
<div class="lang-block">
<div class="lang-block-header">python</div>
<pre><code>import secrets
import string
def generate_password(length=20):
chars = string.ascii_letters + string.digits + string.punctuation
return ''.join(secrets.choice(chars) for _ in range(length))
# secrets module is the cryptographically secure choice (Python 3.6+)
# DO NOT use random.choice() for passwords
print(generate_password(24))
</code></pre>
</div>
<h3>PHP</h3>
<div class="lang-block">
<div class="lang-block-header">php</div>
<pre><code>function generatePassword(int $length = 20): string {
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*';
$max = strlen($chars) - 1;
$pw = '';
for ($i = 0; $i < $length; $i++) {
$pw .= $chars[random_int(0, $max)];
}
return $pw;
}
// random_int() is cryptographically secure (PHP 7+)
</code></pre>
</div>
<h3>Go</h3>
<div class="lang-block">
<div class="lang-block-header">go</int></div>
<pre><code>import (
"crypto/rand"
"math/big"
)
func GeneratePassword(length int) (string, error) {
chars := "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*"
pw := make([]byte, length)
for i := range pw {
n, err := rand.Int(rand.Reader, big.NewInt(int64(len(chars))))
if err != nil { return "", err }
pw[i] = chars[n.Int64()]
}
return string(pw), nil
}
</code></pre>
</div>
<h3>Rust</h3>
<div class="lang-block">
<div class="lang-block-header">rust</div>
<pre><code>use rand::Rng;
use rand::distributions::Alphanumeric;
fn generate_password(length: usize) -> String {
rand::thread_rng()
.sample_iter(&Alphanumeric)
.take(length)
.map(char::from)
.collect()
}
// thread_rng() is cryptographically secure (uses ChaCha20)
</code></pre>
</div>
<h3>Bash / shell</h3>
<div class="lang-block">
<div class="lang-block-header">bash</div>
<pre><code># Method 1 — /dev/urandom (POSIX)
LC_ALL=C tr -dc 'A-Za-z0-9!@#$%^&*' < /dev/urandom | head -c 20; echo
# Method 2 — openssl (more portable)
openssl rand -base64 24 | tr -d '/+=' | head -c 20; echo
# Diceware passphrase (4 random words from system dictionary)
shuf -n 4 /usr/share/dict/words | tr '\n' '-' | sed 's/-$/\n/'
</code></pre>
</div>
<h3>Java</h3>
<div class="lang-block">
<div class="lang-block-header">java</div>
<pre><code>import java.security.SecureRandom;
public static String generatePassword(int length) {
String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*";
SecureRandom rng = new SecureRandom();
StringBuilder sb = new StringBuilder(length);
for (int i = 0; i < length; i++) sb.append(chars.charAt(rng.nextInt(chars.length())));
return sb.toString();
}
// SecureRandom is the JCA-blessed cryptographic RNG
</code></pre>
</div>
</section>
<section class="article-section">
<h2>What to do with passwords once generated</h2>
<h3>1. Store in a password manager (mandatory in 2026)</h3>
<p>You will not remember 200 unique 20-character passwords. A password manager handles generation, storage, autofill, and breach monitoring. Top choices in 2026:</p>
<ul>
<li><strong>Bitwarden</strong> — open-source, free tier, self-hostable. Industry standard.</li>
<li><strong>1Password</strong> — best UX, family/team plans, Passkeys-first.</li>
<li><strong>KeePassXC</strong> — fully offline, open-source, plain-file storage. Best for security-paranoid users.</li>
<li><strong>iCloud Keychain / Google Password Manager</strong> — built-in, free, syncs to your devices. Convenient but ecosystem-locked.</li>
</ul>
<h3>2. Pair with multi-factor authentication (MFA)</h3>
<p>A strong password isn't enough alone. Add MFA on every account that supports it. The hierarchy of MFA strength:</p>
<ol>
<li><strong>Hardware keys (FIDO2/WebAuthn)</strong> — YubiKey, Google Titan. Phishing-proof. The gold standard.</li>
<li><strong>Passkeys</strong> — phishing-proof, biometric-gated. Replace passwords entirely on supported sites.</li>
<li><strong>TOTP authenticator apps</strong> — Aegis, Authy, Bitwarden, 1Password. Time-based codes, offline-capable.</li>
<li><strong>Push-based MFA</strong> — Duo, Microsoft Authenticator. Convenient but vulnerable to "MFA fatigue" attacks.</li>
<li><strong>SMS</strong> — better than nothing, but vulnerable to SIM-swap attacks. Use only as a last resort.</li>
</ol>
<h3>3. Check breach databases</h3>
<p>After generating, verify the password isn't in known breach corpora. <a href="https://haveibeenpwned.com/Passwords" rel="noopener">HaveIBeenPwned's password API</a> uses k-anonymity (only the first 5 chars of the SHA-1 hash leave your machine), making it safe to query. Most password managers (Bitwarden, 1Password) integrate this check automatically. To compute the SHA-1 prefix yourself for a manual lookup, drop the password into the <a href="/hash-generator">hash generator</a> — it stays client-side and the first 5 hex chars are all you need.</p>
<h3>16-character random password — how long does it take to crack in 2026?</h3>
<p>A 16-character password drawn from the full ASCII printable set (~95 characters) has roughly <strong>105 bits of entropy</strong>. At 2026 GPU rates of ~150 billion SHA-256 hashes per second per RTX 5090, brute-force takes on the order of <strong>10²² years</strong> — vastly longer than the age of the universe. The same length restricted to lowercase letters only (26 chars) drops to ~75 bits, still uncrackable for any realistic adversary. Length is the dominant variable; <em>character-class rules add far less entropy than people think</em>. NIST 800-63B explicitly drops the old "must contain uppercase + symbol" requirements for this reason. To match a generated password against an intentionally slow KDF before storage, see why <strong>bcrypt</strong> and <strong>Argon2id</strong> replace SHA-256 in the <a href="/hash-generator">hash generator guide</a>.</p>
<h3>Generating service tokens, AWS root credentials, and SSH passphrases</h3>
<p>Different secrets need different lengths. Use this matrix: human-typeable account passwords <strong>16–20 chars</strong>; cloud root and SSH passphrases <strong>24–32 chars</strong> (usually pasted from a manager, not typed); API keys, OAuth client secrets, and Stripe-style tokens <strong>32–64 chars</strong> (machine-only). For machine-only secrets, prefer the <a href="/uuid-generator">UUID v4 generator</a> when you need a guaranteed-unique opaque identifier, and the <a href="/jwt-generator">JWT generator</a> when the token must carry signed claims (user id, expiry, scope). Generated passwords go in the secret store; never in environment files committed to Git.</p>
<h3>Password manager import — Bitwarden, 1Password, KeePassXC CSV format</h3>
<p>To bulk-load generated passwords into a password manager, save the batch output above as a CSV with the columns each manager expects:</p>
<ul>
<li><strong>Bitwarden:</strong> <code>folder, favorite, type, name, notes, fields, login_uri, login_username, login_password, login_totp</code></li>
<li><strong>1Password:</strong> <code>Title, Website, Username, Password, OTPAuth, Notes</code> (1Password 8 also accepts 1PUX export format)</li>
<li><strong>KeePassXC:</strong> <code>Group, Title, Username, Password, URL, Notes</code></li>
</ul>
<p>Generate a batch of 50 passwords with the count selector above, paste into a spreadsheet, fill in the Title and URL columns, then export as CSV and import. The CSV files contain plaintext passwords — delete them after import and empty the trash. Reformat noisy CSV exports with the <a href="/json-to-csv">JSON to CSV converter</a> if the manager outputs JSON instead.</p>
</section>
<section class="article-section">
<h2>Best free password generator for 2026 — what to look for</h2>
<p>"Free" doesn't mean equal. The differences that matter — and the ones that don't — when picking a generator in 2026:</p>
<table class="ref-table">
<thead>
<tr><th>Generator</th><th>Cost</th><th>Open source</th><th>Browser-only</th><th>RNG source</th><th>Logs your input</th></tr>
</thead>
<tbody>
<tr><td><strong>This tool (FreeDevTool)</strong></td><td>Free</td><td>Static HTML, inspectable</td><td><span class="yes">Yes</span></td><td><code>crypto.getRandomValues()</code></td><td><span class="no">No</span> — generation never hits a server</td></tr>
<tr><td><strong>Bitwarden generator</strong></td><td>Free tier</td><td><span class="yes">Yes</span> (GPL-3.0)</td><td>Web + apps</td><td><code>crypto.getRandomValues()</code></td><td>No on web vault; opt-in telemetry</td></tr>
<tr><td><strong>1Password generator</strong></td><td>Paid only</td><td><span class="no">No</span></td><td>App-bound</td><td>OS CSPRNG</td><td>No — but requires account</td></tr>
<tr><td><strong>KeePassXC generator</strong></td><td>Free</td><td><span class="yes">Yes</span> (GPL-3.0)</td><td>Desktop only</td><td>OS CSPRNG (<code>/dev/urandom</code>)</td><td><span class="no">No</span> — fully offline</td></tr>
<tr><td><strong>LastPass generator</strong></td><td>Free + paid</td><td><span class="no">No</span></td><td>Web + apps</td><td>Not publicly documented post-2022</td><td>Disclosed breaches in 2022 affected encrypted vaults</td></tr>
<tr><td><strong>Random "online password generators" (most)</strong></td><td>Free + ads</td><td><span class="no">No</span></td><td>Server-rendered</td><td>Often unspecified — sometimes <code>Math.random()</code></td><td>Often yes (analytics, ad networks)</td></tr>
</tbody>
</table>
<p>The two columns to actually scrutinize are <strong>RNG source</strong> and <strong>logs your input</strong>. A generator that uses <code>Math.random()</code> instead of a CSPRNG is broken — outputs can be predicted from a few samples. A generator that POSTs your generated password to its own backend (for "show your password strength!" gimmicks) has logged it before you ever see it. Open the browser DevTools Network tab while generating; if anything goes out, walk away.</p>
<h3>How do I generate a strong password without a website logging it?</h3>
<p>Three signals tell you a generator is genuinely client-side: <strong>(1)</strong> opening DevTools → Network shows zero requests when you click "Generate"; <strong>(2)</strong> the page works with your wifi turned off (cached static HTML still generates); <strong>(3)</strong> the source code references <code>crypto.getRandomValues()</code> or <code>SecureRandom</code> in plain view, not behind an API call. The generator on this page passes all three — view-source any time and search for "<code>crypto.getRandomValues</code>". If you want zero trust at all, run the page once with the network blocked, save the page locally (<kbd>Ctrl/Cmd+S</kbd> → "Webpage, complete"), and open it from your filesystem next time. The randomness is just as strong because <code>crypto.getRandomValues()</code> uses your OS entropy pool, not the network.</p>
<h3>What's the best password generator that works offline?</h3>
<p>For full offline workflow, three options each suited to a different threat model:</p>
<ul>
<li><strong>This page, saved locally.</strong> Save the HTML once, open from disk, generate as many passwords as you need. Zero network. Fine for most users.</li>
<li><strong>KeePassXC desktop.</strong> Native app, no browser, generator and vault in one binary. Best when you also want offline credential storage.</li>
<li><strong>Command line:</strong> <code>openssl rand -base64 24</code> or <code>head -c 32 /dev/urandom | base64</code> on Linux/macOS, <code>[Convert]::ToBase64String((1..24 | %{Get-Random -Min 0 -Max 256}))</code> on PowerShell. Reads from the OS entropy pool directly. Useful for scripting password rotations across many servers.</li>
</ul>
<p>Don't roll your own with <code>Math.random</code>, language-builtin <code>random</code> modules (Python's <code>random</code> is not cryptographic — use <code>secrets</code>), or shell <code>$RANDOM</code>. All three are predictable.</p>
<h3>LastPass password generator alternative — 4 reasons users switched after the 2022 breach</h3>
<p>Following the August 2022 LastPass disclosure (later expanded in December 2022 to confirm encrypted vault data was exfiltrated), traffic to alternative generators and managers spiked across every analytics tracker. The four reasons users gave for switching:</p>
<ol>
<li><strong>Closed source.</strong> LastPass's encryption and PBKDF2 iteration counts couldn't be independently audited. Open-source alternatives (Bitwarden, KeePassXC) ship code that researchers verify line-by-line.</li>
<li><strong>Insufficient PBKDF2 iterations on legacy vaults.</strong> Pre-2018 LastPass vaults shipped with 5,000 PBKDF2 iterations — far below the OWASP-recommended 600,000 for SHA-256 in 2023. After the breach, those vaults were brute-forceable on commodity GPUs.</li>
<li><strong>Server-side dependency for generation.</strong> Even the "client-side" generator triggered analytics events. A page that pings a server every time you generate has, at minimum, told the server you used the feature.</li>
<li><strong>Free tier restrictions.</strong> The August 2021 free-tier change (one device class only) had already pushed users toward Bitwarden's truly-free tier. The breach was the second push.</li>
</ol>
<p>This page is the simplest possible alternative for the <em>generator</em> portion: open-source-style static HTML, browser-only, no account, no logging. For full vault management with sync, Bitwarden's free tier is the standard recommendation in 2026. Pair generation here with the <a href="/hash-generator">hash generator</a> (when you need to verify Argon2id/bcrypt parameters) and the <a href="/uuid-generator">UUID generator</a> (when the secret needs to be a guaranteed-unique identifier rather than a typeable password).</p>
</section>
<section class="article-section">
<h2>Password generator best practices for 2026</h2>
<ul>
<li><strong>Use 16 chars minimum, 20+ for high-value accounts.</strong> Length matters more than complexity.</li>
<li><strong>Always include all four character classes</strong> unless the target system rejects them. Disabling symbols halves entropy per char.</li>
<li><strong>Never use <code>Math.random()</code>.</strong> If a tool doesn't explicitly mention <code>crypto.getRandomValues()</code>, <code>SecureRandom</code>, <code>secrets.choice</code>, or <code>/dev/urandom</code>, walk away.</li>
<li><strong>Generate fresh passwords for every account.</strong> Reuse is the single biggest preventable security risk.</li>
<li><strong>Use a real password manager,</strong> not your browser's basic password store, not a spreadsheet, not a Notes file.</li>
<li><strong>Enable MFA wherever available,</strong> with hardware keys or TOTP — not SMS.</li>
<li><strong>For master passwords, use diceware</strong> — a memorable 6-word passphrase has ~77 bits of entropy and you can actually type it on a phone.</li>
<li><strong>Don't roll your own password hash on the server.</strong> Use <code>bcrypt</code>, <code>argon2id</code>, or <code>scrypt</code>. SHA-256 alone is too fast for password storage.</li>
<li><strong>Pin password length, not "complexity."</strong> Composition rules push users toward predictable patterns. NIST 800-63B explicitly discourages them.</li>
<li><strong>Don't paste passwords in URLs, chat, or logs.</strong> They get archived everywhere. Use one-time-secret sharing tools.</li>
</ul>
</section>
</article>
<!-- How to use + mistakes -->
<section class="use-cases">
<h2>How to use the password generator</h2>
<p>Generate cryptographically random passwords using <code>crypto.getRandomValues()</code> — the same source browsers use for SSL, never <code>Math.random()</code>. Generation runs entirely in your browser; passwords never leave the page or hit any logs.</p>
<ul class="use-case-list">
<li><strong>1.</strong> Pick a length. 16 chars minimum for accounts you care about; 24+ for high-value secrets, service tokens, root credentials. Each extra char doubles the search space.</li>
<li><strong>2.</strong> Toggle the character classes you need: lowercase, uppercase, digits, symbols. Disabling symbols halves entropy per char — only do it if the target system rejects them.</li>
<li><strong>3.</strong> Optionally exclude visually similar characters (<code>O/0</code>, <code>l/1/I</code>) for passwords meant to be typed manually.</li>
<li><strong>4.</strong> Click "Generate" — or set a count to produce a batch (10–50) for password-rotation rollouts.</li>
<li><strong>5.</strong> Copy with one click. The clipboard is auto-cleared after 30 seconds in modern browsers; transfer immediately to a password manager.</li>
</ul>
<h3>Common mistakes to avoid</h3>
<ul class="mistakes-list">
<li><strong>Reusing passwords across sites.</strong> One breach exposes every account. Use a password manager (1Password, Bitwarden, KeePassXC) — not a spreadsheet, not your browser without a master password.</li>
<li><strong>Generating "memorable" passwords with predictable patterns.</strong> A 16-char password from <code>[a-z]+digit</code> is far weaker than full alphanumeric+symbols. Always include all four classes.</li>
<li><strong>Storing passwords as MD5 or plain SHA-256 server-side.</strong> Both are too fast — attackers crack billions/sec on a GPU. Use <code>bcrypt</code>, <code>argon2id</code>, or <code>scrypt</code> with a slow factor.</li>
<li><strong>Using diceware passphrases without enough words.</strong> 4 words from a 7776-word list is ~52 bits of entropy — borderline. Use 6+ words for high-value accounts.</li>
<li><strong>Pasting passwords into chat to share.</strong> They get logged in DM history, backups, sync indexes. Use a one-time secret service (1Password share, Bitwarden Send) or a TOTP-based handoff.</li>
<li><strong>Trusting in-browser password generators that send to a server.</strong> Inspect the network tab. A real generator (like this one) makes zero requests when you click Generate.</li>
</ul>
</section>
<section class="faq-section">
<h2>Frequently Asked Questions</h2>
<div class="faq-item open">
<div class="faq-q" onclick="toggleFaq(this)">How do I generate a strong password?<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg></div>
<div class="faq-a">Use a password generator that creates random strings using a <strong>cryptographically secure random number generator (CSPRNG)</strong>. A strong password in 2026 should be at least <strong>16 characters</strong> long, include uppercase, lowercase, numbers, and symbols, and be <strong>unique for every account</strong>. Never use dictionary words, personal information, dates, or keyboard patterns (qwerty, 123456). This tool uses the Web Crypto API for true randomness.</div>
</div>
<div class="faq-item">
<div class="faq-q" onclick="toggleFaq(this)">Is it safe to use an online password generator?<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg></div>
<div class="faq-a">It depends on the tool. This password generator runs <strong>100% in your browser</strong> using <code>crypto.getRandomValues()</code> — no password is ever sent to a server, stored, or logged. The tool works fully offline. Avoid generators that submit passwords to backend APIs, as they could be logged or intercepted. Always verify a tool is client-side before trusting it with security-critical generation.</div>
</div>
<div class="faq-item">
<div class="faq-q" onclick="toggleFaq(this)">How long should a password be in 2026?<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg></div>
<div class="faq-a">NIST SP 800-63B recommends a minimum of 8 characters, but security experts recommend <strong>16+ characters</strong> in 2026. Each additional character exponentially increases brute-force difficulty. A 16-character password with mixed case, numbers, and symbols has approximately 10<sup>31</sup> possible combinations — requiring billions of years to crack with current hardware. For critical accounts, use 20+ characters.</div>
</div>
<div class="faq-item">
<div class="faq-q" onclick="toggleFaq(this)">What is a passphrase and is it more secure?<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg></div>
<div class="faq-a">A passphrase is a sequence of random words like "correct horse battery staple." Passphrases are <strong>easier to memorize</strong> than random character strings and can be very secure when using 4+ truly random words from a large wordlist. A 4-word passphrase from a 7,776-word dictionary (Diceware) has ~50 bits of entropy. For maximum security, use a <strong>random password stored in a password manager</strong> — you only need to remember one master password.</div>
</div>
<div class="faq-item">
<div class="faq-q" onclick="toggleFaq(this)">What is password entropy?<svg class="chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg></div>
<div class="faq-a"><strong>Entropy</strong> measures the randomness (unpredictability) of a password in bits. It's calculated as <code>log2(charset_size^length)</code>. A password with 80+ bits of entropy is considered very strong. For example: a 20-character password using 94 printable ASCII characters has ~131 bits of entropy. Higher entropy = more possible combinations = harder to crack by brute force.</div>
</div>
</section>
<section class="related-section">
<h2>Related Tools</h2>
<div class="related-grid">
<a class="related-card" href="hash-generator"><div class="related-icon">#</div><div class="related-card-info"><div class="related-card-name">Hash Generator</div><div class="related-card-desc">Generate MD5, SHA-256 hashes</div></div></a>
<a class="related-card" href="uuid-generator"><div class="related-icon">uid</div><div class="related-card-info"><div class="related-card-name">UUID Generator</div><div class="related-card-desc">Generate v4 UUIDs in bulk</div></div></a>
<a class="related-card" href="base64-encoder"><div class="related-icon">b64</div><div class="related-card-info"><div class="related-card-name">Base64 Encoder</div><div class="related-card-desc">Encode and decode Base64</div></div></a>
</div>
</section>
<section class="all-tools-section" aria-label="Browse all FreeDevTool developer tools">
<h2>Browse all 50 free developer tools</h2>
<p class="atc-sub">All tools run in your browser, no signup required, nothing sent to a server.</p>
<div class="all-tools-grid">
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">b64</div>
<div class="atc-cat-title"><h3>Encoding & Conversion</h3><span class="atc-cat-count">11 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/base64-encoder">Base64 Encoder / Decoder</a></li>
<li><a href="/base64-image">Image to Base64</a></li>
<li><a href="/byte-converter">Byte Converter (KB / MB / GB)</a></li>
<li><a href="/case-converter">Case Converter</a></li>
<li><a href="/hex-to-rgb">Hex to RGB / HSL</a></li>
<li><a href="/html-entity">HTML Entity Encoder</a></li>
<li><a href="/json-to-csv">JSON to CSV Converter</a></li>
<li><a href="/px-to-rem">PX to REM Converter</a></li>
<li><a href="/string-escape">String Escape / Unescape</a></li>
<li><a href="/url-encoder">URL Encoder / Decoder</a></li>
<li><a href="/yaml-to-json">YAML to JSON Converter</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">{ }</div>
<div class="atc-cat-title"><h3>Formatting & Generators</h3><span class="atc-cat-count">13 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/color-name">Color Name from Hex</a></li>
<li><a href="/color-picker">Color Palette Picker</a></li>
<li><a href="/css-box-shadow">CSS Box Shadow</a></li>
<li><a href="/css-gradient">CSS Gradient Generator</a></li>
<li><a href="/json-formatter">JSON Formatter / Validator</a></li>
<li><a href="/lorem-ipsum">Lorem Ipsum Generator</a></li>
<li><a href="/markdown-preview">Markdown Preview</a></li>
<li><a href="/password-generator">Password Generator</a></li>
<li><a href="/qr-generator">QR Code Generator</a></li>
<li><a href="/sql-formatter">SQL Formatter</a></li>
<li><a href="/uuid-generator">UUID Generator</a></li>
<li><a href="/word-to-markdown">Word to Markdown</a></li>
<li><a href="/xml-formatter">XML Formatter</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">JS</div>
<div class="atc-cat-title"><h3>Minifiers & DevOps</h3><span class="atc-cat-count">6 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/chmod-calculator">chmod Calculator</a></li>
<li><a href="/cron-parser">Cron Expression Parser</a></li>
<li><a href="/css-minifier">CSS Minifier</a></li>
<li><a href="/html-minifier">HTML Minifier</a></li>
<li><a href="/js-minifier">JavaScript Minifier</a></li>
<li><a href="/http-status">HTTP Status Codes</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">#</div>
<div class="atc-cat-title"><h3>Security & Hashing</h3><span class="atc-cat-count">3 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/hash-generator">Hash Generator (MD5, SHA)</a></li>
<li><a href="/jwt-decoder">JWT Decoder</a></li>
<li><a href="/jwt-generator">JWT Generator</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">.*</div>
<div class="atc-cat-title"><h3>Code & Text</h3><span class="atc-cat-count">8 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/ai-token-counter">AI Token Counter</a></li>
<li><a href="/char-counter">Character & Word Counter</a></li>
<li><a href="/git-cheatsheet">Git Commands Cheatsheet</a></li>
<li><a href="/number-base">Number Base Converter</a></li>
<li><a href="/regex-explainer">Regex Explainer</a></li>
<li><a href="/regex-tester">Regex Tester</a></li>
<li><a href="/text-diff">Text Diff Checker</a></li>
<li><a href="/wcag-contrast">WCAG Contrast Checker</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">IP</div>
<div class="atc-cat-title"><h3>Network & APIs</h3><span class="atc-cat-count">3 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/dns-lookup">DNS Lookup</a></li>
<li><a href="/http-request-builder">HTTP Request Builder</a></li>
<li><a href="/ip-lookup">IP Address Lookup</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">⏱</div>
<div class="atc-cat-title"><h3>Time & Dates</h3><span class="atc-cat-count">3 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/relative-time">Relative Time Calculator</a></li>
<li><a href="/timestamp-diff">Timestamp Diff</a></li>
<li><a href="/unix-timestamp-converter">Unix Timestamp Converter</a></li>
</ul>
</div>
<div class="atc-cat">
<div class="atc-cat-head">
<div class="atc-cat-icon">SEO</div>
<div class="atc-cat-title"><h3>SEO & Meta</h3><span class="atc-cat-count">3 tools</span></div>
</div>
<ul class="atc-list">
<li><a href="/meta-tag-generator">Meta Tag Generator</a></li>
<li><a href="/og-preview">Open Graph Preview</a></li>
<li><a href="/slug-generator">URL Slug Generator</a></li>
</ul>
</div>
</div>
</section>
</div>
<footer>
<div>© 2026 FreeDevTool — Strong Password Generator</div>
<div class="footer-links"><a href="/all-tools">All Tools</a><a href="/about">About</a><a href="/privacy">Privacy Policy</a><a href="/terms">Terms of Use</a></div>
</footer>
<script>
const UPPER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
const LOWER = 'abcdefghijklmnopqrstuvwxyz';
const NUMBERS = '0123456789';
const SYMBOLS = '!@#$%^&*()_+-=[]{}|;:,.<>?/~`';
const AMBIGUOUS = '0OIl1';
const SIMILAR = '{}[]()|/\\\'"`';
function getCharset() {
let chars = '';
if (document.getElementById('opt-upper').checked) chars += UPPER;
if (document.getElementById('opt-lower').checked) chars += LOWER;
if (document.getElementById('opt-numbers').checked) chars += NUMBERS;
if (document.getElementById('opt-symbols').checked) chars += SYMBOLS;
if (!chars) chars = LOWER;
if (document.getElementById('opt-no-ambiguous').checked) chars = [...chars].filter(c => !AMBIGUOUS.includes(c)).join('');
if (document.getElementById('opt-no-similar').checked) chars = [...chars].filter(c => !SIMILAR.includes(c)).join('');
return chars;
}
function genPassword(len, charset) {
const arr = new Uint32Array(len);
crypto.getRandomValues(arr);
return Array.from(arr, v => charset[v % charset.length]).join('');
}
function calcEntropy(len, charsetSize) {
return Math.floor(len * Math.log2(charsetSize));
}
function getStrength(entropy) {
if (entropy < 28) return { label: 'Very Weak', color: 'var(--red)', pct: 15 };
if (entropy < 36) return { label: 'Weak', color: '#ff8c42', pct: 30 };
if (entropy < 60) return { label: 'Fair', color: 'var(--yellow)', pct: 50 };
if (entropy < 80) return { label: 'Strong', color: '#51cf66', pct: 75 };
return { label: 'Very Strong', color: 'var(--accent)', pct: 100 };
}
function generate() {
const len = parseInt(document.getElementById('pw-length').value);
document.getElementById('length-val').textContent = len;
const charset = getCharset();
const pw = genPassword(len, charset);
document.getElementById('password').textContent = pw;
const entropy = calcEntropy(len, charset.length);
const str = getStrength(entropy);
document.getElementById('strength-fill').style.width = str.pct + '%';
document.getElementById('strength-fill').style.background = str.color;
document.getElementById('strength-label').textContent = str.label;
document.getElementById('strength-label').style.color = str.color;
document.getElementById('entropy-info').textContent = entropy + ' bits of entropy · ' + charset.length + ' possible characters';
}
function copyPassword() {
const pw = document.getElementById('password').textContent;
if (pw && pw !== 'Generating...') { navigator.clipboard.writeText(pw); showToast(); }
}
function bulkGenerate() {
const count = Math.max(1, Math.min(50, parseInt(document.getElementById('bulk-count').value) || 5));
const len = parseInt(document.getElementById('pw-length').value);
const charset = getCharset();
const passwords = [];
for (let i = 0; i < count; i++) passwords.push(genPassword(len, charset));
document.getElementById('bulk-output').textContent = passwords.join('\n');
document.getElementById('bulk-output').style.display = '';
}
function copyBulk() {
const t = document.getElementById('bulk-output').textContent;
if (t) { navigator.clipboard.writeText(t); showToast(); }
}
function showToast() { const t=document.getElementById('copy-toast');t.classList.add('show');setTimeout(()=>t.classList.remove('show'),1800); }
function toggleFaq(el) { el.parentElement.classList.toggle('open'); }
generate();
</script>
<script>document.addEventListener('click',e=>{const dd=document.getElementById('tools-dropdown');if(dd&&!dd.contains(e.target))dd.classList.remove('open')});</script>
</body>
</html>