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);
47 /* override mobile width from bootstrap */
48 width: auto!important;
49 display: inline-block;
55 font-family: monospace;
60 <div class=
"container">
62 <h1 class=
"text-center">Mnemonic Code Converter
</h1>
65 <div class=
"col-md-12">
67 <form class=
"form-horizontal" role=
"form">
68 <div class=
"form-group">
69 <div class=
"col-sm-2"></div>
70 <div class=
"col-sm-10">
71 <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>
72 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target=
"_blank">BIP39 spec
</a></p>
75 <div class=
"form-group generate-container">
76 <label class=
"col-sm-2 control-label"></label>
77 <div class=
"col-sm-10">
78 <div class=
"form-inline">
79 <div class=
"input-group-inline">
80 <button class=
"btn generate">Generate
</button>
82 <select id=
"strength" class=
"strength form-control">
83 <option value=
"3">3</option>
84 <option value=
"6">6</option>
85 <option value=
"9">9</option>
86 <option value=
"12">12</option>
87 <option value=
"15" selected
>15</option>
88 <option value=
"18">18</option>
89 <option value=
"21">21</option>
90 <option value=
"24">24</option>
92 word mnemonic, or enter your own below.
97 <div class=
"entropy-container hidden">
98 <div class=
"form-group">
99 <label for=
"entropy" class=
"col-sm-2 control-label">Entropy
</label>
100 <div class=
"col-sm-6">
101 <textarea id=
"entropy" rows=
"6" class=
"entropy form-control" placeholder=
"Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards"></textarea>
102 <span class=
"help-block">
103 <div class=
"text-danger">
104 This is an advanced feature.
105 Your mnemonic may be insecure if this feature is used incorrectly.
106 <a href=
"#entropy-notes">Read more
</a>
110 <div class=
"pull-right col-sm-4">
111 <p>Valid entropy values include:
</p>
113 <li>Binary: [
0-
1] eg
101010011</li>
114 <li>Base
6: [
0-
5] eg
123434014</li>
115 <li>Dice: [
1-
6] eg
62535634</li>
116 <li>Base
10: [
0-
9] eg
90834528</li>
117 <li>Hex: [
0-
9A-F] eg
4187a8bfd9
</li>
118 <li>Card: [A2-
9TJQK][CDHS] eg AHQS9DTC
</li>
122 <div class=
"entropy-feedback">
123 <div class=
"form-group">
124 <label class=
"col-sm-2 control-label">Filtered
</label>
125 <div class=
"filtered col-sm-10 form-control-static"></div>
127 <div class=
"form-group">
128 <label class=
"col-sm-2 control-label">Type
</label>
129 <div class=
"type col-sm-10 form-control-static"></div>
131 <div class=
"form-group">
132 <label class=
"col-sm-2 control-label">Strength
</label>
133 <div class=
"strength col-sm-10 form-control-static"></div>
135 <div class=
"form-group">
136 <label class=
"col-sm-2 control-label">Event Count
</label>
137 <div class=
"event-count col-sm-10 form-control-static"></div>
139 <div class=
"form-group">
140 <label class=
"col-sm-2 control-label">Bits Per Event
</label>
141 <div class=
"bits-per-event col-sm-10 form-control-static"></div>
143 <div class=
"form-group">
144 <label class=
"col-sm-2 control-label">Bits
</label>
145 <div class=
"bits col-sm-10 form-control-static"></div>
147 <div class=
"form-group">
148 <label class=
"col-sm-2 control-label">Mnemonic Length
</label>
149 <div class=
"col-sm-10">
150 <select class=
"mnemonic-length form-control">
151 <option value=
"raw">From entropy length (
3 words per
32 bits)
</option>
152 <option value=
"12">12 Words
</option>
153 <option value=
"15">15 Words
</option>
154 <option value=
"18">18 Words
</option>
155 <option value=
"21">21 Words
</option>
156 <option value=
"24">24 Words
</option>
162 <div class=
"form-group">
163 <div class=
"col-sm-2"></div>
164 <div class=
"col-sm-10 checkbox">
166 <input type=
"checkbox" class=
"use-entropy">
167 Supply my own source of entropy
171 <div class=
"form-group">
172 <label class=
"col-sm-2 control-label"></label>
173 <div class=
"col-sm-10 languages">
174 <a href=
"#english">English
</a>
175 <a href=
"#japanese" title=
"Japanese">日本語
</a>
176 <a href=
"#spanish" title=
"Spanish">Español
</a>
177 <a href=
"#chinese_simplified" title=
"Chinese (Simplified)">中文(简体)
</a>
178 <a href=
"#chinese_traditional" title=
"Chinese (Traditional)">中文(繁體)
</a>
179 <a href=
"#french" title=
"French">Français
</a>
180 <a href=
"#italian" title=
"Italian">Italiano
</a>
183 <div class=
"form-group">
184 <label for=
"phrase" class=
"col-sm-2 control-label">BIP39 Mnemonic
</label>
185 <div class=
"col-sm-10">
186 <textarea id=
"phrase" class=
"phrase form-control"></textarea>
189 <div class=
"form-group">
190 <label for=
"passphrase" class=
"col-sm-2 control-label">BIP39 Passphrase (optional)
</label>
191 <div class=
"col-sm-10">
192 <textarea id=
"passphrase" class=
"passphrase form-control"></textarea>
195 <div class=
"form-group">
196 <label for=
"seed" class=
"col-sm-2 control-label">BIP39 Seed
</label>
197 <div class=
"col-sm-10">
198 <textarea id=
"seed" class=
"seed form-control" readonly=
"readonly"></textarea>
201 <div class=
"form-group">
202 <label for=
"network-phrase" class=
"col-sm-2 control-label">Coin
</label>
203 <div class=
"col-sm-10">
204 <select id=
"network-phrase" class=
"network form-control">
205 <!-- populated by javascript -->
209 <div class=
"form-group">
210 <label for=
"root-key" class=
"col-sm-2 control-label">BIP32 Root Key
</label>
211 <div class=
"col-sm-10">
212 <textarea id=
"root-key" class=
"root-key form-control"></textarea>
222 <div class=
"col-md-12">
223 <h2>Derivation Path
</h2>
224 <ul class=
"derivation-type nav nav-tabs" role=
"tablist">
225 <li id=
"bip44-tab" class=
"active">
226 <a href=
"#bip44" role=
"tab" data-toggle=
"tab">BIP44
</a>
229 <a href=
"#bip32" role=
"tab" data-toggle=
"tab">BIP32
</a>
232 <div class=
"derivation-type tab-content">
233 <div id=
"bip44" class=
"tab-pane active">
234 <form class=
"form-horizontal" role=
"form">
236 <div class=
"col-sm-2"></div>
237 <div class=
"col-sm-10">
238 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">BIP44 spec
</a></p>
240 <div class=
"form-group">
241 <label for=
"purpose" class=
"col-sm-2 control-label">
242 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target=
"_blank">Purpose
</a>
244 <div class=
"col-sm-10">
245 <input id=
"purpose" type=
"text" class=
"purpose form-control" value=
"44">
248 <div class=
"form-group">
249 <label for=
"coin" class=
"col-sm-2 control-label">
250 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target=
"_blank">Coin
</a>
252 <div class=
"col-sm-10">
253 <input id=
"coin" type=
"text" class=
"coin form-control" value=
"0">
256 <div class=
"form-group">
257 <label for=
"account" class=
"col-sm-2 control-label">
258 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target=
"_blank">Account
</a>
260 <div class=
"col-sm-10">
261 <input id=
"account" type=
"text" class=
"account form-control" value=
"0">
264 <div class=
"form-group">
265 <label for=
"change" class=
"col-sm-2 control-label">
266 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target=
"_blank">External / Internal
</a>
268 <div class=
"col-sm-10">
269 <input id=
"change" type=
"text" class=
"change form-control" value=
"0">
272 <div class=
"form-group">
273 <label for=
"bip44-path" class=
"col-sm-2 control-label">BIP32 Derivation Path
</label>
274 <div class=
"col-sm-10">
275 <input id=
"bip44-path" type=
"text" class=
"path form-control" value=
"m/44'/0'/0'/0" readonly=
"readonly">
280 <div id=
"bip32" class=
"tab-pane">
281 <form class=
"form-horizontal" role=
"form">
283 <div class=
"col-sm-2"></div>
284 <div class=
"col-sm-10">
285 <p>For more info see the
<a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">BIP32 spec
</a></p>
287 <div class=
"form-group">
288 <label for=
"bip32-path" class=
"col-sm-2 control-label">BIP32 Derivation Path
</label>
289 <div class=
"col-sm-10">
290 <input id=
"bip32-path" type=
"text" class=
"path form-control" value=
"m/0">
293 <div class=
"form-group">
294 <div class=
"col-sm-2"></div>
295 <label class=
"col-sm-10">
296 <input class=
"hardened-addresses" type=
"checkbox">
297 Use hardened addresses
300 <div class=
"form-group">
301 <label class=
"col-sm-2 control-label">Hive Wallet
</label>
302 <div class=
"col-sm-10">
303 <p class=
"form-control no-border">
304 Use path
<code>m/
0'/
0</code>.
305 For more info see the
<a href=
"https://www.hivewallet.com/" target=
"_blank">Hive Wallet homepage
</a>
309 <div class=
"form-group">
310 <label for=
"mycelium-path" class=
"col-sm-2 control-label">Mycelium Wallet
</label>
311 <div class=
"col-sm-10">
312 <p class=
"form-control no-border">
313 Use path
<code>m/
44'/
0'/
0'/
0</code>.
314 For more info see the
<a href=
"http://www.mycelium.com/" target=
"_blank">Mycelium Wallet homepage
</a>
318 <div class=
"form-group">
319 <label for=
"core-path" class=
"col-sm-2 control-label">Bitcoin Core
</label>
320 <div class=
"col-sm-10">
321 <p class=
"form-control no-border">
322 Use path
<code>m/
0'/
0'
</code> with hardened addresses.
323 For more info see the
<a href=
"https://github.com/bitcoin/bitcoin/pull/8035" target=
"_blank">Bitcoin Core BIP32 implementation
</a>
327 <div class=
"form-group">
328 <label class=
"col-sm-2 control-label">Block Explorers
</label>
329 <div class=
"col-sm-10">
330 <p class=
"form-control no-border">
331 Use path
<code>m/
44'/
0'/
0'
</code>.
332 Only enter the
<code>xpub
</code> extended key into block explorer search fields, never the
<code>xpriv
</code> key.
339 <form class=
"form-horizontal" role=
"form">
340 <div class=
"form-group">
341 <label for=
"extended-priv-key" class=
"col-sm-2 control-label">BIP32 Extended Key
</label>
342 <div class=
"col-sm-10">
343 <textarea id=
"extended-priv-key" class=
"extended-priv-key form-control" readonly=
"readonly"></textarea>
346 <div class=
"form-group">
347 <label for=
"extended-pub-key" class=
"col-sm-2 control-label">BIP32 Extended Key (addresses only)
</label>
348 <div class=
"col-sm-10">
349 <textarea id=
"extended-pub-key" class=
"extended-pub-key form-control" readonly=
"readonly"></textarea>
359 <div class=
"col-md-12">
360 <h2>Derived Addresses
</h2>
361 <p>Note these addreses are derived from the
<strong>BIP32 Extended Key
</strong></p>
362 <table class=
"table table-striped">
365 <div class=
"input-group">
367 <button class=
"index-toggle">Toggle
</button>
371 <div class=
"input-group">
373 <button class=
"address-toggle">Toggle
</button>
377 <div class=
"input-group">
378 Public Key
379 <button class=
"public-key-toggle">Toggle
</button>
383 <div class=
"input-group">
384 Private Key
385 <button class=
"private-key-toggle">Toggle
</button>
389 <tbody class=
"addresses monospace">
390 <tr><td> </td><td> </td><td> </td></tr>
391 <tr><td> </td><td> </td><td> </td></tr>
392 <tr><td> </td><td> </td><td> </td></tr>
393 <tr><td> </td><td> </td><td> </td></tr>
394 <tr><td> </td><td> </td><td> </td></tr>
399 <span>Show next
</button>
400 <input type=
"number" class=
"rows-to-add" value=
"20">
401 <button class=
"more">Show
</button>
406 <div class=
"col-md-12">
408 <h3>BIP39
<span class=
"small">Mnemonic code for generating deterministic keys
</span></h3>
411 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">official BIP39 spec
</a>
413 <h3>BIP32
<span class=
"small">Hierarchical Deterministic Wallets
</span></h3>
416 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target=
"_blank">official BIP32 spec
</a>
418 <a href=
"http://bip32.org/" target=
"_blank">bip32.org
</a>
420 <h3>BIP44
<span class=
"small">Multi-Account Hierarchy for Deterministic Wallets
</span></h3>
423 <a href=
"https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target=
"_blank">official BIP44 spec
</a>
425 <h3>Private Keys
</h3>
428 <a href=
"https://web.archive.org/web/20150707020924/https://brainwallet.org/" target=
"_blank">brainwallet.org
</a>,
429 but be careful - it can be easy to make mistakes if you
430 don't know what you're doing
432 <h3 id=
"entropy-notes">Entropy
</h3>
434 Entropy values must be sourced from a
435 <a href=
"https://en.wikipedia.org/wiki/Random_number_generation" target=
"_blank">strong source of randomness
</a>.
436 This means flipping a fair coin, rolling a fair dice, noise measurements etc. Do
<strong>NOT
</strong> use
437 phrases from books, lyrics from songs, your birthday or steet address, keyboard mashing, or anything you
<i>think
</i>
438 is random, because chances are
<em>overwhelming
</em> that it isn't random enough for the needs of this tool.
441 The random mnemonic generator on this page uses a
442 <a href=
"https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues" target=
"_blank">cryptographically secure random number generator
</a>,
443 and can generally be trusted more than your own intuition about randomness.
444 If cryptographic randomness isn't available in your browser, this page will show a warning and
<i>will not generate
445 random mnemonics
</i>.
448 <a href=
"https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target=
"_blank">You are not a good source of entropy.
</a>
456 <div class=
"col-md-12">
458 <h2>Offline Usage
</h2>
461 You can use this tool without having to be online.
464 In your browser, select file save-as, and save this page
468 Double-click that file to open it in a browser
469 on any offline computer.
472 Alternatively, download it from
473 <a href=
"https://github.com/iancoleman/bip39">
474 https://github.com/iancoleman/bip39
483 <div class=
"col-md-12">
485 <h2>This project is
100% open-source code
</h2>
488 <span>Get the source code at -
</span>
489 <a href=
"https://github.com/iancoleman/bip39" target=
"_blank">
490 https://github.com/iancoleman/bip39
497 <span>BitcoinJS -
</span>
498 <a href=
"https://github.com/bitcoinjs/bitcoinjs-lib" target=
"_blank">
499 https://github.com/bitcoinjs/bitcoinjs-lib
504 <span>jsBIP39 -
</span>
505 <a href=
"https://github.com/iancoleman/jsbip39" target=
"_blank">
506 https://github.com/iancoleman/jsbip39
512 <a href=
"https://github.com/bitwiseshiftleft/sjcl" target=
"_blank">
513 https://github.com/bitwiseshiftleft/sjcl
518 <span>jQuery -
</span>
519 <a href=
"https://jquery.com/" target=
"_blank">
525 <span>Twitter Bootstrap -
</span>
526 <a href=
"http://getbootstrap.com/" target=
"_blank">
527 http://getbootstrap.com/
536 <div class=
"feedback-container">
537 <div class=
"feedback">Loading...
</div>
540 <script type=
"text/template" id=
"address-row-template">
542 <td class=
"index"><span></span></td>
543 <td class=
"address"><span></span></td>
544 <td class=
"pubkey"><span></span></td>
545 <td class=
"privkey"><span></span></td>
548 <script src=
"js/jquery.min.js"></script>
549 <script src=
"js/bootstrap.min.js"></script>
550 <script src=
"js/levenshtein.js"></script>
551 <script src=
"js/bitcoinjs-1-5-7.js"></script>
552 <script src=
"js/bitcoinjs-extensions.js"></script>
553 <script src=
"js/sjcl-bip39.js"></script>
554 <script src=
"js/wordlist_english.js"></script>
555 <script src=
"js/wordlist_japanese.js"></script>
556 <script src=
"js/wordlist_spanish.js"></script>
557 <script src=
"js/wordlist_chinese_simplified.js"></script>
558 <script src=
"js/wordlist_chinese_traditional.js"></script>
559 <script src=
"js/wordlist_french.js"></script>
560 <script src=
"js/wordlist_italian.js"></script>
561 <script src=
"js/jsbip39.js"></script>
562 <script src=
"js/zxcvbn.js"></script>
563 <script src=
"js/entropy.js"></script>
564 <script src=
"js/index.js"></script>