4 <meta charset=
"utf-8" />
5 <title>BIP39 - Mnemonic Code
</title>
6 <link rel=
"stylesheet" href=
"css/bootstrap.min.css">
7 <meta content=
"Mnemonic code for generating deterministic keys" name=
"description"/>
8 <meta content=
"width=device-width, initial-scale=1.0" name=
"viewport" />
9 <meta content=
"bitcoin mnemonic converter" name=
"description" />
10 <meta content=
"Ian Coleman" name=
"author" />
16 .form-control[readonly] {
29 background-color: orange;
33 border:
2px solid #
555;
35 border-bottom-left-radius:
20px
20px;
36 border-bottom-right-radius:
20px
20px;
40 box-shadow: inset
0 1px
1px rgba(
0,
0,
0,
.0);
41 -webkit-box-shadow: inset
0 1px
1px rgba(
0,
0,
0,
.0);
46 .generate-container .strength {
47 /* override mobile width from bootstrap */
48 width: auto!important;
49 display: inline-block;
55 font-family: monospace;
57 .entropy-container .filtered,
58 .entropy-container .binary {
59 word-wrap: break-word;
61 .entropy-container li {
83 <div class=
"container">
85 <h1 class=
"text-center">Mnemonic Code Converter
</h1>
88 <div class=
"col-md-12">
90 <form class=
"form-horizontal" role=
"form">
91 <div class=
"form-group">
92 <div class=
"col-sm-2"></div>
93 <div class=
"col-sm-10">
94 <p>You can enter an existing BIP39 mnemonic, or generate a new random one. Typing your own twelve words will probably not work how you expect, since the words require a particular structure (the last word is a checksum)
</p>
95 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target=
"_blank">BIP39 spec
</a></p>
98 <div class=
"form-group generate-container">
99 <label class=
"col-sm-2 control-label"></label>
100 <div class=
"col-sm-10">
101 <div class=
"form-inline">
102 <div class=
"input-group-inline">
103 <button class=
"btn generate">Generate
</button>
104 <span>a random
</span>
105 <select id=
"strength" class=
"strength form-control">
106 <option value=
"3">3</option>
107 <option value=
"6">6</option>
108 <option value=
"9">9</option>
109 <option value=
"12">12</option>
110 <option value=
"15" selected
>15</option>
111 <option value=
"18">18</option>
112 <option value=
"21">21</option>
113 <option value=
"24">24</option>
115 word mnemonic, or enter your own below.
120 <div class=
"entropy-container hidden">
121 <div class=
"form-group text-danger">
122 <label class=
"col-sm-2 control-label">Warning
</label>
123 <div class=
"col-sm-10 form-control-static">
124 Entropy is an advanced feature.
125 Your mnemonic may be insecure if this feature is used incorrectly.
126 <a href=
"#entropy-notes">Read more
</a>
129 <div class=
"form-group">
130 <label for=
"entropy" class=
"col-sm-2 control-label">Entropy
</label>
131 <div class=
"col-sm-7">
132 <textarea id=
"entropy" rows=
"2" class=
"entropy form-control" placeholder=
"Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards"></textarea>
134 <label class=
"col-sm-3 control-label">Strength
</label>
135 <div class=
"strength col-sm-3 form-control-static"></div>
136 <label class=
"col-sm-3 control-label">Event Count
</label>
137 <div class=
"event-count col-sm-3 form-control-static"></div>
140 <label class=
"col-sm-3 control-label">Entropy Type
</label>
141 <div class=
"type col-sm-3 form-control-static"></div>
142 <label class=
"col-sm-3 control-label">Bits Per Event
</label>
143 <div class=
"bits-per-event col-sm-3 form-control-static"></div>
146 <label class=
"col-sm-3 control-label">Word Count
</label>
147 <div class=
"word-count col-sm-3 form-control-static"></div>
148 <label class=
"col-sm-3 control-label">Total Bits
</label>
149 <div class=
"bits col-sm-3 form-control-static"></div>
151 <label class=
"col-sm-3 control-label">Filtered Entropy
</label>
152 <div class=
"filtered col-sm-9 form-control-static"></div>
153 <label class=
"col-sm-3 control-label">Raw Binary
</label>
154 <div class=
"binary col-sm-9 form-control-static"></div>
155 <label class=
"col-sm-3 control-label">Mnemonic Length
</label>
156 <div class=
"col-sm-9">
157 <select class=
"mnemonic-length form-control">
158 <option value=
"raw">From entropy length (
3 words per
32 bits)
</option>
159 <option value=
"12">12 Words
</option>
160 <option value=
"15">15 Words
</option>
161 <option value=
"18">18 Words
</option>
162 <option value=
"21">21 Words
</option>
163 <option value=
"24">24 Words
</option>
167 <div class=
"col-sm-3">
168 <p>Valid entropy values include:
</p>
170 <li><strong>Binary
</strong> [
0-
1]
<br>101010011</li>
171 <li><strong>Base
6</strong> [
0-
5]
<br>123434014</li>
172 <li><strong>Dice
</strong> [
1-
6]
<br>62535634</li>
173 <li><strong>Base
10</strong> [
0-
9]
<br>90834528</li>
174 <li><strong>Hex
</strong> [
0-
9A-F]
<br>4187a8bfd9
</li>
175 <li><strong>Card
</strong> [A2-
9TJQK][CDHS]
<br>ahqs9dtc
</li>
180 <div class=
"form-group">
181 <div class=
"col-sm-2"></div>
182 <div class=
"col-sm-10 checkbox">
184 <input type=
"checkbox" class=
"use-entropy">
185 Supply my own source of entropy
189 <div class=
"form-group">
190 <label class=
"col-sm-2 control-label"></label>
191 <div class=
"col-sm-10 languages">
192 <a href=
"#english">English
</a>
193 <a href=
"#japanese" title=
"Japanese">日本語
</a>
194 <a href=
"#spanish" title=
"Spanish">Español
</a>
195 <a href=
"#chinese_simplified" title=
"Chinese (Simplified)">中文(简体)
</a>
196 <a href=
"#chinese_traditional" title=
"Chinese (Traditional)">中文(繁體)
</a>
197 <a href=
"#french" title=
"French">Français
</a>
198 <a href=
"#italian" title=
"Italian">Italiano
</a>
201 <div class=
"form-group">
202 <label for=
"phrase" class=
"col-sm-2 control-label">BIP39 Mnemonic
</label>
203 <div class=
"col-sm-10">
204 <textarea id=
"phrase" class=
"phrase form-control"></textarea>
207 <div class=
"form-group">
208 <label for=
"passphrase" class=
"col-sm-2 control-label">BIP39 Passphrase (optional)
</label>
209 <div class=
"col-sm-10">
210 <textarea id=
"passphrase" class=
"passphrase form-control"></textarea>
213 <div class=
"form-group">
214 <label for=
"seed" class=
"col-sm-2 control-label">BIP39 Seed
</label>
215 <div class=
"col-sm-10">
216 <textarea id=
"seed" class=
"seed form-control" readonly=
"readonly"></textarea>
219 <div class=
"form-group">
220 <label for=
"network-phrase" class=
"col-sm-2 control-label">Coin
</label>
221 <div class=
"col-sm-10">
222 <select id=
"network-phrase" class=
"network form-control">
223 <!-- populated by javascript -->
227 <div class=
"form-group">
228 <label for=
"root-key" class=
"col-sm-2 control-label">BIP32 Root Key
</label>
229 <div class=
"col-sm-10">
230 <textarea id=
"root-key" class=
"root-key form-control"></textarea>
240 <div class=
"col-md-12">
241 <h2>Derivation Path
</h2>
242 <ul class=
"derivation-type nav nav-tabs" role=
"tablist">
243 <li id=
"bip44-tab" class=
"active">
244 <a href=
"#bip44" role=
"tab" data-toggle=
"tab">BIP44
</a>
247 <a href=
"#bip32" role=
"tab" data-toggle=
"tab">BIP32
</a>
250 <div class=
"derivation-type tab-content">
251 <div id=
"bip44" class=
"tab-pane active">
252 <form class=
"form-horizontal" role=
"form">
254 <div class=
"col-sm-2"></div>
255 <div class=
"col-sm-10">
256 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">BIP44 spec
</a></p>
258 <div class=
"form-group">
259 <label for=
"purpose" class=
"col-sm-2 control-label">
260 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target=
"_blank">Purpose
</a>
262 <div class=
"col-sm-10">
263 <input id=
"purpose" type=
"text" class=
"purpose form-control" value=
"44">
266 <div class=
"form-group">
267 <label for=
"coin" class=
"col-sm-2 control-label">
268 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target=
"_blank">Coin
</a>
270 <div class=
"col-sm-10">
271 <input id=
"coin" type=
"text" class=
"coin form-control" value=
"0">
274 <div class=
"form-group">
275 <label for=
"account" class=
"col-sm-2 control-label">
276 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target=
"_blank">Account
</a>
278 <div class=
"col-sm-10">
279 <input id=
"account" type=
"text" class=
"account form-control" value=
"0">
282 <div class=
"form-group">
283 <label for=
"change" class=
"col-sm-2 control-label">
284 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target=
"_blank">External / Internal
</a>
286 <div class=
"col-sm-10">
287 <input id=
"change" type=
"text" class=
"change form-control" value=
"0">
290 <div class=
"form-group">
291 <label for=
"bip44-path" class=
"col-sm-2 control-label">BIP32 Derivation Path
</label>
292 <div class=
"col-sm-10">
293 <input id=
"bip44-path" type=
"text" class=
"path form-control" value=
"m/44'/0'/0'/0" readonly=
"readonly">
298 <div id=
"bip32" class=
"tab-pane">
299 <form class=
"form-horizontal" role=
"form">
301 <div class=
"col-sm-2"></div>
302 <div class=
"col-sm-10">
303 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">BIP32 spec
</a></p>
305 <div class=
"form-group">
306 <label for=
"bip32-path" class=
"col-sm-2 control-label">BIP32 Derivation Path
</label>
307 <div class=
"col-sm-10">
308 <input id=
"bip32-path" type=
"text" class=
"path form-control" value=
"m/0">
311 <div class=
"form-group">
312 <div class=
"col-sm-2"></div>
313 <label class=
"col-sm-10">
314 <input class=
"hardened-addresses" type=
"checkbox">
315 Use hardened addresses
318 <div class=
"form-group">
319 <label class=
"col-sm-2 control-label">Hive Wallet
</label>
320 <div class=
"col-sm-10">
321 <p class=
"form-control no-border">
322 Use path
<code>m/
0'/
0</code>.
323 For more info see the
<a href=
"https://www.hivewallet.com/" target=
"_blank">Hive Wallet homepage
</a>
327 <div class=
"form-group">
328 <label for=
"mycelium-path" class=
"col-sm-2 control-label">Mycelium Wallet
</label>
329 <div class=
"col-sm-10">
330 <p class=
"form-control no-border">
331 Use path
<code>m/
44'/
0'/
0'/
0</code>.
332 For more info see the
<a href=
"http://www.mycelium.com/" target=
"_blank">Mycelium Wallet homepage
</a>
336 <div class=
"form-group">
337 <label for=
"core-path" class=
"col-sm-2 control-label">Bitcoin Core
</label>
338 <div class=
"col-sm-10">
339 <p class=
"form-control no-border">
340 Use path
<code>m/
0'/
0'
</code> with hardened addresses.
341 For more info see the
<a href=
"https://github.com/bitcoin/bitcoin/pull/8035" target=
"_blank">Bitcoin Core BIP32 implementation
</a>
345 <div class=
"form-group">
346 <label class=
"col-sm-2 control-label">Block Explorers
</label>
347 <div class=
"col-sm-10">
348 <p class=
"form-control no-border">
349 Use path
<code>m/
44'/
0'/
0'
</code>.
350 Only enter the
<code>xpub
</code> extended key into block explorer search fields, never the
<code>xpriv
</code> key.
357 <form class=
"form-horizontal" role=
"form">
358 <div class=
"form-group">
359 <label for=
"extended-priv-key" class=
"col-sm-2 control-label">BIP32 Extended Key
</label>
360 <div class=
"col-sm-10">
361 <textarea id=
"extended-priv-key" class=
"extended-priv-key form-control" readonly=
"readonly"></textarea>
364 <div class=
"form-group">
365 <label for=
"extended-pub-key" class=
"col-sm-2 control-label">BIP32 Extended Key (addresses only)
</label>
366 <div class=
"col-sm-10">
367 <textarea id=
"extended-pub-key" class=
"extended-pub-key form-control" readonly=
"readonly"></textarea>
377 <div class=
"col-md-12">
378 <h2>Derived Addresses
</h2>
379 <p>Note these addreses are derived from the
<strong>BIP32 Extended Key
</strong></p>
380 <table class=
"table table-striped">
383 <div class=
"input-group">
385 <button class=
"index-toggle">Toggle
</button>
389 <div class=
"input-group">
391 <button class=
"address-toggle">Toggle
</button>
395 <div class=
"input-group">
396 Public Key
397 <button class=
"public-key-toggle">Toggle
</button>
401 <div class=
"input-group">
402 Private Key
403 <button class=
"private-key-toggle">Toggle
</button>
407 <tbody class=
"addresses monospace">
408 <tr><td> </td><td> </td><td> </td></tr>
409 <tr><td> </td><td> </td><td> </td></tr>
410 <tr><td> </td><td> </td><td> </td></tr>
411 <tr><td> </td><td> </td><td> </td></tr>
412 <tr><td> </td><td> </td><td> </td></tr>
417 <span>Show next
</button>
418 <input type=
"number" class=
"rows-to-add" value=
"20">
419 <button class=
"more">Show
</button>
424 <div class=
"col-md-12">
426 <h3>BIP39
<span class=
"small">Mnemonic code for generating deterministic keys
</span></h3>
429 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">official BIP39 spec
</a>
431 <h3>BIP32
<span class=
"small">Hierarchical Deterministic Wallets
</span></h3>
434 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">official BIP32 spec
</a>
436 <a href=
"http://bip32.org/" target=
"_blank">bip32.org
</a>
438 <h3>BIP44
<span class=
"small">Multi-Account Hierarchy for Deterministic Wallets
</span></h3>
441 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">official BIP44 spec
</a>
443 <h3>Private Keys
</h3>
446 <a href=
"https://web.archive.org/web/20150707020924/https://brainwallet.org/" target=
"_blank">brainwallet.org
</a>,
447 but be careful - it can be easy to make mistakes if you
448 don't know what you're doing
450 <h3 id=
"entropy-notes">Entropy
</h3>
452 Entropy values must be sourced from a
453 <a href=
"https://en.wikipedia.org/wiki/Random_number_generation" target=
"_blank">strong source of randomness
</a>.
454 This means flipping a fair coin, rolling a fair dice, noise measurements etc. Do
<strong>NOT
</strong> use
455 phrases from books, lyrics from songs, your birthday or steet address, keyboard mashing, or anything you
<i>think
</i>
456 is random, because chances are
<em>overwhelming
</em> that it isn't random enough for the needs of this tool.
459 The random mnemonic generator on this page uses a
460 <a href=
"https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues" target=
"_blank">cryptographically secure random number generator
</a>,
461 and can generally be trusted more than your own intuition about randomness.
462 If cryptographic randomness isn't available in your browser, this page will show a warning and
<i>will not generate
463 random mnemonics
</i>.
466 <a href=
"https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target=
"_blank">You are not a good source of entropy.
</a>
474 <div class=
"col-md-12">
476 <h2>Offline Usage
</h2>
479 You can use this tool without having to be online.
482 In your browser, select file save-as, and save this page
486 Double-click that file to open it in a browser
487 on any offline computer.
490 Alternatively, download it from
491 <a href=
"https://github.com/iancoleman/bip39">
492 https://github.com/iancoleman/bip39
501 <div class=
"col-md-12">
503 <h2>This project is
100% open-source code
</h2>
506 <span>Get the source code at -
</span>
507 <a href=
"https://github.com/iancoleman/bip39" target=
"_blank">
508 https://github.com/iancoleman/bip39
515 <span>BitcoinJS -
</span>
516 <a href=
"https://github.com/bitcoinjs/bitcoinjs-lib" target=
"_blank">
517 https://github.com/bitcoinjs/bitcoinjs-lib
522 <span>jsBIP39 -
</span>
523 <a href=
"https://github.com/iancoleman/jsbip39" target=
"_blank">
524 https://github.com/iancoleman/jsbip39
530 <a href=
"https://github.com/bitwiseshiftleft/sjcl" target=
"_blank">
531 https://github.com/bitwiseshiftleft/sjcl
536 <span>jQuery -
</span>
537 <a href=
"https://jquery.com/" target=
"_blank">
543 <span>Twitter Bootstrap -
</span>
544 <a href=
"http://getbootstrap.com/" target=
"_blank">
545 http://getbootstrap.com/
554 <div class=
"feedback-container">
555 <div class=
"feedback">Loading...
</div>
558 <script type=
"text/template" id=
"address-row-template">
560 <td class=
"index"><span></span></td>
561 <td class=
"address"><span></span></td>
562 <td class=
"pubkey"><span></span></td>
563 <td class=
"privkey"><span></span></td>
566 <script src=
"js/jquery.min.js"></script>
567 <script src=
"js/bootstrap.min.js"></script>
568 <script src=
"js/levenshtein.js"></script>
569 <script src=
"js/bitcoinjs-1-5-7.js"></script>
570 <script src=
"js/bitcoinjs-extensions.js"></script>
571 <script src=
"js/sjcl-bip39.js"></script>
572 <script src=
"js/wordlist_english.js"></script>
573 <script src=
"js/wordlist_japanese.js"></script>
574 <script src=
"js/wordlist_spanish.js"></script>
575 <script src=
"js/wordlist_chinese_simplified.js"></script>
576 <script src=
"js/wordlist_chinese_traditional.js"></script>
577 <script src=
"js/wordlist_french.js"></script>
578 <script src=
"js/wordlist_italian.js"></script>
579 <script src=
"js/jsbip39.js"></script>
580 <script src=
"js/biginteger.js"></script>
581 <script src=
"js/zxcvbn.js"></script>
582 <script src=
"js/entropy.js"></script>
583 <script src=
"js/index.js"></script>