CustomSol Logo
CustomSOLAddress generator
Menu

Buy us a coffee

Our free tools run entirely on donations. Your support helps maintain the website and develop the tools. Generation runs locally on your device. If we helped you today, a small donation helps keep this service free for everyone.

SOL · Solana network
FTF4fa9So3VjNNcLk7MCtpPFYF36zVFsq2DQTw2QpJaA

Thank you for keeping us running! ❤️

Comparison

CustomSolAddress vs solana-keygen grind: Pattern Rules, Key Output and Which to Use

CustomSolAddress vs solana-keygen grind: pattern rules, length limits, letter case, keypair files, seed phrases and offline use, plus where btc-vanity fits.

By Updated 6 min readRead as Markdown

A browser window and a terminal window side by side with an arrow between them, comparing a web generator with a command-line tool for Solana addresses
A web page or a command line: compare pattern limits, key output and offline use before you search.
Short answer: Both find a new Solana keypair whose address starts or ends with Base58 characters you choose. Choose solana-keygen grind if you already use the Solana CLI or need a pattern longer than 6 characters, a prefix and a suffix at once, several matches, a seed phrase or an offline search. Choose CustomSolAddress for a short prefix or suffix in a web page, with an example preview and a difficulty estimate and nothing to install.

CustomSolAddress and solana-keygen grind at a glance

The two tools do the same core job: they create random keypairs until the Base58 address matches your pattern, then give you the address and its secret key. They differ on how you run them, how long a pattern can be and what the key looks like when you get it.

CustomSolAddresssolana-keygen grind
PriceFreeFree
Runs asWeb pageCommand-line tool in the Solana CLI tools (Agave)
SetupNoneInstall the Solana CLI tools: install script, prebuilt binaries, Homebrew or source
Pattern positionPrefix or suffixPrefix, suffix, or both in one search
Longest pattern6 Base58 charactersNo fixed limit; search time is the limit
Matches per searchOneA count you set for each pattern, such as sol:4
Letter caseIgnored by default; Match Case option for exact caseExact case by default; --ignore-case option
Key outputSecret key as one Base58 string (64 bytes)Keypair file named after the address: a JSON array of 64 numbers
Seed phrase optionNoYes, with --use-mnemonic
Difficulty planningExample preview, built-in estimate and a separate difficulty calculatorA progress line every million keypairs searched
Source codePublic repository on GitHubOpen source, Apache 2.0 license (anza-xyz/agave)

Pattern rules and length limits

Both tools accept only Base58 characters: digits 1 to 9 and letters, without 0, O, I or lowercase l. solana-keygen grind decodes each pattern as Base58 and refuses one that does not decode, and CustomSolAddress removes those characters as you type. The address format page lists the rules in one place.

CustomSolAddress searches one prefix or one suffix of up to 6 characters, which keeps a search practical in a web page. solana-keygen grind takes --starts-with PREFIX:COUNT, --ends-with SUFFIX:COUNT or --starts-and-ends-with PREFIX:SUFFIX:COUNT, accepts several of them in one run and sets no length limit of its own.

Letter case works the same way in both when it is ignored: the pattern and the address are compared in lowercase, so a letter that exists in both cases is twice as easy to match. The difference is the default. CustomSolAddress ignores case unless you tick Match Case; solana-keygen grind matches exact case unless you add --ignore-case.

How long does each search take?

Difficulty depends on the pattern, not on the tool. With exact case, each Base58 character multiplies the average work by 58. Ignoring case, each letter that exists in both cases multiplies it by 29; digits and the single-case letters i, o and L stay at 58. Real speed depends on your hardware: solana-keygen grind uses one thread per CPU core by default, which you can change with --num-threads.

  • For a prefix, the first character matters too: most addresses start with 2 to 9 or A to H, so a prefix starting with one of those is quicker, and one starting with K to Z or a lowercase letter is much slower. solana-keygen grind's source code uses the same fact to skip keys that cannot match such a prefix.
  • The difficulty calculator shows the average time and the 50%, 90% and 99% odds for your own pattern and speed.
Pattern lengthAverage attempts, exact caseAverage attempts, case ignored, all two-case letters
411,316,496707,281
5656,356,76820,511,149
638,068,692,544594,823,321
7 (solana-keygen grind only)2,207,984,167,55217,249,876,309

Key output and wallet import

CustomSolAddress shows the address and its secret key as one Base58 string. That string encodes 64 bytes, the 32-byte private seed followed by the 32-byte public key, and it is what Phantom and Solflare accept as a private key. The import steps in the guide cover each wallet.

solana-keygen grind writes each match to a file named after the address, such as the address followed by .json, in the folder where you ran it. The file holds the same 64 bytes as a JSON array of numbers, the format the Solana CLI reads as a file system wallet. Anza's documentation describes these files as unencrypted and the least secure way to store SOL, so move the key to a wallet and keep the file offline.

With --use-mnemonic, grind derives each key from a new seed phrase and prints that phrase for every match; the help text warns that this mode is significantly slower. A seed phrase is easier to back up on paper than a long key. CustomSolAddress does not produce a seed phrase.

Whichever tool you use, save the key before closing the page or terminal, import it, compare the full address character by character and send a small test amount first.

Running without a connection

solana-keygen grind creates and checks keys on your own computer and needs no network connection for the search, so after installing the Solana CLI tools you can run it on a computer that stays offline. CustomSolAddress is a web page and does not offer an offline build. If an air-gapped search matters to you, that is a reason to choose solana-keygen grind.

Where btc-vanity fits

btc-vanity is an open-source Rust command-line tool that also searches Solana addresses when built with its solana feature. Its README documents prefix, suffix, anywhere and regex searches, a --case-sensitive flag and an experimental GPU backend. It suits a pattern in the middle of the address or a regex, which neither CustomSolAddress nor solana-keygen grind supports.

Which one should you use?

If you are unsure, start with a 3 or 4 character pattern and check the estimate first. A pattern that finishes in seconds in one tool finishes in seconds in the other.

You needBetter fitWhy
A short prefix or suffix with nothing to installCustomSolAddressWeb page with an example preview and a built-in estimate
A pattern of 7 or more characterssolana-keygen grindNo fixed length limit and native multithreaded speed
A prefix and a suffix at the same timesolana-keygen grind--starts-and-ends-with in one search
Several matching keys in one runsolana-keygen grindA count for each pattern
A seed phrase for the new addresssolana-keygen grind--use-mnemonic prints one for every match
An offline or air-gapped searchsolana-keygen grindRuns on your own computer after install
A pattern anywhere in the address, or a regexbtc-vanityAnywhere and regex search modes

Frequently asked questions

Is solana-keygen grind an official tool?

It is part of the Solana CLI tools that Anza maintains in the open-source Agave repository, and it is installed together with the solana command. CustomSolAddress is an independent web generator.

Do both produce the same kind of address?

Yes. Both return a standard Ed25519 keypair whose public key is the Solana address. You can use it as a wallet, or as the keypair for a token mint or a program ID; the account types guide explains each case.

Which one is faster?

Speed depends mostly on your hardware, and every Base58 character multiplies the work by about 58 in both tools. For long patterns, a native command-line tool such as solana-keygen grind running on all CPU cores is usually faster than a web page.

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.

Read how these articles are prepared.