<p>Assume your hexadecimal private key (256 bits in length) is <strong>0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff</strong> for demonstrative purposes. </p>

<p>Use this <a href="https://github.com/libbitcoin/libbitcoin/wiki/Altcoin-Version-Mappings#bip44-altcoin-version-mapping-table" rel="nofollow noreferrer"><strong>table</strong></a> to specify interger version to use the Bitcoin Explorer (<a href="https://github.com/libbitcoin/libbitcoin-explorer/wiki/Download-BX" rel="nofollow noreferrer"><strong>bx</strong></a>) command to compute WIF private keys and addresses for numerous altcoins.</p>

<ol>
<li><p><em>Compute associated <strong>Testnet</strong> compressed WIF key:</em></p>

<p><code>% echo 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff | sed 's/$/01/' | bx base58check-encode -v 239</code></p>

<p><strong><code>cMahgGtgBvsRn7SZFuFCuKGnV8H8yxYLegVcaRsLL2LjD6WFLuAg</code></strong></p></li>
<li><p><em>Compute associated <strong>Testnet</strong> compressed public address from <strong>secp256k1</strong> elliptic curve using the same private key:</em></p>

<p><code>% echo 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff | bx ec-to-public | bx ec-to-address -v 111</code></p>

<p><strong><code>n47QBape2PcisN2mkHR2YnhqoBr56iPhJh</code></strong></p></li>
</ol>

<p>It is worth examining the result of this example:</p>

<p><code>% echo cMahgGtgBvsRn7SZFuFCuKGnV8H8yxYLegVcaRsLL2LjD6WFLuAg | bx base58check-decode</code></p>



<pre><code>{
    checksum 3112764957
    payload 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff01
    version 239
}
</code></pre>

CC BY-SA 4.0
2017-07-11T22:50:34.627Z
2019-01-15T18:19:29.113Z
2019-01-15T18:19:29.113Z
skaht
<p>You can use my step by step tutorial from create a wallet to push or broadcast a transaction in test net:
<a href="https://medium.com/@athamidn/estep-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet-588daacc2b7a?source=friends_link&amp;sk=2c9a310c02801d09c667608d4651e80f" rel="nofollow noreferrer">step-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet</a> </p>

CC BY-SA 4.0
2020-05-09T03:59:19.183Z
2020-05-09T03:59:19.183Z
Hamid Naghipour
<p>Bitaddress.org itself allows you to create Testnet addresses (hat tip to Nick ODell). The generator for testnet addresses can be found by appending <code>?testnet=true</code> to the URL. The site now appears to put the release version in the URL, so the link to generate a testnet address on bitaddress.org is <a href="https://www.bitaddress.org/bitaddress.org-v3.3.0-SHA256-dec17c07685e1870960903d8f58090475b25af946fe95a734f88408cef4aa194.html?testnet=true" rel="nofollow noreferrer">https://www.bitaddress.org/bitaddress.org-v3.3.0-SHA256-dec17c07685e1870960903d8f58090475b25af946fe95a734f88408cef4aa194.html?testnet=true</a></p>
<p>Note that using an online website may be a convenient approach to generate a testnet address quickly. <strong>Do not use online websites to generate mainnet addresses, especially not if you intend to transact significant sums.</strong></p>
<p>Alternatively, you could use a wallet that supports testnet, see e.g. <a href="https://bitcoin.stackexchange.com/q/54986/5406">Running Bitcoin Core in testnet mode</a>.</p>

CC BY-SA 4.0
2021-07-26T08:00:16.620Z
it doesn't work (anymore at least).address it prints is mainnet
Алексей Неудачин
CC BY-SA 4.0
2021-07-26T13:45:07.703Z
Thanks, @АлексейНеудачин. I updated the URL to the new location of the testnet generator.
Murch
CC BY-SA 4.0
2017-07-12T05:30:11.217Z
2021-07-26T13:44:36.103Z
2021-07-26T13:44:36.103Z
Murch
<p>Bitcoin addresses can be generated on this site <a href="https://www.bitaddress.org" rel="noreferrer">https://www.bitaddress.org</a>, but the test network needs m or n at the beginning of the address, where can those be generated？</p>

CC BY-SA 3.0
2017-07-11T15:47:43.327Z
Use the testnet version. https://www.bitaddress.org/?testnet=true
Nick ODell
CC BY-SA 3.0
2017-07-12T05:41:16.507Z
Pokes @NickODell: [Please post answers as answers, not as comments!](https://bitcoin.meta.stackexchange.com/q/633/5406) ;)
Murch
CC BY-SA 3.0
2017-07-12T15:06:37.750Z
@Murch Character limits, though.
Nick ODell
<testnet><address-generation><address-format>
How to generate a testnet address?
zhou
# How to generate a testnet address?

(Asked by: username_0 on 2017-07-11)

Bitcoin addresses can be generated on this site <https://www.bitaddress.org>, but the test network needs m or n at the beginning of the address, where can those be generated？

**Tags:** testnet, address-generation, address-format

> **Comments:**
> **username_1**: Use the testnet version. https://www.bitaddress.org/?testnet=true  
> **username_2**: Pokes @NickODell: [Please post answers as answers, not as comments!](https://bitcoin.meta.stackexchange.com/q/633/5406) ;)  
> **username_1**: @username_2 Character limits, though.  

---

## 3 answers

### Answer by username_2 on 2017-07-12. Score: 7 | Accepted answer

Bitaddress.org itself allows you to create Testnet addresses (hat tip to username_1). The generator for testnet addresses can be found by appending `?testnet=true` to the URL. The site now appears to put the release version in the URL, so the link to generate a testnet address on bitaddress.org is <https://www.bitaddress.org/bitaddress.org-v3.3.0-SHA256-dec17c07685e1870960903d8f58090475b25af946fe95a734f88408cef4aa194.html?testnet=true>

Note that using an online website may be a convenient approach to generate a testnet address quickly. **Do not use online websites to generate mainnet addresses, especially not if you intend to transact significant sums.**

Alternatively, you could use a wallet that supports testnet, see e.g. [Running Bitcoin Core in testnet mode](https://bitcoin.stackexchange.com/q/54986/5406).

> **Comments:**
> **username_5**: it doesn't work (anymore at least).address it prints is mainnet  
> **username_2**: Thanks, @АлексейНеудачин. I updated the URL to the new location of the testnet generator.  

---

### Answer by username_3 on 2017-07-11. Score: 5

Assume your hexadecimal private key (256 bits in length) is 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff for demonstrative purposes. 
Use this table to specify interger version to use the Bitcoin Explorer (bx) command to compute WIF private keys and addresses for numerous altcoins.

Compute associated Testnet compressed WIF key:
% echo 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff | sed 's/$/01/' | bx base58check-encode -v 239
cMahgGtgBvsRn7SZFuFCuKGnV8H8yxYLegVcaRsLL2LjD6WFLuAg
Compute associated Testnet compressed public address from secp256k1 elliptic curve using the same private key:
% echo 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff | bx ec-to-public | bx ec-to-address -v 111
n47QBape2PcisN2mkHR2YnhqoBr56iPhJh

It is worth examining the result of this example:
% echo cMahgGtgBvsRn7SZFuFCuKGnV8H8yxYLegVcaRsLL2LjD6WFLuAg | bx base58check-decode
{
    checksum 3112764957
    payload 0000111122223333444455556666777788889999aaaabbbbccccddddeeeeffff01
    version 239
}


---

### Answer by username_4 on 2020-05-09. Score: 0

You can use my step by step tutorial from create a wallet to push or broadcast a transaction in test net:
[step-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet](https://medium.com/@athamidn/estep-by-step-create-and-broadcast-a-bitcoin-transaction-on-testnet-588daacc2b7a?source=friends_link&sk=2c9a310c02801d09c667608d4651e80f)


---

