How to: Extract the Key Hash from an APK file

You might need to extract a Key Hash from an APK file for many reasons. In my case, I needed it so I can test Cordova LinkedIn Plugin on a debug APK (that I didn’t sign using one of my keys).

I found this solution here and I thought I’d share it on my blog as a quick tip (and for my own reference).

  1. Run this command keytool -list -printcert -jarfile <Your APK File>.apk
  2. Copy the SHA1  value
  3. Go to and convert your SHA1 value to Base64
  4. Copy the output and use it where needed!
Tips & Tricks
  • José Manuel Souto Brándulas

    Thanks a lot!

  • Felipe Queiroz Drumond

    Thank you very much!