Skip to content
MyToolkit.pro

Developer tools

Hash Generator

Paste any text and get its MD5, SHA-1, SHA-256 and SHA-512 digests at once. Everything is hashed locally and updates as you type. Your input never leaves this browser.

Private by design: no text is uploaded or stored.

What do you want to hash?

Private by design: no text is uploaded or stored.

Input size (UTF-8 bytes): 0

The file is read and hashed only in this browser.

Algorithms
Digest letter case

Try an example

⚠️ Not for passwords

MD5 and SHA-1 are broken for security use — never use them to store passwords or verify integrity against a determined attacker. Even SHA-256 and SHA-512 are unsalted and unstretched here: for passwords use a dedicated algorithm such as bcrypt, scrypt or Argon2. These digests are for checksums and interoperability, not secrets.

Hashes

Updates as you type or when you generate.

MD5 legacy
—
SHA-1 legacy
—
SHA-256
—
SHA-512
—

How does hashing work here?

A hash function maps your text to a fixed-length fingerprint: the same input always yields the same digest, and any change flips it completely. MD5 is implemented in pure JavaScript because browsers deliberately omit it; SHA-1, SHA-256 and SHA-512 use the built-in Web Crypto API. Text is first encoded as UTF-8 bytes, so accented and emoji characters hash exactly as they would on a server. Everything runs in your browser.

How to generate a SHA-256 or MD5 hash

  1. Under What do you want to hash?, choose Text to paste a string, or File to hash a file from your disk.
  2. For text, type or paste into the box. The digests refresh on every keystroke, so you don't need to press Generate hashes.
  3. For a file, use Choose a file to hash. The tool switches to File mode by itself and shows the file name and size in bytes.
  4. Under Algorithms, leave on only the digests you need. If you only want SHA-256, untick MD5, SHA-1 and SHA-512 and their cards disappear.
  5. Under Digest letter case, pick UPPERCASE if the system you're pasting into shows checksums in capitals.
  6. Each card has its own Copy button for a single digest. Copy all copies every selected digest as labelled lines.

The counter under the text box shows the input size in UTF-8 bytes, and those bytes are what gets hashed. Plain ASCII uses one byte per character. Accented Latin letters such as é or ż use two, most CJK characters use three, and most emoji use four. So zażółć is 6 characters and 10 bytes.

Example digests you can check against

The classic test string abc (also one of the built-in examples) gives the published reference values from the MD5 and SHA standards:

MD5:     900150983cd24fb0d6963f7d28e17f72
SHA-1:   a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

A single capital letter changes the whole digest. Here is SHA-256 of two nearly identical strings:

Input SHA-256
hello world b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9
Hello world 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c

A trailing newline counts too. abc followed by Enter is 4 bytes, and its MD5 is 0bee89b07a248e27c83fc3d5951213c1, not 900150…. This is the usual reason a hash from this page doesn't match echo abc | md5sum in a terminal: echo adds a newline unless you use echo -n.

With only MD5 and SHA-256 selected and UPPERCASE on, Copy all gives you:

MD5: 900150983CD24FB0D6963F7D28E17F72
SHA-256: BA7816BF8F01CFEA414140DE5DAE2223B00361A396177A9CB410FF61F20015AD

Checking a small file against a published checksum

File mode works well for small downloads where the publisher lists a SHA-256 or MD5 next to the link, such as a script, a config file or a download of a few MB.

  • Switch to File, pick the file and wait for the digests to appear.
  • Paste the published value into Compare with an expected hash. Spaces around it are trimmed and letter case is ignored. Paste only the hex value, not the file name that follows it in SHA256SUMS-style lines.
  • If it matches, the page shows which algorithm matched, for example "Match: SHA-256". Otherwise it shows No selected hash matches. Keep the published algorithm ticked, because the comparison only checks digests that are switched on.

Other uses that work well here:

  • Checking whether two config snippets or API payloads are byte-for-byte identical without diffing them by eye.
  • Producing a test-vector digest to paste into a unit test or bug report.
  • Matching a cache key or ETag-style fingerprint that a backend builds from a known string.

If two texts look the same but their hashes differ, the cause is often hidden characters such as non-breaking spaces, zero-width characters or mixed line endings. Find where they differ in Text Diff / Compare, clean them with the Invisible character remover, and hash them again.

Limits and when to use something else

  • File size matters a lot. Hashing runs in JavaScript on the page, at roughly two seconds per MB on a laptop (slower on phones), and the page doesn't respond until it finishes. A 20 MB file can take more than half a minute.
  • For ISO images, disk images and other large downloads, use your operating system instead: sha256sum file.iso on Linux, shasum -a 256 file.iso on macOS, or certutil -hashfile file.iso SHA256 / Get-FileHash file.iso on Windows.
  • The text box accepts about 1,000,000 characters, and most emoji count as two or more. For bigger text, save it as a file and use File mode.
  • An empty text box shows no hashes. The digests of empty input are listed in the FAQ below.
  • When you type in a browser text box, line breaks are stored as LF. A Windows file with CRLF line endings will therefore only match if you hash the file itself, not pasted text.
  • There is no HMAC, salt or key option, and no SHA-3 or BLAKE family. The page computes plain MD5, SHA-1, SHA-256 and SHA-512 as defined in RFC 1321 and RFC 6234.

Frequently asked questions

Is SHA-256 better than MD5?

For security, yes. An MD5 collision can be produced in seconds on an ordinary computer, while no collision has ever been found for SHA-256. To catch accidental corruption in a download, either one works.

Can a hash be decrypted back to the original text?

No. A hash is a one-way fingerprint, not encryption, so there is nothing to decrypt. So-called MD5 decrypters just look up digests of common strings in precomputed tables, which is why short or predictable inputs are easy to guess.

Why is a SHA-256 hash always 64 characters long?

SHA-256 always produces 256 bits, which is 32 bytes and 64 hexadecimal characters, whatever the input size. Likewise MD5 is always 32 hex characters, SHA-1 is 40 and SHA-512 is 128.

What is the SHA-256 hash of an empty string?

It is `e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855`. For empty input MD5 is `d41d8cd98f00b204e9800998ecf8427e` and SHA-1 is `da39a3ee5e6b4b0d3255bfef95601890afd80709`. If you see one of these where you expected real data, something upstream hashed nothing.

Why does my C# or PowerShell hash of a string not match?

In .NET, `Encoding.Unicode` means UTF-16, which uses two bytes per letter, so `abc` hashes to MD5 `ce1473cf…` instead of `900150…`. Use `Encoding.UTF8.GetBytes()` to get the same bytes this page hashes.

All in Code & Data

Regex Tester

Test a regular expression against your text, see every match highlighted and copy a match report. Runs entirely in your browser.

Code & Data In your browser

Cron Expression Helper

Explain a cron expression in plain English and preview its next run times. Runs entirely in your browser — nothing is uploaded.

Code & Data In your browser

Lorem Ipsum Generator

Generate placeholder Lorem ipsum text — paragraphs, sentences or words — instantly in your browser. Nothing is uploaded.

Text & Lists In your browser

Slug generator

Turn any title into a clean, SEO-friendly URL slug. Transliterates accents (ą→a, ß→ss), lets you pick the separator and runs entirely in your browser.

Text & Lists In your browser

Keyword density checker

Count keyword frequency and density locally with configurable stop words.

Text & Lists In your browser

JSON Formatter

Format, validate and beautify JSON data privately in your browser.

Code & Data In your browser

What do you need?

Swipe up for the next one