<p>Proper syntax for VanityGen is:</p>

<pre><code>Usage: vanitygen [-vqrikNT] [-t &lt;threads&gt;] [-f &lt;filename&gt;|-] [&lt;pattern&gt;...]
Generates a bitcoin receiving address matching &lt;pattern&gt;, and outputs the
address and associated private key.  The private key may be stored in a safe
location or imported into a bitcoin client to spend any balance received on
the address.
By default, &lt;pattern&gt; is interpreted as an exact prefix.

Options:
-v            Verbose output
-q            Quiet output
-r            Use regular expression match instead of prefix
              (Feasibility of expression is not checked)
-i            Case-insensitive prefix search
-k            Keep pattern and continue search after finding a match
-N            Generate namecoin address
-T            Generate bitcoin testnet address
-X &lt;version&gt;  Generate address with the given version
-t &lt;threads&gt;  Set number of worker threads (Default: number of CPUs)
-f &lt;file&gt;     File containing list of patterns, one per line
              (Use "-" as the file name for stdin)
-o &lt;file&gt;     Write pattern matches to &lt;file&gt;
-s &lt;file&gt;     Seed random number generator from &lt;file&gt;
</code></pre>

<p>The important options to know are -i and -r which cause the search to be case-insensitive and use regex, repsectively. In its simplest format, you issue a command like:</p>

<p><code>vanitygen.exe 1david</code></p>

<p>Which tells vanity gen to look for an address with the exact prefix "1david." On a single core of my core i5 this runs at about 325,000 keys per second as shown by the status display (which does show a time estimation.):</p>

<p><code>[324.43 Kkey/s][total 15166208][Prob 0.1%][50% in 9.1h]</code></p>

<p>Using the -i option drastically decreases generation time. <code>vanitygen.exe -i 1david</code> produced the following results in just a few seconds:</p>

<pre><code>Difficulty: 36384905
Pattern: 1david
Address: 1DAVid3iW7XhDBzdoj8FbnaSaqWCjeTgUP
Privkey: 5JvtXtpUbwbNNqRoQjF3w2nyXHhphJk6LX1pWkPYEkBr4nnnBeL
</code></pre>

<p>The -r option allows the specification of a regex value instead of the default pattern option. If, for example, I demanded that my address contain all lowercase letters but I don't care if the "D" in "David" is uppercase or not, I could use <code>vanitygen.exe -r 1[Dd]avid</code>. One downside to specifying a regex prefix is that you will not be given any estimated time or probability data since such calculations are not as trivial as matching a simple prefix.</p>

<p>The more specific your matching criteria (and the longer the pattern) the longer it will take to generate your address(es). This can be sped up considerably if you have an ATI/AMD video card since there is also an OpenCL version of VanityGen which can try millions of keys per second on a decent GPU.</p>

CC BY-SA 3.0
2013-08-22T13:36:50.830Z
FYI: There is also a version of vanitygen supporting **Litecoin** at https://github.com/dasher/vanitygen available!
q9f
CC BY-SA 3.0
2014-01-27T08:05:49.677Z
@qdoe `vanitygen` supports any bitcoin-based address as long as you know which number to put to the `-x` switch, e.g. primecoin via `-x 23 Amyvanity`
Tobias Kienzler
CC BY-SA 3.0
2011-09-07T19:01:02.597Z
Is there a Mac version of vanity gen?
lemonginger
CC BY-SA 3.0
2011-09-07T19:16:18.970Z
I don't believe the author of VanityGen provides precompiled Mac binaries, but the code does include a MakeFile for OSX so you should be able to compile it: https://github.com/samr7/vanitygen
David Perry
CC BY-SA 3.0
2011-09-07T18:23:15.717Z
2011-09-07T18:23:15.717Z
David Perry
<p>How do you use the vanity name generator to look for an address? </p>

<p>Is there an estimate on how long it takes to find addresses of varying lengths and complexities?</p>

<address><vanity-address>
How can I use the vanity name generator to look for an address?
lemonginger
# How can I use the vanity name generator to look for an address?

(Asked by: username_0 on 2011-09-07)

How do you use the vanity name generator to look for an address?

Is there an estimate on how long it takes to find addresses of varying lengths and complexities?

**Tags:** address, vanity-address


---

## 1 answers

### Answer by username_1 on 2011-09-07. Score: 12

Proper syntax for VanityGen is:

```
Usage: vanitygen [-vqrikNT] [-t <threads>] [-f <filename>|-] [<pattern>...]
Generates a bitcoin receiving address matching <pattern>, and outputs the
address and associated private key.  The private key may be stored in a safe
location or imported into a bitcoin client to spend any balance received on
the address.
By default, <pattern> is interpreted as an exact prefix.

Options:
-v            Verbose output
-q            Quiet output
-r            Use regular expression match instead of prefix
              (Feasibility of expression is not checked)
-i            Case-insensitive prefix search
-k            Keep pattern and continue search after finding a match
-N            Generate namecoin address
-T            Generate bitcoin testnet address
-X <version>  Generate address with the given version
-t <threads>  Set number of worker threads (Default: number of CPUs)
-f <file>     File containing list of patterns, one per line
              (Use "-" as the file name for stdin)
-o <file>     Write pattern matches to <file>
-s <file>     Seed random number generator from <file>

```

The important options to know are -i and -r which cause the search to be case-insensitive and use regex, repsectively. In its simplest format, you issue a command like:

`vanitygen.exe 1david`

Which tells vanity gen to look for an address with the exact prefix "1david." On a single core of my core i5 this runs at about 325,000 keys per second as shown by the status display (which does show a time estimation.):

`[324.43 Kkey/s][total 15166208][Prob 0.1%][50% in 9.1h]`

Using the -i option drastically decreases generation time. `vanitygen.exe -i 1david` produced the following results in just a few seconds:

```
Difficulty: 36384905
Pattern: 1david
Address: 1DAVid3iW7XhDBzdoj8FbnaSaqWCjeTgUP
Privkey: 5JvtXtpUbwbNNqRoQjF3w2nyXHhphJk6LX1pWkPYEkBr4nnnBeL

```

The -r option allows the specification of a regex value instead of the default pattern option. If, for example, I demanded that my address contain all lowercase letters but I don't care if the "D" in "username_1" is uppercase or not, I could use `vanitygen.exe -r 1[Dd]avid`. One downside to specifying a regex prefix is that you will not be given any estimated time or probability data since such calculations are not as trivial as matching a simple prefix.

The more specific your matching criteria (and the longer the pattern) the longer it will take to generate your address(es). This can be sped up considerably if you have an ATI/AMD video card since there is also an OpenCL version of VanityGen which can try millions of keys per second on a decent GPU.

> **Comments:**
> **username_0**: Is there a Mac version of vanity gen?  
> **username_1**: I don't believe the author of VanityGen provides precompiled Mac binaries, but the code does include a MakeFile for OSX so you should be able to compile it: https://github.com/samr7/vanitygen  
> **username_2**: FYI: There is also a version of vanitygen supporting **Litecoin** at https://github.com/dasher/vanitygen available!  
> **username_3**: @qdoe `vanitygen` supports any bitcoin-based address as long as you know which number to put to the `-x` switch, e.g. primecoin via `-x 23 Amyvanity`  

---

