LocalExcelTool
Get started

MD5 Hash

Compute the MD5 hash of any text as a 32-character hex string.

Runs in your browserNo account neededFree

What is MD5 Hash

MD5 is a hash function producing a 128-bit (32 hex character) hash from arbitrary data. It is no longer recommended for security purposes.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

128 bits, computed locally, no longer a security primitive

MD5 produces a 128-bit digest written as 32 hex characters. This page implements the compression function directly in JavaScript, so the input never leaves the browser and the result matches the reference implementation byte for byte — including for empty input, which is d41d8cd98f00b204e9800998ecf8427e.

The algorithm has been broken for collision resistance since 2004, and the 2017 SHAttered work produced two different PDF files with the same MD5 in public. That means an attacker can craft a second file matching a known digest, so MD5 cannot establish that a file is the one you expect when the attacker controls the file.

Where it is still perfectly fine

Content addressing where nobody is attacking you: cache keys, deduplication fingerprints, ETag-style change detection, and checking that a large download arrived intact against a digest the sender published. All of those ask 'did the bytes change', not 'did someone forge this'.

The failure mode to avoid is password storage. MD5 is fast by design — billions of guesses per second on a GPU — and unsalted MD5 databases are cracked wholesale. Password hashing needs a deliberately slow algorithm (bcrypt, scrypt, Argon2), not a fast one.

Why the same text gives a different hash

Hashing operates on bytes, and identical-looking text can be different bytes. A trailing newline, a Windows CRLF versus a Unix LF, a UTF-8 file with a byte-order mark, or full-width versus half-width punctuation all change the digest completely. When a checksum mismatches, compare file sizes and line endings before assuming corruption.

Very large inputs are also a practical limit here: the computation is single-threaded in the page, so a multi-gigabyte file will make the tab unresponsive long before it finishes. Command-line tools stream the input; a browser cannot.

How to use it

  1. 1.Enter text
  2. 2.Compute hash
  3. 3.Copy result

How MD5 Hash works under the hood

Encoding tools convert between representations of the same bytes: Base64, percent-encoding, hex, HTML entities, Unicode escapes. A correct encoder is reversible; a lossy one silently changes the data.

  1. 1

    Get the exact bytes

    Text is encoded to UTF-8 bytes with TextEncoder first; binary input is read as an ArrayBuffer. Encoding the wrong byte sequence is the most common cause of a wrong result.

  2. 2

    Apply the encoding rule

    Each format has an exact specification: Base64 uses a 64-symbol alphabet with padding, percent-encoding escapes reserved characters as UTF-8 bytes.

  3. 3

    Decode back to verify

    Round-tripping the output back to the input is the only honest proof that an encoder is correct. The tool keeps the reverse path available on the same page.

  4. Processing pipeline

Base64 is not encryption

Base64 increases size by about a third and hides nothing: anyone can decode it. It exists to carry binary data through text-only channels such as JSON, email headers and data URLs. If you need confidentiality, use encryption with a key, not an encoding.

Where encoders break

Percent-encoding applied twice turns %20 into %2520; Base64 without padding fails strict decoders; UTF-16 input decoded as UTF-8 produces replacement characters that cannot be recovered. When output looks wrong, check the byte sequence before checking the tool.

Verify it yourself

Encoders are pure functions over bytes. Decode the output again and you should get the input back exactly.

  1. 1.Open DevTools on this page and switch to the Network tab
  2. 2.Keep the filter on Fetch/XHR and run the tool
  3. 3.Confirm no request carries your file — you should see only page assets and fonts

Frequently asked questions

What is MD5?

A function that converts data into a fixed-length hash, often used as a checksum.

Can I use it for passwords?

No. MD5 is vulnerable to collisions and unsuitable for password storage.

Is data uploaded?

No, it is computed in your browser.

What this kind of conversion cannot keep

Encoding and hashing run through the browser's Web Crypto API or a pure-JavaScript implementation. The output is deterministic: the same input always produces the same digest, so you can verify a result against any other tool.

More in Encoding