TON · TON · offline
TON vanity address generator
Create a real TON address that starts with, ends with, or contains your own pattern — generated on your machine. No accounts, no telemetry, keys never leave your device.
How TON addresses work
TON user-friendly addresses are 48-character base64url strings. The first two characters encode flags and workchain, and the third character can only be one of A–D for workchain 0, so only part of the front of the address is free.
vanity-address computes the Wallet V4R2 address from the public key and the contract code hash, then CRC-checks the result before showing it.
Alphabet: Base64url (64 symbols per position). Typical shape: UQ….
How to generate a TON vanity address
- Open the web generator or run
npx vanity-address. - Choose TON (
ton). - Enter a short prefix, suffix, or contains pattern using the Base64url alphabet.
- Check the ETA, grind, then verify the result before using it.
npx vanity-address --chain ton --suffix moon
How long will it take?
Each extra character multiplies the work by about 64. Times below are illustrative at one million keys per second; your device may be faster or slower. Use the difficulty calculator with your own speed.
| Pattern length | Expected attempts | Average time @ 1M keys/s |
|---|---|---|
| 1 | 64 | under a second |
| 2 | 4,096 | under a second |
| 3 | 262,144 | under a second |
| 4 | 16.8 million | 17 seconds |
| 5 | 1.1 billion | 18 minutes |
| 6 | 68.7 billion | 19 hours |
| 7 | 4.4 trillion | 51 days |
| 8 | 281 trillion | 8.9 years |
Tips for TON
- Suffix patterns are the most flexible on TON because the end of the address is fully random.
- The base64url alphabet allows
A–Z a–z 0–9 _ -and is case-sensitive. - Import the exported key into a wallet that supports V4R2 to get the same address.
Safety
Whoever holds the private key controls the funds. vanity-address creates keys locally from your operating system's secure random source and re-derives every address on the CPU before export. The exported file is a plaintext secret: keep it offline and never commit or email it. Read the security model before moving significant value.
Frequently asked questions
Why can't I set the first characters of a TON address?
They carry address flags and workchain, so only certain values are valid. The tool accounts for those fixed bits when estimating difficulty.
How many attempts does a 4-character TON suffix need?
About 64⁴ ≈ 16.8 million on average.