1. Home
  2. Developer tools
  3. SSH Key Fingerprint Calculator

SSH Key Fingerprint Calculator

Paste a public key to get the same fingerprint that ssh-keygen -l prints, to compare with what a server shows when you first connect.

Free, no sign-up. Runs in your browser: nothing is uploaded.

How to use SSH Key Fingerprint Calculator

  1. Paste one or more public key lines.
  2. Read the fingerprints and randomart.
  3. Compare with the one you were given.

Features

  • SHA-256 (Base64) and MD5 (hex) fingerprints
  • Randomart identical to ssh-keygen -lv
  • RSA, ECDSA, Ed25519 and FIDO keys
  • Several keys at once
  • Key size and comment shown
  • Public keys only; no private keys

Supported formats

Input

  • OpenSSH public key lines
  • authorized_keys files

You get

  • SHA-256 and MD5 fingerprints
  • Randomart

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the SSH Key Fingerprint Calculator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • It reads public keys only and cannot contact a server.
  • Keys are fingerprinted as given; the page does not check that a key is strong or trusted.

Guide

SSH key fingerprints: SHA-256, MD5 and the randomart picture

The first time you connect to an SSH server, your client shows a message like “The authenticity of host can’t be established” and a fingerprint. That string is how you check that you are talking to the right machine rather than an impostor. The same kind of fingerprint identifies the public keys you give to GitHub, GitLab or a server’s authorized_keys file. This page computes it for any public key you paste, in the formats OpenSSH and hosting sites use.

What is hashed

A public key line has three fields: the key type, such as ssh-ed25519, a Base64 block, and an optional comment. The Base64 block decodes to a binary structure holding the type name and the key numbers. The fingerprint is a hash of that binary block, so it ignores the comment: two lines with different comments but the same key have the same fingerprint. OpenSSH 6.8 and later print the SHA-256 hash in Base64 without trailing equals signs, prefixed with SHA256:. Older versions and some sites print the MD5 hash as sixteen colon-separated hex pairs.

A worked example

The Sample button loads a throwaway Ed25519 key with the comment gen-ed25519. The page reports type ssh-ed25519, strength 256 bits, SHA-256 fingerprint SHA256:MBGyPifMEVER/AnYY/zI1CPObu/OQ/2YPHcrVXBlSIg and MD5 fingerprint MD5:74:b4:76:d9:4b:81:79:70:01:6d:c9:c5:4a:4b:99:67. It also shows the SHA-1 of the key in the old colon format and a randomart box headed [ED25519 256] with [SHA256] at the foot. The same key given to ssh-keygen -lv prints the same fingerprint and picture, which is how the output was checked.

The randomart picture

Staring at 43 Base64 characters invites mistakes, so OpenSSH also draws a small picture. The algorithm, nicknamed the drunken bishop, starts a marker in the middle of a 17 by 9 grid and moves it diagonally, two bits of the fingerprint at a time. Cells the marker visits more often are drawn with denser characters. Two different keys almost always make visibly different pictures, so a quick comparison can tell you that something changed, even if you do not check every character.

Checking before you trust

When you set up a new server, the host key fingerprint is shown by the provider or can be read on the machine with ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub. Compare that to the one in your first connection prompt. For keys you add to a hosting site, compare the fingerprint of the file you uploaded with the one listed in the settings. In authorized_keys files with many entries, paste the whole file to see which line is which.

Limits

A fingerprint identifies a key, not a person, and it says nothing about whether the key is strong or trusted. The page does not look up servers, check revocation or read private keys; never paste one.

Habits that avoid trouble

Write down the fingerprint of every key you create, together with its purpose and where it was installed, so that you can remove it later. When a server’s key changes, treat the warning from your SSH client as real until you have compared the new fingerprint through a second channel, such as the hosting provider’s console. In teams, keep the list of authorised keys under version control and check new entries with this page before merging. Rotate keys when people leave, and prefer one key per device so that a lost laptop affects only one entry.

Checked against the current version of the SSH Key Fingerprint Calculator on .

Frequently asked questions

The key I added to GitHub shows a fingerprint starting with SHA256. How do I compare?

Paste the public key line (the content of the .pub file) here and compare the SHA256 value character for character with the one in the account settings. Older lists in some tools show the MD5 form, which is also on this page.

Why does the same key have two different fingerprints?

The fingerprint is a hash, and the hash function is part of the answer. MD5 and SHA-256 of the same key blob naturally differ. Always say which one you mean when you quote it.

Why does my fingerprint start with SHA256 and not look like aa:bb:cc?

OpenSSH 6.8 and later display SHA-256 in Base64. The colon-separated hex form is MD5, still used by some older tools and hosting sites.

What is the randomart for?

It turns the fingerprint into a small picture that is easier to compare at a glance. A different key gives a visibly different picture.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.