Home › Developer Tools › Hash Generator

Hash Generator

Type text or choose a file to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes. Paste a published checksum to confirm that a download is genuine. Files are hashed in your browser and never uploaded.

Last updated:

0 characters · 0 bytes

Advertisement
Advertisement

How to use the Hash Generator

  1. Choose Text or File. Type or paste text, or drop a file onto the box.
  2. Pick the algorithms you need. MD5, SHA-1, SHA-256 and SHA-512 are selected by default.
  3. Press Generate hashes (text also updates as you type; files start automatically).
  4. Paste an expected checksum into the matcher to see instantly whether it matches and which algorithm it belongs to.
  5. Copy any hash, switch to uppercase, or choose Base64 output for things like Subresource Integrity.

Hash algorithms compared

AlgorithmOutput sizeHex lengthStatusTypical use
MD5128 bits32Broken (collisions)Legacy checksums, cache keys, duplicate detection
SHA-1160 bits40Broken (collisions since 2017)Older Git object IDs, legacy checksums
SHA-256256 bits64SecureDownload checksums, certificates, blockchains
SHA-384384 bits96SecureSubresource Integrity (SRI), TLS
SHA-512512 bits128SecureFile integrity, often faster than SHA-256 on 64-bit CPUs

The hex length tells you the algorithm of an unknown checksum at a glance: a 64-character hash is almost certainly SHA-256. The checksum matcher uses this to point you to the right algorithm.

Test vectors: check any hash tool

These are the official values for the three-letter text abc (bytes 61 62 63). Type abc above to see the same results.

AlgorithmHash of "abc"
MD5900150983cd24fb0d6963f7d28e17f72
SHA-1a9993e364706816aba3e25717850c26c9cd0d89d
SHA-256ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad

The hash of empty input is also fixed: MD5 d41d8cd98f00b204e9800998ecf8427e and SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855. If you see these, the text box or file is empty.

Tips for matching checksums

  • Case does not matter for hex: ABC1 and abc1 are the same hash. The matcher ignores case and spaces.
  • Text hashes depend on every byte. "hello" and "hello " (with a trailing space) or a version ending in a newline have completely different hashes.
  • Base64 output is used by Subresource Integrity: an integrity attribute is sha384- followed by the Base64 SHA-384 hash of the file.
  • On the command line you can compare with sha256sum file (Linux), shasum -a 256 file (macOS) or certutil -hashfile file SHA256 (Windows).

Frequently asked questions

What is a hash?

A hash function turns any input into a fixed-length fingerprint. The same input always gives the same hash, and changing a single character produces a completely different one. Hashes are used to check that files are intact, to find duplicates and to identify data.

Which hash algorithm should I use?

Use SHA-256 or SHA-512 for anything security related. MD5 and SHA-1 are still fine for spotting accidental corruption or matching checksums that a website publishes, but both are broken for security purposes because collisions can be created on purpose.

How do I verify a downloaded file?

Open the File tab, choose the downloaded file and paste the checksum from the publisher's website into the checksum matcher. If it says Match, the file is byte-for-byte identical to the one the publisher hashed.

Why does my text give a different hash in another tool?

Hashes are computed on bytes, so the text encoding and invisible characters matter. This tool uses UTF-8 and hashes exactly what is in the box, including spaces and line breaks. A trailing newline, Windows line endings (CRLF) or a different encoding will change the result.

Can a hash be reversed to get the original text?

No. Hash functions are one-way. Short or common inputs like simple passwords can be found with lookup tables, which is why passwords should be stored with a slow, salted algorithm such as bcrypt or Argon2, not a plain MD5 or SHA hash.

Are my files uploaded?

No. Files are read and hashed locally with JavaScript and the Web Crypto API. Nothing is sent to a server.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.Password GeneratorCreate strong passwords and passphrases.File Info ViewerCheck file size, type, date and MD5/SHA hashes.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Binary TranslatorConvert text to binary, hex, octal and back.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.Punycode ConverterConvert international domain names, emails and URLs between Unicode and xn-- Punycode, in bulk.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary to HexConvert binary to hex instantly with steps and signed mode.Hex to BinaryConvert hex to binary instantly with steps and signed mode.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.RSA Key GeneratorGenerate 2048, 3072 or 4096-bit RSA key pairs as PEM, PKCS#1, JWK or OpenSSH, locally.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.SHA-512 Hash GeneratorSHA-512 and SHA-384 hashes of text or files in hex or Base64, HMAC and hash verification.UUID Decoder & ValidatorDecode any UUID: version, variant, v1/v6/v7 timestamp and MAC node, plus bulk validation.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.
See all 65 Encoders, Hashes & Crypto →