MD5, SHA-1 and SHA-256 of any file, with ready VirusTotal and MalwareBazaar search links.
Favicon Hash (mmh3)
Use Favicon Hash (mmh3)
What it does
Drop a favicon or paste its Base64 to get the Shodan-style mmh3 hash, the MD5 and SHA-256, and ready search queries for Shodan, FOFA, ZoomEye and Censys. The icon never leaves your browser.
It runs entirely in your browser: nothing you enter is uploaded.
How to use Favicon Hash (mmh3)
- Get the exact icon. Save the site's favicon as the server sends it, for example /favicon.ico, in an isolated environment. Do not re-save or convert it.
- Drop it or paste Base64. Drop or choose the file (up to 10 MB), or paste its Base64 or a data: URI and press Compute hash.
- Read the hashes. The mmh3 value is for Shodan and FOFA, the MD5 for ZoomEye and Censys. The SHA-256 identifies the file itself.
- Search. Copy a ready query or press Search to open the engine with only the hash. For ZoomEye, open the site and paste the query.
- Check each match. Review every server found before you link it to the phishing site: default icons are shared by many unrelated sites.
Example
16 × 16 PNG icon as Base64
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAM0lEQVR42mPgFhT/TwlmABF2z7aShWljwMevX/Biog1At20IGkD1MCA5FkayAQOTFyjBAJ3am11k6YHEAAAAAElFTkSuQmCCPasted Base64
108 B (108 bytes) · PNG
SHODAN / FOFA HASH (MMH3, SIGNED 32-BIT)
2033577382
MD5 OF THE FILE
687bba8c4cd9980ec195986b32ee42cb
SHA-256 OF THE FILE
989e1ac28e0a5bf7ffcf0eed14a30126aabb5761daa360596619280b485e8ad7
Search queries
Shodan
Search ↗
http.favicon.hash:2033577382
FOFA
Search ↗
icon_hash="2033577382"
ZoomEye
Open ZoomEye ↗
iconhash:"687bba8c4cd9980ec195986b32ee42cb"
Censys Search (legacy)
Search ↗
services.http.response.favicons.md5_hash: 687bba8c4cd9980ec195986b32ee42cb
Censys Platform
Search ↗
host.services.endpoints.http.favicons.hash_md5 = "687bba8c4cd9980ec195986b32ee42cb"
The Search links open the engine in a new tab and send only the hash in the address; most engines need a free account to show results. ZoomEye’s link opens its site: paste the copied query there. The ZoomEye and Censys queries use the MD5 of the file, Shodan and FOFA the mmh3 value.
A favicon hash only finds servers that return byte-identical icon bytes. A resized, re-saved or re-compressed icon, or the same picture as PNG instead of ICO, gives a different hash. Hash the file exactly as the server sends it (for example saved with curl -o favicon.ico in an isolated environment), not a copy exported by an image editor or a screenshot.Decodes to a 108-byte PNG. The mmh3 hash is 2033577382, so the Shodan query is http.favicon.hash:2033577382; the MD5 687bba8c4cd9980ec195986b32ee42cb goes into the ZoomEye and Censys queries.
What it checks
| Signal | What it means |
|---|---|
| Format line | The detected format (PNG, ICO, GIF, JPEG, BMP, WebP, SVG or unknown format) and the size in bytes. |
| Preview | Image formats are shown as a 32-pixel preview, so you can confirm it is the icon you meant to hash. |
| HTML page warning | The bytes are a web page, not an icon. Servers often answer a missing /favicon.ico with an error page, and its hash only finds the same page. |
| Shodan / FOFA hash | MurmurHash3 of the Base64-encoded icon, shown as a signed 32-bit number. Negative values are normal. |
| MD5 of the file | Used in the ZoomEye and Censys queries. |
| SHA-256 of the file | Identifies the exact file, useful in reports and for matching copies you collected. |
| Search queries | Shodan http.favicon.hash, FOFA icon_hash, ZoomEye iconhash and two Censys forms. Most engines need a free account to show results. |
| Byte-identical rule | A resized, re-compressed or converted icon gives a different hash, so a miss may only mean the bytes differ. |
More examples
A small SVG icon as a data: URI
data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSIjMGEwIi8+PC9zdmc+Pasted Base64, 108 B, SVG. The mmh3 hash is -1417999905, so the Shodan query is http.favicon.hash:-1417999905 and FOFA gets icon_hash="-1417999905"; the MD5 10a8f1de4d94f66724532d5315194e33 goes into the ZoomEye and Censys queries.
An error page instead of an icon
PGh0bWw+PGJvZHk+PGgxPjQwNCBOb3QgRm91bmQ8L2gxPjwvYm9keT48L2h0bWw+48 B, HTML page, with the warning that these bytes are an HTML page, not an icon. Its mmh3 value, -1700126198, only matches servers that return the same page.
A file name instead of Base64
favicon.icoCould not decode the pasted text: this is not valid Base64. Paste the Base64 of the icon file, with or without the data: prefix.
FAQ
How is the Shodan favicon hash computed?
Shodan takes the raw bytes of the favicon, encodes them as Base64 the way Python's base64.encodebytes does (76-character lines, each ending in a newline) and hashes that text with 32-bit MurmurHash3, seed 0, shown as a signed integer. FOFA's icon_hash uses the same value, while the ZoomEye and Censys queries here use the MD5 of the file.
Why does a hash find nothing, or the wrong servers?
It only matches servers that return byte-identical favicon bytes, so a resized, re-saved or re-encoded copy gives a different value, and a site whose /favicon.ico returns an error page gives the hash of that page. Default icons of hosting panels and frameworks are shared by thousands of unrelated sites, so treat matches as leads to check, not proof of common ownership.
Does the tool fetch the favicon or send it anywhere?
No. It hashes the file or Base64 you provide inside your browser and makes no network request. The search links open Shodan, FOFA, ZoomEye or Censys in a new tab only when you click them, and they carry only the hash.
Why is the hash a negative number?
Shodan reports MurmurHash3 as a signed 32-bit integer, so about half of all icons get a negative value. Keep the minus sign; without it the search looks for a different icon.
How do investigators use a favicon hash?
Phishing kits often reuse the same icon file on every copy of a fake site. Searching its hash on Shodan or FOFA can reveal other servers running the same kit, which you then check one by one.
Can I paste an icon from a page's HTML?
Yes, if the page embeds it as a data: URI: paste the whole value and the prefix is removed before decoding. An icon linked by URL has to be saved as a file first, because this tool fetches nothing.
Why does the same site give a different hash on another day?
Sites change their icons, and some servers send different bytes to different visitors, for example a harmless page to scanners. Each version has its own hash, so note the date and how you got the icon.