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 {
67 <div class=
"container">
69 <h1 class=
"text-center">Mnemonic Code Converter
</h1>
72 <div class=
"col-md-12">
74 <form class=
"form-horizontal" role=
"form">
75 <div class=
"form-group">
76 <div class=
"col-sm-2"></div>
77 <div class=
"col-sm-10">
78 <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>
79 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target=
"_blank">BIP39 spec
</a></p>
82 <div class=
"form-group generate-container">
83 <label class=
"col-sm-2 control-label"></label>
84 <div class=
"col-sm-10">
85 <div class=
"form-inline">
86 <div class=
"input-group-inline">
87 <button class=
"btn generate">Generate
</button>
89 <select id=
"strength" class=
"strength form-control">
90 <option value=
"3">3</option>
91 <option value=
"6">6</option>
92 <option value=
"9">9</option>
93 <option value=
"12">12</option>
94 <option value=
"15" selected
>15</option>
95 <option value=
"18">18</option>
96 <option value=
"21">21</option>
97 <option value=
"24">24</option>
99 word mnemonic, or enter your own below.
104 <div class=
"entropy-container hidden">
105 <div class=
"form-group text-danger">
106 <label class=
"col-sm-2 control-label">Warning
</label>
107 <div class=
"col-sm-10 form-control-static">
108 Entropy is an advanced feature.
109 Your mnemonic may be insecure if this feature is used incorrectly.
110 <a href=
"#entropy-notes">Read more
</a>
113 <div class=
"form-group">
114 <label for=
"entropy" class=
"col-sm-2 control-label">Entropy
</label>
115 <div class=
"col-sm-7">
116 <textarea id=
"entropy" rows=
"2" class=
"entropy form-control" placeholder=
"Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards"></textarea>
117 <label class=
"col-sm-3 control-label">Strength
</label>
118 <div class=
"strength col-sm-3 form-control-static"></div>
119 <label class=
"col-sm-3 control-label">Event Count
</label>
120 <div class=
"event-count col-sm-3 form-control-static"></div>
121 <label class=
"col-sm-3 control-label">Entropy Type
</label>
122 <div class=
"type col-sm-3 form-control-static"></div>
123 <label class=
"col-sm-3 control-label">Bits Per Event
</label>
124 <div class=
"bits-per-event col-sm-3 form-control-static"></div>
125 <label class=
"col-sm-3 control-label">Word Count
</label>
126 <div class=
"word-count col-sm-3 form-control-static"></div>
127 <label class=
"col-sm-3 control-label">Total Bits
</label>
128 <div class=
"bits col-sm-3 form-control-static"></div>
129 <label class=
"col-sm-3 control-label">Filtered Entropy
</label>
130 <div class=
"filtered col-sm-9 form-control-static"></div>
131 <label class=
"col-sm-3 control-label">Raw Binary
</label>
132 <div class=
"binary col-sm-9 form-control-static"></div>
133 <label class=
"col-sm-3 control-label">Mnemonic Length
</label>
134 <div class=
"col-sm-9">
135 <select class=
"mnemonic-length form-control">
136 <option value=
"raw">From entropy length (
3 words per
32 bits)
</option>
137 <option value=
"12">12 Words
</option>
138 <option value=
"15">15 Words
</option>
139 <option value=
"18">18 Words
</option>
140 <option value=
"21">21 Words
</option>
141 <option value=
"24">24 Words
</option>
145 <div class=
"col-sm-3">
146 <p>Valid entropy values include:
</p>
148 <li><strong>Binary
</strong> [
0-
1]
<br>101010011</li>
149 <li><strong>Base
6</strong> [
0-
5]
<br>123434014</li>
150 <li><strong>Dice
</strong> [
1-
6]
<br>62535634</li>
151 <li><strong>Base
10</strong> [
0-
9]
<br>90834528</li>
152 <li><strong>Hex
</strong> [
0-
9A-F]
<br>4187a8bfd9
</li>
153 <li><strong>Card
</strong> [A2-
9TJQK][CDHS]
<br>ahqs9dtc
</li>
158 <div class=
"form-group">
159 <div class=
"col-sm-2"></div>
160 <div class=
"col-sm-10 checkbox">
162 <input type=
"checkbox" class=
"use-entropy">
163 Supply my own source of entropy
167 <div class=
"form-group">
168 <label class=
"col-sm-2 control-label"></label>
169 <div class=
"col-sm-10 languages">
170 <a href=
"#english">English
</a>
171 <a href=
"#japanese" title=
"Japanese">日本語
</a>
172 <a href=
"#spanish" title=
"Spanish">Español
</a>
173 <a href=
"#chinese_simplified" title=
"Chinese (Simplified)">中文(简体)
</a>
174 <a href=
"#chinese_traditional" title=
"Chinese (Traditional)">中文(繁體)
</a>
175 <a href=
"#french" title=
"French">Français
</a>
176 <a href=
"#italian" title=
"Italian">Italiano
</a>
179 <div class=
"form-group">
180 <label for=
"phrase" class=
"col-sm-2 control-label">BIP39 Mnemonic
</label>
181 <div class=
"col-sm-10">
182 <textarea id=
"phrase" class=
"phrase form-control"></textarea>
185 <div class=
"form-group">
186 <label for=
"passphrase" class=
"col-sm-2 control-label">BIP39 Passphrase (optional)
</label>
187 <div class=
"col-sm-10">
188 <textarea id=
"passphrase" class=
"passphrase form-control"></textarea>
191 <div class=
"form-group">
192 <label for=
"seed" class=
"col-sm-2 control-label">BIP39 Seed
</label>
193 <div class=
"col-sm-10">
194 <textarea id=
"seed" class=
"seed form-control" readonly=
"readonly"></textarea>
197 <div class=
"form-group">
198 <label for=
"network-phrase" class=
"col-sm-2 control-label">Coin
</label>
199 <div class=
"col-sm-10">
200 <select id=
"network-phrase" class=
"network form-control">
201 <!-- populated by javascript -->
205 <div class=
"form-group">
206 <label for=
"root-key" class=
"col-sm-2 control-label">BIP32 Root Key
</label>
207 <div class=
"col-sm-10">
208 <textarea id=
"root-key" class=
"root-key form-control"></textarea>
218 <div class=
"col-md-12">
219 <h2>Derivation Path
</h2>
220 <ul class=
"derivation-type nav nav-tabs" role=
"tablist">
221 <li id=
"bip44-tab" class=
"active">
222 <a href=
"#bip44" role=
"tab" data-toggle=
"tab">BIP44
</a>
225 <a href=
"#bip32" role=
"tab" data-toggle=
"tab">BIP32
</a>
228 <div class=
"derivation-type tab-content">
229 <div id=
"bip44" class=
"tab-pane active">
230 <form class=
"form-horizontal" role=
"form">
232 <div class=
"col-sm-2"></div>
233 <div class=
"col-sm-10">
234 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">BIP44 spec
</a></p>
236 <div class=
"form-group">
237 <label for=
"purpose" class=
"col-sm-2 control-label">
238 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target=
"_blank">Purpose
</a>
240 <div class=
"col-sm-10">
241 <input id=
"purpose" type=
"text" class=
"purpose form-control" value=
"44">
244 <div class=
"form-group">
245 <label for=
"coin" class=
"col-sm-2 control-label">
246 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target=
"_blank">Coin
</a>
248 <div class=
"col-sm-10">
249 <input id=
"coin" type=
"text" class=
"coin form-control" value=
"0">
252 <div class=
"form-group">
253 <label for=
"account" class=
"col-sm-2 control-label">
254 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target=
"_blank">Account
</a>
256 <div class=
"col-sm-10">
257 <input id=
"account" type=
"text" class=
"account form-control" value=
"0">
260 <div class=
"form-group">
261 <label for=
"change" class=
"col-sm-2 control-label">
262 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target=
"_blank">External / Internal
</a>
264 <div class=
"col-sm-10">
265 <input id=
"change" type=
"text" class=
"change form-control" value=
"0">
268 <div class=
"form-group">
269 <label for=
"bip44-path" class=
"col-sm-2 control-label">BIP32 Derivation Path
</label>
270 <div class=
"col-sm-10">
271 <input id=
"bip44-path" type=
"text" class=
"path form-control" value=
"m/44'/0'/0'/0" readonly=
"readonly">
276 <div id=
"bip32" class=
"tab-pane">
277 <form class=
"form-horizontal" role=
"form">
279 <div class=
"col-sm-2"></div>
280 <div class=
"col-sm-10">
281 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">BIP32 spec
</a></p>
283 <div class=
"form-group">
284 <label for=
"bip32-path" class=
"col-sm-2 control-label">BIP32 Derivation Path
</label>
285 <div class=
"col-sm-10">
286 <input id=
"bip32-path" type=
"text" class=
"path form-control" value=
"m/0">
289 <div class=
"form-group">
290 <div class=
"col-sm-2"></div>
291 <label class=
"col-sm-10">
292 <input class=
"hardened-addresses" type=
"checkbox">
293 Use hardened addresses
296 <div class=
"form-group">
297 <label class=
"col-sm-2 control-label">Hive Wallet
</label>
298 <div class=
"col-sm-10">
299 <p class=
"form-control no-border">
300 Use path
<code>m/
0'/
0</code>.
301 For more info see the
<a href=
"https://www.hivewallet.com/" target=
"_blank">Hive Wallet homepage
</a>
305 <div class=
"form-group">
306 <label for=
"mycelium-path" class=
"col-sm-2 control-label">Mycelium Wallet
</label>
307 <div class=
"col-sm-10">
308 <p class=
"form-control no-border">
309 Use path
<code>m/
44'/
0'/
0'/
0</code>.
310 For more info see the
<a href=
"http://www.mycelium.com/" target=
"_blank">Mycelium Wallet homepage
</a>
314 <div class=
"form-group">
315 <label for=
"core-path" class=
"col-sm-2 control-label">Bitcoin Core
</label>
316 <div class=
"col-sm-10">
317 <p class=
"form-control no-border">
318 Use path
<code>m/
0'/
0'
</code> with hardened addresses.
319 For more info see the
<a href=
"https://github.com/bitcoin/bitcoin/pull/8035" target=
"_blank">Bitcoin Core BIP32 implementation
</a>
323 <div class=
"form-group">
324 <label class=
"col-sm-2 control-label">Block Explorers
</label>
325 <div class=
"col-sm-10">
326 <p class=
"form-control no-border">
327 Use path
<code>m/
44'/
0'/
0'
</code>.
328 Only enter the
<code>xpub
</code> extended key into block explorer search fields, never the
<code>xpriv
</code> key.
335 <form class=
"form-horizontal" role=
"form">
336 <div class=
"form-group">
337 <label for=
"extended-priv-key" class=
"col-sm-2 control-label">BIP32 Extended Key
</label>
338 <div class=
"col-sm-10">
339 <textarea id=
"extended-priv-key" class=
"extended-priv-key form-control" readonly=
"readonly"></textarea>
342 <div class=
"form-group">
343 <label for=
"extended-pub-key" class=
"col-sm-2 control-label">BIP32 Extended Key (addresses only)
</label>
344 <div class=
"col-sm-10">
345 <textarea id=
"extended-pub-key" class=
"extended-pub-key form-control" readonly=
"readonly"></textarea>
355 <div class=
"col-md-12">
356 <h2>Derived Addresses
</h2>
357 <p>Note these addreses are derived from the
<strong>BIP32 Extended Key
</strong></p>
358 <table class=
"table table-striped">
361 <div class=
"input-group">
363 <button class=
"index-toggle">Toggle
</button>
367 <div class=
"input-group">
369 <button class=
"address-toggle">Toggle
</button>
373 <div class=
"input-group">
374 Public Key
375 <button class=
"public-key-toggle">Toggle
</button>
379 <div class=
"input-group">
380 Private Key
381 <button class=
"private-key-toggle">Toggle
</button>
385 <tbody class=
"addresses monospace">
386 <tr><td> </td><td> </td><td> </td></tr>
387 <tr><td> </td><td> </td><td> </td></tr>
388 <tr><td> </td><td> </td><td> </td></tr>
389 <tr><td> </td><td> </td><td> </td></tr>
390 <tr><td> </td><td> </td><td> </td></tr>
395 <span>Show next
</button>
396 <input type=
"number" class=
"rows-to-add" value=
"20">
397 <button class=
"more">Show
</button>
402 <div class=
"col-md-12">
404 <h3>BIP39
<span class=
"small">Mnemonic code for generating deterministic keys
</span></h3>
407 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">official BIP39 spec
</a>
409 <h3>BIP32
<span class=
"small">Hierarchical Deterministic Wallets
</span></h3>
412 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">official BIP32 spec
</a>
414 <a href=
"http://bip32.org/" target=
"_blank">bip32.org
</a>
416 <h3>BIP44
<span class=
"small">Multi-Account Hierarchy for Deterministic Wallets
</span></h3>
419 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">official BIP44 spec
</a>
421 <h3>Private Keys
</h3>
424 <a href=
"https://web.archive.org/web/20150707020924/https://brainwallet.org/" target=
"_blank">brainwallet.org
</a>,
425 but be careful - it can be easy to make mistakes if you
426 don't know what you're doing
428 <h3 id=
"entropy-notes">Entropy
</h3>
430 Entropy values must be sourced from a
431 <a href=
"https://en.wikipedia.org/wiki/Random_number_generation" target=
"_blank">strong source of randomness
</a>.
432 This means flipping a fair coin, rolling a fair dice, noise measurements etc. Do
<strong>NOT
</strong> use
433 phrases from books, lyrics from songs, your birthday or steet address, keyboard mashing, or anything you
<i>think
</i>
434 is random, because chances are
<em>overwhelming
</em> that it isn't random enough for the needs of this tool.
437 The random mnemonic generator on this page uses a
438 <a href=
"https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues" target=
"_blank">cryptographically secure random number generator
</a>,
439 and can generally be trusted more than your own intuition about randomness.
440 If cryptographic randomness isn't available in your browser, this page will show a warning and
<i>will not generate
441 random mnemonics
</i>.
444 <a href=
"https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target=
"_blank">You are not a good source of entropy.
</a>
452 <div class=
"col-md-12">
454 <h2>Offline Usage
</h2>
457 You can use this tool without having to be online.
460 In your browser, select file save-as, and save this page
464 Double-click that file to open it in a browser
465 on any offline computer.
468 Alternatively, download it from
469 <a href=
"https://github.com/iancoleman/bip39">
470 https://github.com/iancoleman/bip39
479 <div class=
"col-md-12">
481 <h2>This project is
100% open-source code
</h2>
484 <span>Get the source code at -
</span>
485 <a href=
"https://github.com/iancoleman/bip39" target=
"_blank">
486 https://github.com/iancoleman/bip39
493 <span>BitcoinJS -
</span>
494 <a href=
"https://github.com/bitcoinjs/bitcoinjs-lib" target=
"_blank">
495 https://github.com/bitcoinjs/bitcoinjs-lib
500 <span>jsBIP39 -
</span>
501 <a href=
"https://github.com/iancoleman/jsbip39" target=
"_blank">
502 https://github.com/iancoleman/jsbip39
508 <a href=
"https://github.com/bitwiseshiftleft/sjcl" target=
"_blank">
509 https://github.com/bitwiseshiftleft/sjcl
514 <span>jQuery -
</span>
515 <a href=
"https://jquery.com/" target=
"_blank">
521 <span>Twitter Bootstrap -
</span>
522 <a href=
"http://getbootstrap.com/" target=
"_blank">
523 http://getbootstrap.com/
532 <div class=
"feedback-container">
533 <div class=
"feedback">Loading...
</div>
536 <script type=
"text/template" id=
"address-row-template">
538 <td class=
"index"><span></span></td>
539 <td class=
"address"><span></span></td>
540 <td class=
"pubkey"><span></span></td>
541 <td class=
"privkey"><span></span></td>
544 <script src=
"js/jquery.min.js"></script>
545 <script src=
"js/bootstrap.min.js"></script>
546 <script src=
"js/levenshtein.js"></script>
547 <script src=
"js/bitcoinjs-1-5-7.js"></script>
548 <script src=
"js/bitcoinjs-extensions.js"></script>
549 <script src=
"js/sjcl-bip39.js"></script>
550 <script src=
"js/wordlist_english.js"></script>
551 <script src=
"js/wordlist_japanese.js"></script>
552 <script src=
"js/wordlist_spanish.js"></script>
553 <script src=
"js/wordlist_chinese_simplified.js"></script>
554 <script src=
"js/wordlist_chinese_traditional.js"></script>
555 <script src=
"js/wordlist_french.js"></script>
556 <script src=
"js/wordlist_italian.js"></script>
557 <script src=
"js/jsbip39.js"></script>
558 <script src=
"js/zxcvbn.js"></script>
559 <script src=
"js/entropy.js"></script>
560 <script src=
"js/index.js"></script>