Network · Security

SSH key fingerprint calculator.

Paste an OpenSSH public key and get the same SHA256 and MD5 fingerprints that ssh-keygen -l prints, plus the key type and bit length.

The rule: the fingerprint is a hash of the decoded key blob. SHA256 is the base64 of SHA-256(blob) with the trailing = removed, shown as SHA256:.... The legacy MD5 form is the colon-separated hex of MD5(blob).

Source: RFC 4253 section 6.6, OpenSSH ssh-keygen(1)Verified 29 September 2026

How to calculate an SSH key fingerprint

  1. Paste your OpenSSH public key: one line with the key type, the base64 data and an optional comment.
  2. Press Calculate.
  3. Compare the SHA256 and MD5 fingerprints and the key type and bit length with what ssh-keygen -l prints or what a server displays.

Why check a fingerprint

When you connect to a server for the first time, or add a key to a service, you are shown a fingerprint to confirm that the key is the one you expect. Comparing it with a value you obtained another way, such as from your hosting dashboard or a colleague, protects against someone swapping in their own key. SHA256 is the modern format. MD5 is shown for older systems and documentation that still use it.

The calculator decodes the base64 blob, checks that the algorithm name inside matches the type on the line, and hashes the blob exactly as the OpenSSH tools do. Only paste public keys, which start with ssh-rsa, ssh-ed25519 or ecdsa. Never paste a private key into any web page.

Computed locally

The calculator runs in your browser, inside an isolated frame on this page that has no network access. Your file is read and written back by your own device, so it is not uploaded to TNAADO or anyone else, and nothing is stored. The advertising on this page sits outside the frame and cannot see what you choose. Keys are processed in memory and not sent anywhere.

How an SSH key fingerprint is made

An OpenSSH public key line has three fields: the key type, the base64 of the key blob, and an optional comment. RFC 4253 section 6.6 defines the blob as a length-prefixed algorithm name followed by algorithm-specific fields.

  1. Base64-decode the second field to get the blob.
  2. Read the length-prefixed algorithm name at the start; it must match the key type on the line.
  3. SHA256 fingerprint: hash the whole blob with SHA-256, base64-encode the 32 bytes, drop the trailing =, and prefix SHA256:.
  4. MD5 fingerprint (legacy): hash the blob with MD5 and write the 16 bytes as colon-separated hex, prefixed MD5:.
  5. Bit length: the modulus size for RSA, the curve size for ECDSA (256, 384 or 521), and 256 for Ed25519.

To compare with your own machine, run ssh-keygen -l -f key.pub for SHA256 or ssh-keygen -l -E md5 -f key.pub for MD5. Sources: RFC 4253 section 6.6 for the blob format and the OpenSSH ssh-keygen manual for the fingerprint forms, which agree with the output of the reference implementation.

Format and fingerprint only — not a trust check

This tool parses the key format and computes hashes entirely in your browser. It cannot tell you whether a key is authorised on any server or belongs to any person. Nothing you paste is transmitted, stored, or logged. Do not paste private keys.

Advertisement
Advertisement