Advertisement

MD5 Hash Generator

Type or paste text, or drop a file, and get its MD5 hash at once. It is worked out in your browser, so nothing is uploaded, and you can see exactly which bytes were hashed.

More options
Drop files here, or choose files

Files are read on your device and are not uploaded. Large files work too; they are read a piece at a time.

With a key, the result is HMAC-MD5 instead of a plain MD5.

Results

MD5
-
SHA-1
-
SHA-256
-

What was hashed

How this works. The hash is worked out in your browser, so the text and files you use are not sent anywhere. MD5 turns any input into 32 hex characters and cannot be turned back: there is no way to "decrypt" it, and sites that appear to do so only look the hash up in lists of inputs that are already known. MD5 is fine for checking that a file arrived intact, but it is not safe for storing passwords or for anything an attacker might want to forge. Use SHA-256 for that; it is shown beside the MD5 here.
Advertisement

About MD5 Hash Generator

The ToolsPivot MD5 Hash Generator turns typed text or any file into its 32-character MD5 hash inside your browser, and it shows the exact bytes it hashed so you can see why two hashes of the same word differ. The hash updates as you type, with no button to press. Developers checking a download, admins comparing a checksum file and anyone stuck on a hash that will not match the one from a terminal get the cause written out under the result.

How to Generate an MD5 Hash with ToolsPivot

  1. Type or paste text into the input box, or drop up to 50 files onto the page. If your data is not plain text, switch the input to hex bytes or Base64 bytes.Text typed into the MD5 input box
  2. For text, choose the encoding (UTF-8, UTF-16LE or Latin-1), the line-break style (LF or CRLF), and whether a final line break is kept, added or removed. Turn on trim or lowercase only if the hash you are matching was made from cleaned text.Encoding and line break options opened
  3. Read the MD5 as it appears. Files are read in 4 MB pieces, each with a progress bar and a cancel button.Large file reading with a progress bar
  4. To get HMAC-MD5 instead of a plain hash, enter a secret key.HMAC key entered, result turns HMAC-MD5
  5. Pick lowercase hex, uppercase hex or Base64, then copy the hash, or paste an expected hash into the compare box for a match or no-match verdict.Uppercase format and matching compare verdict

Your text and files stay in the tab. MD5 runs on our own JavaScript implementation of RFC 1321, which is incremental, so it hashes a file stream piece by piece and never loads a large file into memory whole. SHA-1 and SHA-256 come from the browser's built-in Web Crypto, no API key is used, and nothing is sent to a ToolsPivot server. That is a change from the previous version of this page, which did the hashing on our server; version 2.0 moved all of it into the browser.

Settings That Change the Bytes You Hash

MD5 works on bytes, not letters. The same visible text can turn into different bytes depending on a few choices, and many generators make those choices silently. Here each one is a setting you can see.

  • Encoding. UTF-8 matches Linux, macOS, Python's encode() and most web code. UTF-16LE matches strings hashed by Windows APIs, .NET Encoding.Unicode or a SQL Server NVARCHAR column. Latin-1 matches older systems that store one byte per character. Latin-1 cannot hold every character, so each one it cannot hold is hashed as a question mark, and the tool tells you how many were replaced.
  • Line breaks. LF is the Unix and macOS style; CRLF is the Windows style. Pick the one the original file used, because a two-line text hashes differently under each.
  • Final line break. Keep, add or remove it. Add one when you need to reproduce echo hello | md5sum, since echo sends a line break after the word.
  • Trim and lowercase. Trim removes spaces at both ends; lowercase converts the text before hashing. A common case is an email address that a mailing system normalized before hashing. For other conversions, such as title case, run the text through the text case converter first.
  • Hex and Base64 input. Hex accepts spaced bytes (68 65 6c 6c 6f), colon pairs (68:65:6c) and the 0x68 style. Base64 accepts both standard and URL-safe Base64. Use these when the data is a key, a token or a packet dump rather than readable text.

Watch for text that was escaped on its way to you. A string copied from page source may contain & where the real value has a plain ampersand, so decode it with the HTML decoder before hashing. A value taken from a URL may hold %20 instead of a space, which the URL encoder and decoder can turn back into the original characters.

Hashing Many Files or a Whole List at Once

You can drop up to 50 files in one go, of any type. Each file gets its own progress bar and cancel button, so one large disk image does not hold up the small files next to it. Files with identical content are flagged, which turns the page into a quick duplicate check for a folder of downloads, and an empty file is reported as empty instead of quietly showing the empty-input hash. For files over 100 MB, the SHA-1 and SHA-256 lines are not shown, because the browser's built-in routine needs the whole file in memory. MD5 itself has no such limit.

Per-line mode hashes every line separately, up to 50,000 lines, and skips empty lines. You can show the original text beside each hash, copy all the hashes at once, or download them as TXT or CSV. This suits jobs like building cache keys for a list of URLs or checking which entries in a list match a set of known hashes. Two practical habits help:

  • Clear repeated entries with remove duplicate lines first, since identical lines always produce identical hashes.
  • Check a long paste with the line counter to confirm it fits under the 50,000-line cap.

If the next step is code, the CSV export converts cleanly with CSV to JSON.

Reading the Result Panel

Under the hash, the panel lists the byte count and the first 32 bytes in hex. This is the fastest way to catch a hidden difference. Type héllo € with UTF-8 selected and the panel reports 10 bytes beginning 68 c3 a9 6c 6c 6f 20 e2 82 ac, because é takes two bytes and € takes three. Switch to UTF-16LE and the same seven characters become 14 bytes with a different hash.

Plain notices appear when a hidden choice applies, such as "the text ends with a line break" or "it contains characters beyond plain English letters, so the encoding changes the hash". SHA-1 and SHA-256 sit beside the MD5, which helps when a download page lists a stronger checksum. To view the same bytes as ones and zeros, paste the text into the binary translator.

The compare box accepts a bare hash, a hash broken up with spaces or colons, a whole line copied from a checksum file (the hash followed by a file name), or a Base64 value. It tells you which hash matched. If you paste something that cannot be an MD5, it says the value has the wrong length; an MD5 is always 32 hex characters, while 40 points to SHA-1 and 64 to SHA-256.

Reference Hashes for Common Mismatch Cases

Every row below looks like the same few words on screen, yet each produces its own hash. Paste any of them into this tool, or into another generator, to check what it really hashes.

InputBytesMD5
hello55d41402abc4b2a76b9719d911017c592
hello plus LF (what echo hello sends)6b1946ac92492d2347c6235b4d2611184
hello plus CRLF7af5597c29467a96523a70787c319f4db
Hello with a capital H58b1a9953c4611296a827abf8c47804d7
hello plus a trailing space6f814893777bcc2295fff05f00e508da6
héllo € in UTF-8106a1950b864488746748ba6312d3ce712
héllo € in UTF-16LE147ccd190cae24b8ea46e88574a709e583
héllo € in Latin-1 (€ becomes ?)79073462cbf666632b4778c8b9fe20f8e
line one, line two with LF17a8e259530e140091d1fe5d0e1538a934
line one, line two with CRLF18a1eb36f883f9b00f906ae60f6b0daa26
Nothing typed0d41d8cd98f00b204e9800998ecf8427e

In Base64, the hash of hello is XUFAKrxLKna5cZ2REBfFkg==. It is the same 16 bytes as 5d41402abc4b2a76b9719d911017c592, only written differently, so a Base64 value and a hex value should never be compared character by character.

Why Your Hash Does Not Match the One From Your Terminal

When the bytes match, every correct MD5 tool returns the same hash. A mismatch almost always means the two sides hashed different bytes, and four causes cover nearly every case.

  • echo added a line break. echo hello | md5sum hashes six bytes and returns b1946ac92492d2347c6235b4d2611184. To hash only the word, use printf %s hello | md5sum or echo -n hello | md5sum, or set the final line break here to "add" to match echo.
  • The file has Windows line breaks. A text file created on Windows usually uses CRLF, so its hash will not match the same text pasted with LF. Select CRLF, or hash the file itself instead of its pasted contents.
  • The other system used a different encoding. SQL Server's HASHBYTES('MD5', N'text') hashes UTF-16LE bytes, while PHP's md5() hashes whatever bytes the string holds, usually UTF-8. Plain English letters hash the same in UTF-8 and Latin-1, so those two only split once accents, symbols or other scripts appear; UTF-16LE differs even for plain letters, because it uses two bytes for each one.
  • A space or capital letter slipped in. Copying from a spreadsheet often carries a trailing space. The byte count gives it away: hello is 5 bytes, hello with a space is 6.

To hash a file from the command line, use md5sum file on Linux, md5 file on macOS, or certutil -hashfile file MD5 on Windows. When two text files should match but do not, the text compare tool shows the exact line or character that differs.

What MD5 Cannot Do, and When Another Tool Fits Better

MD5 cannot be reversed. Sites that claim to decrypt it only look the hash up in lists of known inputs, which is why a short word like hello is found at once and a long random string never is. MD5 is fine for checking that a file arrived intact, but it is not safe for passwords or for anything an attacker might forge, since collisions can be produced on purpose. That is why SHA-256 is shown next to every result, for the cases where MD5 is the wrong choice.

The ToolsPivot generator also has hard limits: SHA-1 and SHA-256 are skipped above 100 MB, Latin-1 replaces characters it cannot hold with a question mark, file batches stop at 50 and per-line mode at 50,000 lines. Other tools do some jobs better:

  • Inventive HQ's hash generator adds SHA-384, SHA-512 and SHA-3 with HMAC and a compare panel, so it fits when you need those algorithms. It hashes text as exact UTF-8, with no line-break or encoding choice.
  • IPVoid's File Checksum computes MD5 through SHA-512 for a file in one pass with a progress bar, for files up to 250 MB, but it has no text input.
  • For a multi-gigabyte file where you also need SHA-256, sha256sum or certutil on your own machine avoids the 100 MB SHA ceiling.

The MD5 code was checked against the RFC 1321 and RFC 2202 reference values and against a second, independent implementation on random inputs of many lengths, 1,215 checks in total. HMAC-MD5 follows RFC 2104. Competitor features were confirmed on each tool's own page in November 2026.

Tested on November 2026 with the reference inputs in the table above, recomputed in Python's hashlib; the 1,215-check verification figure comes from the tool methodology.

Frequently Asked Questions

Report a Bug