Skip to content

general guide

Random Generators: How Much Entropy a Password Needs, Which QR Error Correction to Pick, and When Random Is the Wrong Tool

A generator looks like the simplest kind of tool: press a button, receive a thing. The decisions that actually matter are all made before the button is pressed, and none of them are visible in the output. How long does a password need to be — not 'strong', which is a feeling, but long enough to survive a specific attack at a specific rate? Which of the four QR error-correction levels should a code carry when a logo will cover a fifth of it, or when it will be printed on a poster read from two metres away? Is a random draw the right mechanism for a raffle at all, given that the people entering want to be able to check it afterwards? And when a tool hands you a hundred realistic names for test data, what is it about those names that will break your interface? This guide answers those questions with numbers rather than adjectives, covers all seven generators on the site, and is explicit about the places where a generated result still needs a human decision before anyone relies on it.

Updated December 2, 2026 · 16 questions answered

Key takeaways

  • Password strength is a number of bits, not a verdict. Each character adds log2 of the alphabet size: about 4.7 bits for lowercase only, 5.95 for letters and digits, 6.55 for the full printable ASCII set.
  • Length beats symbol variety. Twelve characters from a 94-symbol alphabet is roughly 79 bits; eight characters with every symbol class enabled is only about 52 bits, which a fast-hash GPU attack can exhaust in hours.
  • A five-word diceware passphrase carries about 65 bits and a six-word one about 78, because each word is drawn from a fixed list of 7,776 and contributes 12.9 bits.
  • QR error correction recovers approximately 7 percent of codewords at L, 15 at M, 25 at Q and 30 at H. Higher correction means less payload at the same version, so a logo overlay is a capacity decision as well as a durability one.
  • Unpredictable and auditable are different properties. Cryptographic randomness is right for a secret and wrong for a prize draw people need to verify, which wants a published seed and a reproducible method instead.
  • Generated names, handles and business names are candidates, not clearance. A name generator cannot tell you whether a trademark or a domain is already taken, and mock names can coincide with real people.

Entropy Is a Number, Not a Feeling

'Strong' is the word every password meter uses and the word that tells you nothing. The measurable quantity is entropy in bits: the base-2 logarithm of the number of equally likely passwords the generator could have produced. A password drawn uniformly from an alphabet of size A and length L carries L × log2(A) bits. That is the whole formula, and it makes the trade-offs arithmetic instead of opinion. Lowercase letters alone give log2(26) ≈ 4.70 bits per character; adding uppercase takes the alphabet to 52 and 5.70 bits; adding digits takes it to 62 and 5.95 bits; the full printable ASCII set of 94 characters gives 6.55 bits. The password generator reports this number rather than a colour, because the number is the part you can act on.

Notice what the formula says about the advice people are usually given. Enabling every character class buys you 6.55 bits per character instead of 4.70 — a gain of about 40 percent per character. Adding four more characters at the smaller alphabet buys 4 × 4.70 ≈ 18.8 bits, which is a factor of roughly 450,000 in search space. Length wins, and it wins by orders of magnitude, which is why a long lowercase passphrase can be stronger than a short 'complex' password that is harder to type and harder to remember. The random word generator is the raw material for exactly that trade.

Bits only mean something against an attack rate, so here is one stated plainly. Against a fast, unsalted hash such as NTLM, a single high-end GPU already tests on the order of tens of billions of candidates per second; a rig tests more. At 100 billion guesses per second, exhausting 52 bits takes about twelve hours, 64 bits about six years, and 78 bits about a hundred thousand years. Those figures are for the worst case — an attacker who has your hash and no rate limit. A properly salted, deliberately slow hash such as bcrypt or Argon2 cuts the rate by several orders of magnitude and moves every one of those numbers in your favour. The practical reading: 52 bits is not enough for anything you care about, 64 bits is a floor, and somewhere in the high 70s is comfortable for a password you will keep for years.

Two follow-ups turn that arithmetic into decisions. First, hashing does not add entropy: a hash function is deterministic, so an attacker who knows your scheme can enumerate the same candidate list and hash each one. Feeding a 52-bit input through SHA-256 gives you a 256-bit digest that is still only 52 bits strong, which is why the hash functions guide separates what a digest is good for — integrity, fingerprints, key derivation — from what it cannot do, which is manufacture unpredictability that was never in the input. Second, not every random identifier is a password, and the budgets differ by design: the UUID versions guide works through the 122 random bits in a version 4 UUID against the 74 in a time-ordered version 7, and explains why a version 1 UUID leaks the machine it was made on. Pick the version for the job, then check its bit budget against the threat rather than assuming all UUIDs are equally unguessable.

Passphrases: The Same Bits, Remembered Differently

A diceware passphrase replaces characters with words drawn from a fixed public list of 7,776 entries — 6 to the fifth power, originally chosen so five dice rolls select one word. Each word therefore contributes log2(7776) ≈ 12.92 bits. Five words give about 64.6 bits, six give 77.5, seven give 90.5. Compare that with the character maths above: six random words are roughly equivalent to twelve random printable-ASCII characters, and they are far easier to remember, type and read aloud. That equivalence is the entire argument for passphrases, and it is why the password generator offers a passphrase mode alongside random strings.

Two conditions make the number honest. The list must be fixed and known, so the entropy comes from the selection and not from secrecy about the vocabulary — a private word list you invented yourself has unknown size and usually far less entropy than it feels like. And the words must be chosen independently and uniformly, not picked by a human trying to make a memorable sentence, because human choice collapses the space dramatically. 'correct horse battery staple' is famous precisely as an illustration of the format, not as a password anyone should use; a phrase that has appeared in a comic is in every cracking dictionary.

Separators are a small bonus and a real usability decision. A space, hyphen or dot between words adds a little entropy if the choice is itself random, but the main effect is that the phrase survives being typed into a field that strips or normalises whitespace. Some legacy systems reject spaces outright, which is a reason to prefer a hyphen. What does not add entropy is capitalising the first letter or appending a digit to satisfy a composition rule — those are predictable transformations, and an attacker models them as such rather than counting them as random choices.

QR Error Correction: Four Levels, Four Different Jobs

A QR code stores redundant codewords so it can be read when part of it is damaged, dirty or covered. The four levels recover approximately 7 percent of codewords at L, 15 percent at M, 25 percent at Q and 30 percent at H. The trade is direct: at a fixed version, higher correction means fewer bytes of payload, because the redundancy occupies space that would otherwise carry data. The QR code generator reports the version and module count it settled on, which is how you see that trade happening rather than guessing at it.

Choose by what will physically happen to the code. L is for a clean screen-to-screen scan where nothing will ever obscure it and you want maximum payload in the smallest space. M is the sensible default for general print. Q is for industrial or outdoor use where abrasion and dirt are expected. H is for the case people most often get wrong: a logo placed in the centre. A centred logo covering up to about a quarter of the code area is generally survivable at H, because the correction is distributed across the whole symbol rather than concentrated in the middle — but the quiet zone, the four-module blank margin around the code, must stay clear regardless of level. A logo that bleeds into the quiet zone breaks detection before correction ever gets a chance to help.

Size and contrast decide whether a code scans at all, and neither is fixed by the correction level. The common rule of thumb is that the code's width should be about a tenth of the intended scanning distance, so a poster read from two metres wants a code around twenty centimetres across, not two. Each module needs to be large enough for the camera to resolve — at version 40 the symbol is 177 modules per side, so a small printed high-version code can have modules below a tenth of a millimetre and simply fail. Inverted codes, light modules on a dark background, are a frequent cause of 'it works on my phone but not theirs': many decoders assume dark-on-light. Keep strong contrast, keep the quiet zone, and prefer SVG over PNG for anything that will be printed or scaled, since a raster export upscaled past its resolution produces the blurred module edges that scanners read as damage.

Unpredictable Is Not the Same as Fair

This is the distinction almost nobody makes before running a draw, and it is the one that causes arguments afterwards. Cryptographic randomness is designed to be unpredictable: nobody, including the person running the generator, can know or reconstruct the next value. That is exactly what a password or a session token needs. It is exactly what a raffle does not need, because the people entering want to be able to check that the draw was not arranged — and an unpredictable, unreproducible number gives them nothing to check.

For a draw that has to be defensible, the properties you want are a published method and a published seed, so that anyone can rerun the same shuffle and get the same result. A seeded pseudorandom generator is the right tool there, not a weakness: its predictability is the feature, because it makes the outcome reproducible and therefore auditable. The stronger pattern is commit-and-reveal — publish a hash of the seed before entries close, then publish the seed afterwards, so nobody could have chosen a seed that favoured a particular entrant after seeing the list. The random number generator draws from the cryptographic source and is the right choice when the value must be unguessable; when the value must be verifiable, the mechanism has to be one other people can repeat.

The same reasoning applies to picking teams or ordering a queue. If the outcome will be disputed, record the input list and the method, not just the result. And be clear about what 'random' is being asked to achieve: a uniform shuffle gives every ordering equal probability, which is fair in the sense of unbiased, but it does not produce balanced groups. Ten people split randomly into two teams can easily land eight strong players on one side. Unbiased and balanced are different goals, and only one of them is what randomness delivers.

Mock Data That Breaks Your Interface on Purpose

Generated names are for testing, and the useful ones are the ones that expose the assumptions your interface has not stated. A list of tidy Anglophone first-and-last pairs will pass every test and hide every bug. Real data contains apostrophes, hyphens, accents, particles, single-character surnames, forty-character compound names, and scripts your font may not cover. The random name generator is worth using with the awkward cases deliberately included, because a field that truncates at twenty characters or a database column that rejects an apostrophe is a defect you want to find before a user does.

There is a second trap that is easy to miss: realistic generated names coincide with real people. A name list drawn from common given names and surnames will produce combinations that belong to actual individuals, which matters if the mock data ends up in a screenshot, a public demo, a seeded staging database or a support ticket. Treat generated identities as fictional-but-possibly-real, and do not attach invented attributes to them — a fake medical record or a fake criminal history keyed to a name that turns out to be a real person is a genuine harm, not a styling bug.

For filler text the choice is between volume and vocabulary. Lorem ipsum gives realistic word-length distribution without meaning, which is right for judging layout; the lorem ipsum generator and the random word generator serve those two different needs, and the text tools guide covers where each fits alongside counters and case conversion. For identifiers rather than prose, a nanoid generator produces URL-safe random IDs — the default 21 characters from a 64-symbol alphabet is about 126 bits, comfortably more than the 122 random bits in a UUID v4, in a shorter and more readable string. Neither is a password: an identifier is meant to be stored and logged, and a secret is meant to be neither.

Business Names and Teams: A Human Decision Still Follows

A business name generator produces candidates, and the word 'candidates' is doing real work. The business name generator combines a keyword with naming patterns — compounds, suffixes, alliteration, portmanteaus — to give you a list worth reacting to, which is genuinely useful when the blank page is the problem. What it cannot do is tell you whether a name is available. Trademark registers, company registries and domain availability are three separate searches, and a name that clears all three in your own country may still be blocked in a market you plan to enter. Generate widely, then check narrowly; the order matters, because falling in love with an unchecked name is how projects end up rebranding after launch.

Usernames have a smaller version of the same problem. The username generator produces handles in a chosen style from a seed word, and style is the part people care about — underscores, dots, leet substitutions, gamer tags. Availability is per-platform and cannot be inferred from the string. A handle that is free on one service is routinely taken on another, and the generated list is a starting point for checking rather than a reservation.

Team splitting is where the fairness distinction from earlier becomes concrete. The team generator shuffles a list into groups, which gives unbiased assignment and near-equal group sizes. If the groups need to be balanced by something — skill, department, seniority, availability — random assignment alone will not do it, and the honest approach is to stratify first: bucket people by the attribute you care about, then shuffle within each bucket and deal across teams. That keeps the randomness where it belongs, on the tie-breaking, and puts the balance where it belongs, in the structure. A generator that claims to produce 'balanced' teams from an unstructured list is claiming something randomness does not provide.

Why the Entropy Source Should Be on Your Device

There is a specific reason to prefer a generator that runs in the browser, and it is not the general privacy argument — it is that a password produced on a server is a password that server has seen. Even a well-run service that logs nothing deliberately may retain the value in an access log, an error trace, a debugging snapshot or a backup, and the person who generated it has no way to verify any of that. A generator running locally produces the secret inside your own tab, and you can confirm the absence of a network request yourself by opening the browser's Network panel before pressing the button. That is a checkable claim rather than a policy promise, and it is the same standard the online calculators guide applies to salary and loan figures.

The source matters as much as the location. Every generator here draws from crypto.getRandomValues, the browser's interface to the operating system's cryptographic entropy pool — the same source that produces TLS session keys. Math.random() is never used: in current engines it is a fast pseudorandom generator whose internal state can be reconstructed from a handful of outputs, which makes it fine for animation and useless for anything secret or anything contested. The distinction is not about speed or quality of distribution in the ordinary sense; it is about whether an adversary who sees some outputs can compute the others.

The practical payoff is that these tools keep working with the network disconnected, which is both a privacy property and a reliability one. A password generated on a plane, a QR code produced for a poster with no connection, a team split run in a classroom with bad wifi — none of them depend on a service being up, and none of them leave a record of what you made. Closing the tab discards everything, which is the correct behaviour for a secret and the reason to copy the result somewhere you control before you close it.

Frequently asked questions

The questions people ask most about random generators: passwords, qr & names, answered directly.

How many bits of entropy does a password need?

It depends on the hash an attacker would be working against. Against a fast unsalted hash at roughly 100 billion guesses per second, 52 bits falls in about twelve hours, 64 bits in about six years and 78 bits in about a hundred thousand years. Treat 64 bits as a floor and the high 70s as comfortable for a long-lived password. A slow salted hash such as bcrypt or Argon2 improves every one of those figures substantially.

Is a long lowercase password stronger than a short complex one?

Usually yes, and the arithmetic is straightforward. Each lowercase character adds about 4.7 bits while each printable-ASCII character adds about 6.55, so enabling every symbol class gains roughly 40 percent per character. Adding four characters gains about 18.8 bits, a factor of hundreds of thousands in search space. Length wins by orders of magnitude over symbol variety.

How long should a diceware passphrase be?

Each word from the standard 7,776-word list contributes about 12.9 bits. Five words give roughly 65 bits, six give 77.5 and seven give 90.5. Six words is a good default for an important account, and seven for anything that will protect other secrets, such as a password manager's master password.

Why does the diceware word list have to be public?

Because the entropy comes from the random selection, not from hiding the vocabulary. A fixed known list of 7,776 words gives a precisely calculable 12.9 bits per word. A private list you invented has unknown size and usually far less entropy than it feels like, and publishing the list lets anyone verify the strength claim rather than trust it.

What do the QR error correction levels L, M, Q and H mean?

They set how much of the symbol can be damaged or covered and still decode: approximately 7 percent of codewords at L, 15 percent at M, 25 percent at Q and 30 percent at H. Higher correction consumes capacity, so at a fixed QR version a higher level carries fewer bytes of payload.

Which QR error correction level should I use for a logo?

H, which recovers about 30 percent of codewords. A centred logo covering up to roughly a quarter of the code area is generally survivable at that level. Keep the four-module quiet zone around the code completely clear, because a logo or border intruding into it breaks detection before error correction can help at all.

Why does my QR code scan on one phone but not another?

The usual causes are insufficient contrast, an inverted colour scheme, a missing quiet zone, or modules too small for the camera to resolve. Many decoders assume dark modules on a light background and fail on inverted codes. Size also matters: a common rule of thumb is that the code width should be about a tenth of the scanning distance.

Should I export a QR code as PNG or SVG?

SVG for anything printed, scaled or embedded in a document, because it stays sharp at any size. PNG is fine for a fixed-size screen display at the resolution you export. Upscaling a small raster export blurs the module edges, and scanners read blurred edges as damage, which is a failure the correction level cannot always absorb.

Is Math.random() safe for passwords or raffles?

No for passwords, and not ideal for a contested raffle. It is a fast pseudorandom generator whose internal state can be reconstructed from a few outputs, so an adversary who sees some values can compute others. Use crypto.getRandomValues for secrets. For a draw people need to verify, use a published seed and a reproducible method instead, since auditability is the property that matters there.

How can I run a prize draw people can verify?

Publish the entry list and the method, and use a seeded shuffle so anyone can reproduce the result. Stronger still is commit-and-reveal: publish a hash of the seed before entries close, then reveal the seed afterwards. That prevents anyone choosing a seed that favours a particular entrant after seeing who entered.

Does a random team generator produce balanced teams?

It produces unbiased assignment and near-equal sizes, which is not the same as balanced skill. Random splitting can easily put most of the strong players on one side. To balance an attribute, stratify first: bucket people by that attribute, shuffle within each bucket, then deal across teams.

Can generated names belong to real people?

Yes. Lists built from common given names and surnames will produce combinations that real individuals have. Treat generated identities as fictional but possibly real, and never attach invented sensitive attributes to them, because a fake medical or criminal record keyed to a real person's name is a genuine harm.

Does a business name generator check if the name is available?

No. It produces candidates worth reacting to, which solves the blank-page problem. Trademark registers, company registries and domain availability are three separate searches, and clearance in one country does not imply clearance in another. Generate widely, then check narrowly before committing.

What is the difference between a nanoid and a UUID?

A nanoid's default is 21 characters from a 64-symbol URL-safe alphabet, about 126 bits, in a shorter and more readable string than a UUID v4, which carries 122 random bits. Both are identifiers rather than secrets: an identifier is meant to be stored and logged, while a password is meant to be neither.

Why generate a password in the browser instead of on a website's server?

Because a password produced on a server is a password that server has seen, and it may persist in access logs, error traces, debug snapshots or backups even when the service intends to log nothing. A local generator produces the secret in your own tab, and you can verify that no request carries it by watching the browser's Network panel.

Do these generators work offline?

Yes. They run entirely in the page using the browser's own cryptographic random source and local word lists, so they keep working with the network disconnected. Closing the tab discards everything, which is the correct behaviour for a secret and the reason to save the result somewhere you control first.