Comparison
Foundry cast wallet vanity vs Vanity-ETH: Terminal or Web Page?
Foundry cast wallet vanity vs Vanity-ETH: pattern options, letter case, contract addresses, keystore export, key safety and wallet import compared.

The two tools at a glance
| cast wallet vanity | Vanity-ETH | |
|---|---|---|
| Runs as | Command line (Foundry) | Web page with Web Workers; offline build available |
| Pattern options | --starts-with, --ends-with, hex or regex | Prefix, suffix or both |
| Letter case | Ignored for hex patterns | Optional EIP-55 checksum case |
| Threads | --threads | Adjustable thread count |
| Contract address search | --nonce; cast create2 --starts-with for a salt | No |
| Key output | Private key; --save-path appends JSON | Private key or encrypted keystore |
| License | Open source | MIT |
The core job is identical; the way you run it is not.
Which is safer for creating the key?
Neither interface is safer by itself. What matters is the random number source and the machine the tool runs on. Both projects publish their code, so key generation can be reviewed. The cautionary case is Profanity, which seeded keys from 32 bits.
- Run either tool on a computer you trust.
- Save the key before you close the terminal or the page.
- If the key must stay on disk, an encrypted file beats plain text; Vanity-ETH's keystore uses a password you choose.
- Do not reuse a key that appeared in a shared screen, a log or a chat.
Importing the result
Both give a 64-character hex private key, which MetaMask, Rabby and Trust Wallet import as a standalone account. Vanity-ETH's README says its keystore file also works with MyEtherWallet, MetaMask, Mist and geth.
An imported account is not covered by the wallet's recovery phrase, so back up the key on its own. The MetaMask import guide lists the checks.
Vanity contract addresses
Only cast covers this. --nonce finds a key whose contract at a given nonce matches your pattern, and cast create2 searches a salt for a factory deployment. Vanity-ETH searches account addresses only.
Which one should you use?
For one short prefix or suffix with an estimate before you start, EthVanity is a third option; the EthVanity vs Vanity-ETH comparison covers that pairing.
| You need | Better fit |
|---|---|
| A web page, no install | Vanity-ETH |
| Exact checksum case | Vanity-ETH |
| An encrypted keystore file | Vanity-ETH |
| Regex, scripts or JSON output | cast wallet vanity |
| A contract address at a nonce, or a CREATE2 salt | cast |
Sources and editorial method
The technical references below support the concepts discussed in this article. Examples and comparison worksheets are explanatory, not measured service benchmarks.



