Firebase, Google Sign-In, the Maps SDK and Google Cloud API key restrictions all want the same thing from an Android developer: the SHA-1 (and often the SHA-256) of the certificate that signs the app. Facebook Login wants a “key hash”, which is the same SHA-1 encoded as Base64. The usual answer is keytool -list -v, which needs a JDK and a terminal, and for the Facebook value a pipe through openssl:
keytool -exportcert -alias androiddebugkey -keystore ~/.android/debug.keystore | openssl sha1 -binary | openssl base64
This page gives you all of those values from the file itself, in your browser.
How to use
- Find the file that holds your signing certificate:
~/.android/debug.keystorefor debug builds, your upload key (.jks,.keystore,.p12) for release builds, or the signed APK or AAB itself. - Drop it on the drop zone or press Choose a file. For a PKCS#12 file, type the password into Keystore password (optional) and press Read again with this password; JKS and JCEKS open without it.
- Copy the SHA-1 or SHA-256 in colon form for Firebase, Google Sign-In or API key restrictions, and the Base64 of the SHA-1 for Facebook Login.
Real example output
We created a throwaway JKS keystore with keytool (command below), dropped it on this page, typed its password, pressed Read again with this password and copied what the page displayed. Layout condensed (label and value on one line, Copy buttons left out); every value is verbatim. Days left are counted from the capture date.
Sample: throwaway-upload.jks, a keystore generated for this example with keytool -genkeypair (JDK 17.0.18) on 2026-11-02 and used for nothing else
Summary
Format Java KeyStore (JKS)
File size 2.1 KB
Contents 1 entries, 1 certificates
Private keys 1 (never decrypted)
Integrity check VERIFIED WITH THE PASSWORD
upload PrivateKeyEntry
Created 2026-11-02 00:58:12.609 UTC
Subject CN=Throwaway Demo Upload Key,O=rea-reverse.com example
Issuer CN=Throwaway Demo Upload Key,O=rea-reverse.com example (self-issued)
Validity 2026-11-02 00:58:12 UTC → 2054-03-20 00:58:12 UTC VALID 9999 days left
Public key RSA · 2048 bit
Signature algorithm sha256WithRSAEncryption
Serial number 57082040024cf61e
Public key pin (SHA-256, Base64) L4nMQNnrruDKA4pk2K3MGXyVqHaJqyyWaX90YnbCYBA=
Fingerprints
SHA-1 64:26:AC:84:7A:42:2F:11:AB:44:9D:F1:AF:CD:BF:C2:CB:09:B0:58
no colons 6426ac847a422f11ab449df1afcdbfc2cb09b058
Base64 ZCashHpCLxGrRJ3xr82/wssJsFg=
SHA-256 D7:F9:23:30:3A:A3:CD:4E:4F:0C:17:2A:1E:BE:87:07:3B:52:67:B3:07:25:EE:E6:13:86:0D:35:72:CB:2A:32
no colons d7f923303aa3cd4e4f0c172a1ebe87073b5267b30725eee613860d3572cb2a32
Base64 1/kjMDqjzU5PDBcqHr6HBztSZ7MHJe7mE4YNNXLLKjI=
MD5 1B:37:F0:0D:79:BD:B8:2D:18:CA:40:E8:33:73:DF:69
no colons 1b37f00d79bdb82d18ca40e83373df69
Base64 GzfwDXm9uC0YykDoM3PfaQ==
Extensions (1)
…What you can drop here
- Java keystores: JKS and JCEKS (
.jks,.keystore). Certificates are stored in clear in these formats, so you see every alias, entry type, creation date and certificate chain without the password. If you type the password, the keystore’s integrity digest is checked as well. - PKCS#12:
.p12,.pfx, and.keystorefiles that keytool wrote as PKCS#12 (its default since JDK 9). These usually encrypt their certificates, so the password is needed. Both the current algorithms (PBES2 with AES-256 and PBKDF2-HMAC-SHA256) and the legacy ones written by older JDKs andopenssl pkcs12 -legacy(RC2-40 and 3DES with the PKCS#12 key derivation) are supported. - APK and AAB: the signer certificates of the v1 (JAR), v2, v3 and v3.1 signature schemes, read with the same code as the APK analyzer. A signer that appears in several schemes is shown once with all of them; a rotated v3 key shows up as a separate signer.
- Certificate files: PEM (one or several), DER,
.crt,.cerand.p7bbundles. For a full field and extension view of those, the X.509 certificate decoder shows more.
What you get
For each entry: the alias, PrivateKeyEntry or trustedCertEntry (keytool’s names), and each certificate of the chain with subject, issuer, validity (and whether it has expired), key algorithm and size, signature algorithm and serial number. For each certificate, the SHA-1, SHA-256 and MD5 fingerprints in three forms, each with a copy button:
| Form | Example use |
|---|---|
Colon hex, 5E:8F:16:… |
Firebase console, Google Cloud API key restrictions, Google Sign-In OAuth client, keytool output |
Hex without colons, 5e8f16… |
config files and APIs that want a plain hex string |
| Base64 of the digest | Facebook Login “Key Hashes” (Base64 of the SHA-1) |
The page also shows the SHA-256 pin of the public key in Base64, the value Android’s network security config takes in <pin digest="SHA-256">.
Which certificate is the right one? The one that signs what users install. With Play App Signing, Google re-signs your app, so the fingerprints Firebase and Google Sign-In need for the Play build are those of the app signing key shown on the App signing page of Play Console; your upload keystore gives the upload key. Debug builds use ~/.android/debug.keystore (alias androiddebugkey, password android), and each machine has its own.
How we checked it
We generated keystores with keytool from Temurin JDK 17.0.18 (JKS, JCEKS, PKCS#12, and PKCS#12 in the legacy format with -J-Dkeystore.pkcs12.legacy), PKCS#12 files with OpenSSL 4.0.3 (default, -legacy, -descert and an unencrypted one), RSA 2048 and EC P-256 / P-384 keys, and a root, intermediate and leaf chain. The unit tests compare every alias, entry type, fingerprint, signature algorithm, key size and serial number with keytool -list -v, and the APK signers with apksigner verify --print-certs from Android build-tools 36.1.0. One thing that tripped us while building those files: keytool -importkeystore into PKCS#12 refuses to copy a trusted certificate entry if you also pass -destkeypass (“trusted certificate entries are not password-protected”), and leaves it out of the new keystore. If an alias seems to be missing after a conversion, that is a likely cause.
How your keystore and password stay private
- The tool runs in a separate frame served from
rea-reverse.com, and the file is read in a Web Worker inside it, on your device; nothing is uploaded. - The password field is inside that frame too, so the page around it, ads included, cannot read what you type.
- This page shows one ad, below the article. The ad script runs on
tools.rea-reverse.com; the frame is a different origin, so the browser does not let the ad script, or any other script on this page, read the file you drop, the password you type, or the results. - The frame’s Content Security Policy blocks every request its scripts could make (
connect-src 'none', no third-party resources at all). The frame cannot open windows or navigate this page by itself. The only things it passes to this page are its height and the analytics events below. - The password is posted to that worker together with the file, used to check the integrity digest or MAC and to decrypt the certificate bags, and dropped when the analysis ends. It is not saved in the page, in browser storage, or in any log, and it is never part of an analytics event. Clicking Read another file clears the field.
- Private keys are skipped, never decrypted. This page cannot export or show a private key.
- Analytics events contain only coarse values: success or an error code, the detected format (
jks,pkcs12,apk, …), whether the integrity check passed, a count bucket, a size bucket and a duration bucket. No alias, name or fingerprint. The frame hands them to this page, which sends them. The full list is on the privacy page. - Prefer no ads and no analytics at all? Open the tool on its own page.
How to verify this yourself
- Open your browser’s developer tools on the Network tab and load this page. Requests to
rea-reverse.comare the frame: its HTML, styles, fonts and scripts, and the worker script/_astro/cert-worker-*.js. Requests to Google domains are the ad on this page. - Clear the log, then drop a keystore and type its password. Type
domain:rea-reverse.comin the filter box. At most the worker script/_astro/cert-worker-*.jsappears again (a fresh worker is prepared for the next run); no request carries your file or password. Ad requests may continue, but they come from this page and carry nothing from the frame. - Click the
keystore-certificate-fingerprint/document fromrea-reverse.comand open Headers: itsContent-Security-Policyhasconnect-src 'none', andframe-ancestors https://tools.rea-reverse.com. In Chrome, Application > Frames also shows the frame’s origin and policy. The worker runs underdefault-src 'none'; script-src 'self'; connect-src 'none', so the browser does not let it make any network request. - Check the isolation: in the Console, with the context set to
top, rundocument.getElementById('tool-frame').contentDocument. It returnsnull.frames[0].documentthrows aSecurityError. That is what the ad script gets too. - Or load the page, go offline, and read a keystore. It still works.
- Compare with your own tools:
keytool -list -v -keystore my.jksprints the same SHA-1 and SHA-256, andapksigner verify --print-certs app.apkthe same signer digests.
Limitations
- BKS and UBER keystores (Bouncy Castle) are not read. Convert them with
keytool -importkeystore -srcstoretype BKS -providerpath bcprov.jar …first. - JCEKS secret-key entries are stored as Java-serialized objects; listing stops at the first one, and the entries after it are not shown.
- PKCS#12 in public-key integrity mode and files whose MAC uses PBMAC1 (shown as “not checked”) are not supported. BER-encoded files (indefinite lengths, segmented OCTET STRINGs) are read.
- APK signatures are listed, not verified. Use
apksigner verifyor the APK analyzer to check them. Source stamps and v4 signatures (.idsig) are not shown. - Aliases in JKS are decoded as UTF-8; Java’s modified UTF-8 differs only for NUL and characters outside the Basic Multilingual Plane.
Command-line equivalent
How the sample keystore was made (JDK 17.0.18). Output not shown: our run printed it in the system locale; it is the key size, validity and name, then a warning that JKS is a proprietary format.
$ keytool -genkeypair -keystore throwaway-upload.jks -storetype JKS -storepass throwaway-demo -keypass throwaway-demo -alias upload -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Throwaway Demo Upload Key, O=rea-reverse.com example"The same fingerprints with keytool (run with -J-Duser.language=en -J-Duser.timezone=UTC for English output in UTC; trimmed). keytool prints no MD5:
$ keytool -list -v -keystore throwaway-upload.jks -storepass throwaway-demo
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
Alias name: upload
…
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Throwaway Demo Upload Key, O=rea-reverse.com example
Issuer: CN=Throwaway Demo Upload Key, O=rea-reverse.com example
Serial number: 57082040024cf61e
Valid from: Mon Nov 02 00:58:12 UTC 2026 until: Fri Mar 20 00:58:12 UTC 2054
Certificate fingerprints:
SHA1: 64:26:AC:84:7A:42:2F:11:AB:44:9D:F1:AF:CD:BF:C2:CB:09:B0:58
SHA256: D7:F9:23:30:3A:A3:CD:4E:4F:0C:17:2A:1E:BE:87:07:3B:52:67:B3:07:25:EE:E6:13:86:0D:35:72:CB:2A:32
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3
…The Facebook key hash: the Base64 of the SHA-1, the same value as the SHA-1 Base64 line above:
$ keytool -exportcert -alias upload -keystore throwaway-upload.jks -storepass throwaway-demo | openssl sha1 -binary | openssl base64
ZCashHpCLxGrRJ3xr82/wssJsFg=The MD5 with OpenSSL 4.0.3:
$ keytool -list -keystore throwaway-upload.jks -storepass throwaway-demo -alias upload -rfc | openssl x509 -noout -fingerprint -md5
md5 Fingerprint=1B:37:F0:0D:79:BD:B8:2D:18:CA:40:E8:33:73:DF:69FAQ
How do I get the SHA-1 fingerprint of my Android signing key?
Drop the keystore (for debug builds ~/.android/debug.keystore) or the signed APK on this page and copy the SHA-1 line. It is the same value keytool -list -v prints under Certificate fingerprints, as in the example above.
What is the keytool command to get the SHA-1?
keytool -list -v -keystore my.jks -alias my-alias prints SHA1 and SHA256 for that entry; for the debug keystore the alias is androiddebugkey and the password is android. It needs a JDK, which this page does not.
Do I need the keystore password to get the SHA-1?
For JKS and JCEKS, no: the certificates are not encrypted. For most PKCS#12 files, yes, because keytool and OpenSSL encrypt the certificate bags; without the password the page still lists the entries and their aliases and tells you the certificates are locked.
Is it safe to open a keystore in an online tool?
Here the file is read in your browser by a Web Worker without network access, so neither the keystore nor the password is sent anywhere. Private keys are never read or decrypted; only certificates and their fingerprints are shown.
How do I turn a SHA-1 into a Facebook key hash?
The key hash is the same 20 bytes in Base64 (28 characters ending in =): the Base64 line under SHA-1 here. On the command line, pipe keytool -exportcert through openssl sha1 -binary | openssl base64.
The SHA-1 here differs from the one in Firebase.
Check that you are looking at the key that signed the installed build: the debug keystore for debug builds, the upload key for builds you sideload, and the app signing key from Play Console for builds installed from Google Play.
Updated
Related guides
- Get the SHA-1 and SHA-256 Fingerprint from an Android Keystore: keytool, apksigner and signingReport side by side, which key Firebase, Google Sign-In and assetlinks.json want, and the Facebook key hash pitfall.
- Android APK reverse engineering with REA, JADX and Apktool
- Android developer verification: find your app’s SHA-256 certificate fingerprint
- Fix “App not installed as package conflicts with an existing package”: usually a signing certificate mismatch