So I was curious how to do that. I wasn't able to find any tools online to do that.

  • PUB_K1 to EOS format key
    – user5731
    Commented Aug 28, 2021 at 13:34

3 Answers 3


See here for an online converter: https://wax.bloks.io/wallet/utilities/format-keys

  • Thanks, but this one converts PUB_K1 to EOS format key, I need to convert EOS to PUB_K1
    – user5731
    Commented Aug 26, 2021 at 10:37

You can use the stringToPublicKey function from the EOSJS library.

Assuming Node.JS is installed, you can run the following commands in your terminal.

npm install eosjs
Welcome to Node.js v16.10.0.
Type ".help" for more information.
> app = require(‘eosjs’)
> const key = app.Numeric.stringToPublicKey('EOSxxxxxxxxxxxxxxx’)
> app.Numeric.publicKeyToString(key)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.