Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Converters & Encoders
  3. Hash Generator
Add to favorites

Hash Generator

Hash text or files with MD5, SHA-1, SHA-256 or SHA-512 as you type, create HMAC signatures, and check a download against its published digest.

Runs locally in your browserMore converters & encodersJump to full guide
Related readingA Practical Guide to Data Encryption: Protecting Information at Rest and in Transit10 minHash Functions Explained: MD5, SHA-256, and When to Use Each11 min

Initializing in your browser…

You might also like

Checksum Calculator

Check a download against its published SHA-256 or MD5 checksum, verify a whole SHA256SUMS file, compare two files or find duplicates, all in your browser.

Color Palette Generator

Generate colour palettes from one base colour, with tints and shades, contrast and colour-blindness checks, and CSS, Tailwind or JSON export.

QR Code Generator

Make QR codes for links, Wi-Fi, contacts, events and payments as you type, check that each one scans, and download it as PNG or SVG.

An example conversion

Before relying on a digest to detect changes, you want to see how much it moves when the input barely changes.

Two inputs, one character apart

The quick brown fox jumps over the lazy dog
The quick brown fox jumps over the lazy dog.
What Hash Generator produces

Digests (hex)

Without the full stop
MD5      9e107d9d372bb6826bd81d3542a419d6
SHA-256  d7a8fbb307d7809469ca9abcb0082e4f
         8d5651e46d3cdb762d02d0bf37c9e592

With the full stop
MD5      e4d909c290d0fb1ca068ffaddf22cbd0
SHA-256  ef537f25c895bfa782526529a9b63d97
         aa631564d5d789c2b765448c8635fb6c

One extra byte, 44 instead of 43, and both digests change completely. Nothing in the second pair hints at how close the inputs were, which is the property that lets a matching digest stand in for comparing two files byte by byte. MD5 catches an accidental change like this as well as SHA-256 does. The difference shows up against an attacker: two different inputs that share an MD5 can be manufactured on an ordinary computer, while nobody has found two that share a SHA-256.

What this converter does

Generate MD5, SHA-1, SHA-256, SHA-384 and SHA-512 digests of any text or file, compute an HMAC with a secret key, or check a download against the digest its publisher lists. Everything is hashed in your browser as you type, and every result copies with one click.

How it works

A hash function turns any input into a short, fixed-length fingerprint. The same bytes always produce the same digest, and changing a single character changes roughly half of the output bits, so two digests are either identical or plainly different. That is why hashes are the standard way to confirm a file arrived intact, to find duplicates, and to build signatures and message authentication codes.

Not every algorithm is still safe for every job. MD5 and SHA-1 can both be made to collide on purpose: the first MD5 collision was published in 2004, and in 2017 researchers released two different PDF files with the same SHA-1. Both remain fine for catching accidental corruption and for working with older systems, and the tool labels them so you do not pick them by mistake. SHA-256 is the sensible default for anything new. SHA-384 and SHA-512 give longer digests from the same family, and SHA-512 is often faster on 64-bit machines. The CRC and Adler checksums under More options are not cryptographic at all; they catch transmission errors, but anyone can forge a match.

Text is hashed as UTF-8, the encoding almost every system uses, and the counter under the input shows the byte count, since an accented letter or an emoji takes more than one byte. Line endings count too. A file saved on Windows ends each line with two bytes where a Mac or Linux file uses one, so the same visible text can give different digests. When a digest from another program does not match, a trailing newline or a CRLF is the usual cause.

Files are read on your device and never uploaded. MD5 and the checksums are computed a chunk at a time, so size is not a concern. The SHA family uses the browser's built-in implementation for files up to 1 GB and a chunked method above that, which is slower but works on files too large to load in one piece. A progress bar with a Cancel button appears while a large file is read, and ticking another algorithm afterwards only reads the file again for that one.

HMAC mixes a secret key into the hash, which is how webhook signatures and many API request signatures are made. The key can be typed as plain text, hex or base64. A hex or base64 secret is decoded to its bytes first, as most servers do, and getting that step wrong is the most common reason a computed signature does not match. Verify mode accepts a published digest in almost any form, including base64, hex with spaces or colons, or a whole line from a SHA256SUMS file, and works out from its length which algorithms could have produced it.

How to use

  1. 1Pick Hash, HMAC or Verify at the top.
  2. 2Type or paste text, or press Hash a file (you can also drop a file on the input). Try an example fills in a sample sentence.
  3. 3In Hash mode, tick the algorithms you need; SHA-256 is on by default. Each digest appears with its own copy button.
  4. 4For an HMAC, enter the secret key, say whether it is text, hex or base64, and choose the algorithm.
  5. 5To check a download, choose Verify, add the file, and paste the digest from the publisher's page. The verdict names the algorithm that matched.
  6. 6Open More options for SHA-512/256, SHA-512/224, the CRC checksums, and uppercase hex or base64 output.

Key features

  • MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA-512/256 and SHA-512/224
  • CRC-32, CRC-32C, Adler-32 and CRC-16/ARC checksums
  • Several algorithms at once, updated as you type
  • Files of any size, with a progress bar, Cancel and Resume
  • HMAC with the key given as text, hex or base64
  • Verification against hex, base64 or checksum-file lines, with the algorithm detected from the length
  • Output as lowercase hex, uppercase hex, base64 or base64url
  • One-click copy for every result
  • Clear labels on algorithms that are broken for collisions or not cryptographic
  • Runs in your browser; a share link carries the settings, never your text or file

Tips & best practices

  • When comparing with command line output, use printf or echo -n, since plain echo adds a newline that changes the digest.
  • For webhook signatures, hash the raw request body exactly as received, before any JSON parsing or reformatting.
  • In Verify mode you can paste a whole line from a SHA256SUMS file; the file name is shown so you can confirm you are checking the right download.
  • Choose base64 output when the receiving system expects it, as Content-MD5 headers and Subresource Integrity values do.

Where this fits

  • Checking a downloaded installer or disk image

    Add the file in Verify mode and paste the SHA-256 from the vendor's download page. A match means you have exactly the bytes they published, not a truncated or tampered copy.

  • Debugging a webhook signature

    Services such as GitHub, Stripe and Slack sign each payload with HMAC-SHA256. Paste the raw body and the signing secret to see the signature you should be computing, and compare it with the header you received.

  • Spotting duplicate files

    Two files with the same SHA-256 have the same contents, whatever their names or dates. Hash both and compare the digests instead of opening them.

  • Building a cache key or content fingerprint

    Hash a configuration string or a file to get a stable identifier that changes whenever the content does, in hex or base64 depending on where it will be used.

Frequently asked questions

Which algorithm should I use?

SHA-256 for almost anything new: file checksums, fingerprints and HMAC signatures. Use MD5 or SHA-1 only when another system requires them. Use SHA-384 or SHA-512 if a standard you follow asks for a longer digest.

Can a hash be reversed to get the original text back?

No. A digest does not contain the input. Short or common inputs can still be guessed by hashing candidates until one matches, which is why passwords must be stored with a slow, salted function such as bcrypt or Argon2 rather than plain SHA-256.

Why does my digest differ from the one another program shows?

Because the bytes differ, even if the text looks the same. The usual culprits are a trailing newline (the echo command adds one), Windows line endings, a byte order mark at the start of a file, or a different text encoding. Hash the file itself rather than copied text when you need an exact comparison.

What is the difference between a hash and an HMAC?

Anyone can compute a plain hash, so it proves that data has not changed by accident. An HMAC also needs a secret key, so a matching HMAC shows the message came from someone who holds that key. That is what webhook and API signatures rely on.

How large a file can I hash?

In practice, any size your device can read. Files are processed in chunks, and the SHA algorithms switch to a slower chunked method above 1 GB. Speed depends on your device; a progress bar shows how far along it is.

Is it safe to hash sensitive text or files here?

Yes. Hashing happens in your browser and nothing is sent to a server. The share button creates a link that holds only the mode, algorithms and output format.

Why is MD5 still offered if it is broken?

Many systems still publish or expect MD5, and it remains good at catching accidental damage. What it cannot do is resist someone who deliberately crafts two files with the same digest, so it is marked as broken for collisions.

Related tools and how they differ

  • Checksum Calculator: Built for files rather than text: hash many files at once, read and write SHA256SUMS-style checksum files, and compare two files side by side.
  • SRI Hash Generator: Produces a ready-made integrity attribute and script or link tag for pinning a CDN file; use it for Subresource Integrity rather than hashing plain text.

Further reading

  • A Practical Guide to Data Encryption: Protecting Information at Rest and in Transit10 min read
  • Hash Functions Explained: MD5, SHA-256, and When to Use Each11 min read

Private by design

Conversions run on your device in JavaScript. The values you enter are never sent over the network.