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;
54 .languages a:nth-of-type(
1) {
59 font-family: monospace;
61 .entropy-container .filtered,
62 .entropy-container .binary {
63 word-wrap: break-word;
65 .entropy-container li {
89 background-color: #FFF;
90 border:
1px solid #CCC;
101 <div class=
"container">
103 <h1 class=
"text-center">Mnemonic Code Converter
</h1>
106 <div class=
"col-md-12">
108 <form class=
"form-horizontal" role=
"form">
109 <div class=
"form-group">
110 <div class=
"col-sm-2"></div>
111 <div class=
"col-sm-10">
112 <p data-translate
>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>
113 <p data-translate-html
>
114 For more info see the
115 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target=
"_blank">BIP39 spec
</a>.
119 <div class=
"form-group generate-container">
120 <label class=
"col-sm-2 control-label"></label>
121 <div class=
"col-sm-10">
122 <div class=
"form-inline">
123 <div class=
"input-group-inline">
124 <span data-translate
>Generate a random mnemonic, or enter your own below
</span>:
125 <button class=
"btn generate">Generate
</button>
126 <select id=
"strength" class=
"strength form-control">
127 <option value=
"3">3</option>
128 <option value=
"6">6</option>
129 <option value=
"9">9</option>
130 <option value=
"12">12</option>
131 <option value=
"15" selected
>15</option>
132 <option value=
"18">18</option>
133 <option value=
"21">21</option>
134 <option value=
"24">24</option>
136 <span data-translate
>words
</span>
141 <div class=
"entropy-container hidden">
142 <div class=
"form-group text-danger">
143 <label class=
"col-sm-2 control-label" data-translate
>Warning
</label>
144 <div class=
"col-sm-10 form-control-static">
145 <span data-translate
>Entropy is an advanced feature. Your mnemonic may be insecure if this feature is used incorrectly.
</span>
146 <a href=
"#entropy-notes" data-translate
>Read more
</a>
149 <div class=
"form-group">
150 <label for=
"entropy" class=
"col-sm-2 control-label" data-translate
>Entropy
</label>
151 <div class=
"col-sm-7">
152 <textarea id=
"entropy" rows=
"2" class=
"entropy form-control" placeholder=
"Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards" data-translate-placeholder
></textarea>
154 <label class=
"col-sm-3 control-label" data-translate
>Strength
</label>
155 <div class=
"strength col-sm-3 form-control-static"></div>
156 <label class=
"col-sm-3 control-label" data-translate
>Event Count
</label>
157 <div class=
"event-count col-sm-3 form-control-static"></div>
160 <label class=
"col-sm-3 control-label" data-translate
>Entropy Type
</label>
161 <div class=
"type col-sm-3 form-control-static"></div>
162 <label class=
"col-sm-3 control-label" data-translate
>Bits Per Event
</label>
163 <div class=
"bits-per-event col-sm-3 form-control-static"></div>
166 <label class=
"col-sm-3 control-label" data-translate
>Word Count
</label>
167 <div class=
"word-count col-sm-3 form-control-static"></div>
168 <label class=
"col-sm-3 control-label" data-translate
>Total Bits
</label>
169 <div class=
"bits col-sm-3 form-control-static"></div>
171 <label class=
"col-sm-3 control-label" data-translate
>Filtered Entropy
</label>
172 <div class=
"filtered col-sm-9 form-control-static"></div>
173 <label class=
"col-sm-3 control-label" data-translate
>Raw Binary
</label>
174 <div class=
"binary col-sm-9 form-control-static"></div>
175 <label class=
"col-sm-3 control-label" data-translate
>Mnemonic Length
</label>
176 <div class=
"col-sm-9">
177 <select class=
"mnemonic-length form-control">
178 <option value=
"raw" data-translate
>From entropy length (
3 words per
32 bits)
</option>
179 <option value=
"12">12 <span data-translate
>Words
</span></option>
180 <option value=
"15" selected
>15 <span data-translate
>Words
</option>
181 <option value=
"18">18 <span data-translate
>Words
</span></option>
182 <option value=
"21">21 <span data-translate
>Words
</span></option>
183 <option value=
"24">24 <span data-translate
>Words
</span></option>
187 <div class=
"col-sm-3">
188 <p data-translate
>Valid entropy values include:
</p>
190 <li><strong data-translate
>Binary
</strong> [
0-
1]
<br>101010011</li>
191 <li><strong data-translate
>Base
6</strong> [
0-
5]
<br>123434014</li>
192 <li><strong data-translate
>Dice
</strong> [
1-
6]
<br>62535634</li>
193 <li><strong data-translate
>Base
10</strong> [
0-
9]
<br>90834528</li>
194 <li><strong data-translate
>Hex
</strong> [
0-
9A-F]
<br>4187a8bfd9
</li>
195 <li><strong data-translate
>Card
</strong> [A2-
9TJQK][CDHS]
<br>ahqs9dtc
</li>
200 <div class=
"form-group">
201 <div class=
"col-sm-2"></div>
202 <div class=
"col-sm-10 checkbox">
204 <input type=
"checkbox" class=
"use-entropy">
205 <span data-translate
>Supply my own source of entropy
</span>
209 <div class=
"form-group">
210 <label class=
"col-sm-2 control-label" data-translate
>Mnemonic Language
</label>
211 <div class=
"col-sm-10 languages">
212 <div class=
"form-control no-border">
213 <a href=
"#english">English
</a>
214 <a href=
"#japanese" title=
"Japanese">日本語
</a>
215 <a href=
"#spanish" title=
"Spanish">Español
</a>
216 <a href=
"#chinese_simplified" title=
"Chinese (Simplified)">中文(简体)
</a>
217 <a href=
"#chinese_traditional" title=
"Chinese (Traditional)">中文(繁體)
</a>
218 <a href=
"#french" title=
"French">Français
</a>
219 <a href=
"#italian" title=
"Italian">Italiano
</a>
223 <div class=
"form-group">
224 <label for=
"phrase" class=
"col-sm-2 control-label" data-translate
>BIP39 Mnemonic
</label>
225 <div class=
"col-sm-10">
226 <textarea id=
"phrase" class=
"phrase form-control" data-show-qr
></textarea>
229 <div class=
"form-group">
230 <label for=
"passphrase" class=
"col-sm-2 control-label" data-translate
>BIP39 Passphrase (optional)
</label>
231 <div class=
"col-sm-10">
232 <textarea id=
"passphrase" class=
"passphrase form-control"></textarea>
235 <div class=
"form-group">
236 <label for=
"seed" class=
"col-sm-2 control-label" data-translate
>BIP39 Seed
</label>
237 <div class=
"col-sm-10">
238 <textarea id=
"seed" class=
"seed form-control" readonly=
"readonly" data-show-qr
></textarea>
241 <div class=
"form-group">
242 <label for=
"network-phrase" class=
"col-sm-2 control-label" data-translate
>Coin
</label>
243 <div class=
"col-sm-10">
244 <select id=
"network-phrase" class=
"network form-control">
245 <!-- populated by javascript -->
249 <div class=
"form-group">
250 <label for=
"root-key" class=
"col-sm-2 control-label" data-translate
>BIP32 Root Key
</label>
251 <div class=
"col-sm-10">
252 <textarea id=
"root-key" class=
"root-key form-control" data-show-qr
></textarea>
262 <div class=
"col-md-12">
263 <h2>Derivation Path
</h2>
264 <ul class=
"derivation-type nav nav-tabs" role=
"tablist">
265 <li id=
"bip44-tab" class=
"active">
266 <a href=
"#bip44" role=
"tab" data-toggle=
"tab">BIP44
</a>
269 <a href=
"#bip32" role=
"tab" data-toggle=
"tab">BIP32
</a>
272 <div class=
"derivation-type tab-content">
273 <div id=
"bip44" class=
"tab-pane active">
274 <form class=
"form-horizontal" role=
"form">
276 <div class=
"col-sm-2"></div>
277 <div class=
"col-sm-10">
278 <p data-translate-html
>
279 For more info see the
280 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">BIP44 spec
</a>.
283 <div class=
"form-group">
284 <label for=
"purpose" class=
"col-sm-2 control-label">
285 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target=
"_blank" data-translate
>Purpose
</a>
287 <div class=
"col-sm-10">
288 <input id=
"purpose" type=
"text" class=
"purpose form-control" value=
"44">
291 <div class=
"form-group">
292 <label for=
"coin" class=
"col-sm-2 control-label">
293 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target=
"_blank" data-translate
>Coin
</a>
295 <div class=
"col-sm-10">
296 <input id=
"coin" type=
"text" class=
"coin form-control" value=
"0">
299 <div class=
"form-group">
300 <label for=
"account" class=
"col-sm-2 control-label">
301 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target=
"_blank" data-translate
>Account
</a>
303 <div class=
"col-sm-10">
304 <input id=
"account" type=
"text" class=
"account form-control" value=
"0">
307 <div class=
"form-group">
308 <label for=
"change" class=
"col-sm-2 control-label">
309 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target=
"_blank" data-translate
>External / Internal
</a>
311 <div class=
"col-sm-10">
312 <input id=
"change" type=
"text" class=
"change form-control" value=
"0">
315 <div class=
"form-group">
316 <label for=
"bip44-path" class=
"col-sm-2 control-label" data-translate
>BIP32 Derivation Path
</label>
317 <div class=
"col-sm-10">
318 <input id=
"bip44-path" type=
"text" class=
"path form-control" value=
"m/44'/0'/0'/0" readonly=
"readonly">
323 <div id=
"bip32" class=
"tab-pane">
324 <form class=
"form-horizontal" role=
"form">
326 <div class=
"col-sm-2"></div>
327 <div class=
"col-sm-10">
329 For more info see the
330 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">BIP32 spec
</a>
333 <div class=
"form-group">
334 <label for=
"bip32-path" class=
"col-sm-2 control-label" data-translate
>BIP32 Derivation Path
</label>
335 <div class=
"col-sm-10">
336 <input id=
"bip32-path" type=
"text" class=
"path form-control" value=
"m/0">
339 <div class=
"form-group">
340 <div class=
"col-sm-2"></div>
341 <label class=
"col-sm-10">
342 <input class=
"hardened-addresses" type=
"checkbox">
343 <span data-translate
>Use hardened addresses
</span>
346 <div class=
"form-group">
347 <label for=
"mycelium-path" class=
"col-sm-2 control-label" data-translate
>Mycelium Wallet
</label>
348 <div class=
"col-sm-10">
349 <p class=
"form-control no-border" data-translate-html
>
350 <code>m/
44'/
0'/
0'
</code> generates extended keys for import / export
352 <p class=
"form-control no-border" data-translate-html
>
353 <code>m/
44'/
0'/
1'
</code> for the next account. Continue incrementing for more accounts (most use a single account).
355 <p class=
"form-control no-border" data-translate-html
>
356 <code>m/
44'/
0'/
0'/
0</code> generates public addresses
358 <p class=
"form-control no-border" data-translate-html
>
359 <code>m/
44'/
0'/
0'/
1</code> generates change addresses
361 <p class=
"form-control no-border" data-translate-html
>
362 For more info see the
363 <a href=
"http://www.mycelium.com/" target=
"_blank">Mycelium Wallet homepage
</a>
367 <div class=
"form-group">
368 <label for=
"core-path" class=
"col-sm-2 control-label" data-translate
>Bitcoin Core
</label>
369 <div class=
"col-sm-10">
370 <p class=
"form-control no-border" data-translate-html
>
371 Use path
<code>m/
0'/
0'
</code> with hardened addresses.
373 <p class=
"form-control no-border" data-translate-html
>
374 For more info see the
375 <a href=
"https://github.com/bitcoin/bitcoin/pull/8035" target=
"_blank">Bitcoin Core BIP32 implementation
</a>
379 <div class=
"form-group">
380 <label class=
"col-sm-2 control-label" data-translate
>Block Explorers
</label>
381 <div class=
"col-sm-10">
382 <p class=
"form-control no-border">
383 <span data-translate-html
>Use path
<code>m/
44'/
0'/
0'
</code>.
</span>
384 <span data-translate-html
>Only enter the
<code>xpub
</code> extended key into block explorer search fields, never the
<code>xprv
</code> key.
</span>
386 <p class=
"form-control no-border">
387 <span data-translate
>Can be used with
</span>:
388 <a href=
"https://blockchain.info/" target=
"_blank">blockchain.info
</a>
395 <form class=
"form-horizontal" role=
"form">
396 <div class=
"form-group">
397 <label for=
"extended-priv-key" class=
"col-sm-2 control-label" data-translate
>BIP32 Extended Key
</label>
398 <div class=
"col-sm-10">
399 <textarea id=
"extended-priv-key" class=
"extended-priv-key form-control" readonly=
"readonly" data-show-qr
></textarea>
402 <div class=
"form-group">
403 <label for=
"extended-pub-key" class=
"col-sm-2 control-label" data-translate
>BIP32 Extended Key (addresses only)
</label>
404 <div class=
"col-sm-10">
405 <textarea id=
"extended-pub-key" class=
"extended-pub-key form-control" readonly=
"readonly" data-show-qr
></textarea>
415 <div class=
"col-md-12">
416 <h2>Derived Addresses
</h2>
417 <p data-translate
>Note these addreses are derived from the BIP32 Extended Key
</p>
418 <table class=
"table table-striped">
421 <div class=
"input-group">
422 <span data-translate
>Path
</span>
423 <button class=
"index-toggle" data-translate
>Toggle
</button>
427 <div class=
"input-group">
428 <span data-translate
>Address
</span>
429 <button class=
"address-toggle" data-translate
>Toggle
</button>
433 <div class=
"input-group">
434 <span data-translate
>Public Key
</span>
435 <button class=
"public-key-toggle" data-translate
>Toggle
</button>
439 <div class=
"input-group">
440 <span data-translate
>Private Key
</span>
441 <button class=
"private-key-toggle" data-translate
>Toggle
</button>
445 <tbody class=
"addresses monospace">
446 <tr><td> </td><td> </td><td> </td><td> </td></tr>
447 <tr><td> </td><td> </td><td> </td><td> </td></tr>
448 <tr><td> </td><td> </td><td> </td><td> </td></tr>
449 <tr><td> </td><td> </td><td> </td><td> </td></tr>
450 <tr><td> </td><td> </td><td> </td><td> </td></tr>
455 <span data-translate
>Show more rows
</span>:
456 <input type=
"number" class=
"rows-to-add" value=
"20">
457 <button class=
"more" data-translate
>Show
</button>
462 <div class=
"col-md-12">
463 <h2 data-translate
>More info
</h2>
464 <h3>BIP39
<span class=
"small" data-translate
>Mnemonic code for generating deterministic keys
</span></h3>
465 <p data-translate-html
>
467 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">official BIP39 spec
</a>
469 <h3>BIP32
<span class=
"small" data-translate
>Hierarchical Deterministic Wallets
</span></h3>
470 <p data-translate-html
>
472 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">official BIP32 spec
</a>
474 <p data-translate-html
>
476 <a href=
"http://bip32.org/" target=
"_blank">bip32.org
</a>
478 <h3>BIP44
<span class=
"small" data-translate
>Multi-Account Hierarchy for Deterministic Wallets
</span></h3>
479 <p data-translate-html
>
481 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">official BIP44 spec
</a>
483 <h3 data-translate
>Private Keys
</h3>
485 <span data-translate-html
>
487 <a href=
"https://web.archive.org/web/20150707020924/https://brainwallet.org/" target=
"_blank">brainwallet.org
</a>.
489 <span data-translate
>Be careful - it can be easy to make mistakes if you don't know what you're doing.
</span>
491 <h3 id=
"entropy-notes" data-translate
>Entropy
</h3>
493 <span data-translate-html
>
494 Entropy values must be sourced from a
495 <a href=
"https://en.wikipedia.org/wiki/Random_number_generation" target=
"_blank">strong source of randomness
</a>.
497 <span data-translate
>This means flipping a fair coin, rolling a fair dice, noise measurements etc.
</span>
498 <span data-translate-html
>
499 Do
<strong>NOT
</strong> use phrases from books, lyrics from songs, your birthday or steet address,
500 keyboard mashing, or anything you
<i>think
</i> is random, because chances are overwhelming it isn't
501 random enough for the needs of this tool.
505 <span data-translate-html
>
506 The random mnemonic generator on this page uses a
507 <a href=
"https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues" target=
"_blank">cryptographically secure random number generator
</a>.
509 <span data-translate
>The built in random generator can generally be trusted more than your own intuition about randomness.
</span>
510 <span data-translate
>If cryptographic randomness isn't available in your browser, this page will show a warning and the generate button will not work.
</span>
511 <span data-translate
>In that case you might choose to use your own source of entropy.
</span>
514 <a href=
"https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target=
"_blank" data-translate
>You are not a good source of entropy.
</a>
522 <div class=
"col-md-12">
524 <h2 data-translate
>Offline Usage
</h2>
527 You can use this tool without having to be online.
530 In your browser, select file save-as, and save this page
534 Double-click that file to open it in a browser
535 on any offline computer.
538 <span data-translate
>Alternatively, download the file from the repository
</span>
540 <a href=
"https://github.com/iancoleman/bip39">https://github.com/iancoleman/bip39
</a>
549 <div class=
"col-md-12">
551 <h2 data-translate
>This project is
100% open-source code
</h2>
554 <span data-translate
>Get the source code from the repository
</span>
556 <a href=
"https://github.com/iancoleman/bip39" target=
"_blank">
557 https://github.com/iancoleman/bip39
561 <h3 data-translate
>Libraries
</h3>
564 <span>BitcoinJS -
</span>
565 <a href=
"https://github.com/bitcoinjs/bitcoinjs-lib" target=
"_blank">
566 https://github.com/bitcoinjs/bitcoinjs-lib
571 <span>jsBIP39 -
</span>
572 <a href=
"https://github.com/iancoleman/jsbip39" target=
"_blank">
573 https://github.com/iancoleman/jsbip39
579 <a href=
"https://github.com/bitwiseshiftleft/sjcl" target=
"_blank">
580 https://github.com/bitwiseshiftleft/sjcl
585 <span>jQuery -
</span>
586 <a href=
"https://jquery.com/" target=
"_blank">
592 <span>Twitter Bootstrap -
</span>
593 <a href=
"http://getbootstrap.com/" target=
"_blank">
594 http://getbootstrap.com/
603 <div class=
"qr-container hidden">
604 <div class=
"qr-hint bg-primary" data-translate
>Click field to hide QR
</div>
605 <div class=
"qr-hint bg-primary hidden" data-translate
>Click field to show QR
</div>
606 <div class=
"qr-image"></div>
609 <div class=
"feedback-container">
610 <div class=
"feedback">Loading...
</div>
613 <script type=
"text/template" id=
"address-row-template">
615 <td class=
"index"><span></span></td>
616 <td class=
"address"><span data-show-qr
></span></td>
617 <td class=
"pubkey"><span data-show-qr
></span></td>
618 <td class=
"privkey"><span data-show-qr
></span></td>
621 <script src=
"js/jquery.min.js"></script>
622 <script src=
"js/bootstrap.min.js"></script>
623 <script src=
"js/levenshtein.js"></script>
624 <script src=
"js/jquery.qrcode.min.js"></script>
625 <script src=
"js/bitcoinjs-1-5-7.js"></script>
626 <script src=
"js/bitcoinjs-extensions.js"></script>
627 <script src=
"js/sjcl-bip39.js"></script>
628 <script src=
"js/translate.js"></script>
629 <script src=
"js/phrases_en.js"></script>
630 <script src=
"js/wordlist_english.js"></script>
631 <script src=
"js/wordlist_japanese.js"></script>
632 <script src=
"js/wordlist_spanish.js"></script>
633 <script src=
"js/wordlist_chinese_simplified.js"></script>
634 <script src=
"js/wordlist_chinese_traditional.js"></script>
635 <script src=
"js/wordlist_french.js"></script>
636 <script src=
"js/wordlist_italian.js"></script>
637 <script src=
"js/jsbip39.js"></script>
638 <script src=
"js/biginteger.js"></script>
639 <script src=
"js/zxcvbn.js"></script>
640 <script src=
"js/entropy.js"></script>
641 <script src=
"js/index.js"></script>