Text Hash Generator: SHA-256, bcrypt, Argon2, Base64 and 30+ Algorithms | SnugyTools
A text hash generator turns arbitrary text into a short, fixed-size fingerprint called a digest, or into a reversible encoding that can be converted back again. The SnugyTools Text Hash Generator puts more than thirty algorithms in one clean browser interface: the SHA-2 and SHA-3 families, Keccak, BLAKE2, legacy MD and RIPEMD functions, national standards such as SM3 and Whirlpool, the CRC32 checksum, dedicated password-hashing functions (bcrypt, Argon2id, Argon2i, scrypt and PBKDF2), keyed HMAC-SHA256, and a full set of reversible encodings (Base64, Base64URL, Hex, URL, ROT13, Base32, Binary and HTML entities). Everything runs locally in your browser using the Web Crypto API and the hash-wasm WebAssembly library, so your text is never uploaded to a server. This guide explains what each algorithm is, how long its output is, where it is strong, where it is weak, and how to choose the right one for a real job.
How the tool works
Using the generator is deliberately simple, but there is a useful model behind it. The tool reads your input as UTF-8 bytes, feeds those bytes into the selected algorithm, and renders the result in the output box. One-way hashes and password functions cannot be decoded; reversible encodings can, and the tool gives you an Encode/Decode switch plus a Swap button for those.
- Type or paste text into the input field. Results update automatically after a short debounce, so you see the digest as you type.
- Pick an algorithm from the grouped dropdown or the quick-access buttons. Algorithms are organised into families: SHA-2, SHA-1, Legacy, SHA-3, BLAKE, National, Checksum, Password, Keyed and Encoding.
- Adjust the advanced options where they apply: bcrypt cost and its $2a$/$2b$/$2y$ variant, scrypt cost and block size, Argon2 iterations, memory and parallelism, PBKDF2 iteration count, an HMAC key, or a salt for the password functions.
- Copy the result with one click. Password and keyed functions are intentionally slow, so the tool shows a busy indicator while they compute.
A few details matter. Hashing is byte-exact: “Hello”, “hello” and “hello ” (with a trailing space) all produce completely different digests. Salt fields accept any text and are normalised to 16 bytes internally; HMAC accepts any secret key you provide. When you want to inspect a reversible encoding, switch to Decode mode and the tool will only let you select algorithms that can genuinely be reversed. Trying to decode a one-way hash simply returns an error, which is the correct and expected behaviour.
Algorithm comparison at a glance
The table below summarises every algorithm in the tool. “Output length” is the size of the digest or encoded result as produced here; encoding lengths are variable because they grow with the input. “Reversible” means the original text can be recovered from the output alone. “Relative speed” compares algorithms to each other for short inputs — password functions are deliberately slow by design.
| Algorithm | Output length | Reversible? | Relative speed | Recommended use |
|---|---|---|---|---|
| MD5 | 128 bits (32 hex) | No | Very fast | Legacy checksums only; never security |
| SHA-1 | 160 bits (40 hex) | No | Very fast | Legacy verification; being phased out |
| SHA-224 | 224 bits (56 hex) | No | Fast | Truncated SHA-2 niche, signatures |
| SHA-256 | 256 bits (64 hex) | No | Fast | General integrity, blockchain, APIs |
| SHA-384 | 384 bits (96 hex) | No | Fast | TLS, signatures, higher security margin |
| SHA-512 | 512 bits (128 hex) | No | Fast | 64-bit platforms, high-security digests |
| SHA3-256 | 256 bits (64 hex) | No | Fast | Modern SHA-3 standard, integrity |
| SHA3-512 | 512 bits (128 hex) | No | Fast | Maximum-strength SHA-3 digest |
| Keccak-256 | 256 bits (64 hex) | No | Fast | Ethereum addresses, pre-NIST Keccak |
| BLAKE2b | Up to 512 bits (128 hex; 512 here) | No | Very fast | Fast modern hashing on 64-bit systems |
| BLAKE2s | Up to 256 bits (64 hex; 256 here) | No | Very fast | Fast hashing on 8/32-bit systems |
| RIPEMD-160 | 160 bits (40 hex) | No | Fast | Bitcoin addresses, legacy compatibility |
| MD4 | 128 bits (32 hex) | No | Very fast | Historical study only |
| SM3 | 256 bits (64 hex) | No | Fast | Chinese standard, GB/T compliance |
| Whirlpool | 512 bits (128 hex) | No | Moderate | Large digest, niche integrity use |
| CRC32 | 32 bits (8 hex) | No | Very fast | Accidental error detection only |
| bcrypt ($2a$/$2b$/$2y$) | Fixed 60-character string | No | Very slow (tunable) | Password storage, legacy-friendly |
| Argon2id | Encoded string (32-byte digest) | No | Very slow (tunable) | Password storage, recommended default |
| Argon2i | Encoded string (32-byte digest) | No | Very slow (tunable) | Password hashing where side-channel resistance leads |
| scrypt | 32-byte derived key (64 hex) | No | Very slow (tunable) | Password KDF, memory-hard key derivation |
| PBKDF2-SHA256 | 32-byte derived key (64 hex) | No | Very slow (tunable) | Compliant, widely supported password KDF |
| HMAC-SHA256 | 256 bits (64 hex) | No (needs secret key) | Fast | Message authentication, signed tokens |
| Base64 / Base64URL | Variable (~4/3 of input) | Yes | Very fast | Safe transport of bytes in text fields |
| Hex | Variable (2x input bytes) | Yes | Very fast | Readable byte dumps, digests, keys |
| URL encoding | Variable | Yes | Very fast | Query strings and form values |
| ROT13 | Same length as input | Yes | Very fast | Obfuscation, teaching examples |
| Base32 | Variable (~8/5 of input) | Yes | Very fast | Case-insensitive codes, otpauth URIs |
| Binary | Variable (8x input bytes) | Yes | Very fast | Learning, bit-level inspection |
| HTML entities | Variable | Yes | Very fast | Escaping text for HTML documents |
SHA-2: the workhorse family
SHA-2 is the hash family most of the internet relies on today. It was published by the US National Institute of Standards and Technology (NIST) as a successor to SHA-1. The family uses the same internal compression design at different word sizes and output widths, and it has resisted practical attacks for over two decades. All SHA-2 variants here are one-way: there is no setting to reverse them, and a one-bit change in the input produces a completely different digest — the avalanche effect.
SHA-256
The 256-bit member produces a 64-character hexadecimal string. It is the default choice for file integrity, software download checksums, TLS certificates, API signatures and proof-of-work blockchains. Its strengths are speed, universal library support and a large security margin against collision attacks. Its only real weakness is that, like all fast hashes, it is too fast for storing passwords — a commodity GPU can test billions of guesses per second. Reach for SHA-256 when you need a general-purpose, standards-compliant digest, not when you need password protection.
SHA-224
SHA-224 is a truncated 28-byte version of SHA-224's bigger sibling SHA-256, giving a 56-character hex output. It exists to match the 112-bit security strength of triple DES and to fit certain signature schemes. It is perfectly sound, but it offers no practical advantage over SHA-256 unless a protocol specifically requires a 224-bit result, so treat it as a compatibility tool.
SHA-384 and SHA-512
SHA-384 emits 96 hex characters (48 bytes) and is simply SHA-512 computed with different initial values and truncated. SHA-512 emits the full 128 hex characters (64 bytes). Both use 64-bit words, which makes them faster than SHA-256 on 64-bit processors for long inputs, and both carry a very large safety margin. SHA-384 is common in TLS cipher suites and government profiles; SHA-512 is popular when a maximum-width digest is wanted. The trade-off is simply a longer string to store or transmit. If you do not have a specific protocol requirement, SHA-256 is usually sufficient and more compact.
SHA-3 vs Keccak: what is the difference?
SHA-3 is the newest NIST hash standard (FIPS 202), chosen from the Keccak family after a public competition. Keccak uses a sponge construction that is structurally different from SHA-2, so SHA-3 provides a valuable algorithmic alternative: if a future attack breaks the SHA-2 design, SHA-3 is unlikely to share the weakness. SHA3-256 produces a 64-character digest and SHA3-512 a 128-character digest.
Here is the subtle part that trips up many developers. During the competition, NIST adjusted Keccak's padding rule. The final standard is called SHA3; the original competition version is called Keccak. They give different hashes for the same input. The tool exposes both SHA3-256 and Keccak-256 so you can match whichever ecosystem you are working with. If you are deriving an Ethereum address, you need Keccak-256 — Ethereum predates the final SHA-3 standard and uses the original padding. If you are following a modern NIST-compliant specification, use SHA3-256 or SHA3-512. Choosing the wrong one produces a valid-looking but completely incorrect result, so always check the spec.
BLAKE2: fast and modern
BLAKE2 is a family of unkeyed hashes designed as a faster, simpler successor to BLAKE, one of the SHA-3 finalists. It is not a NIST standard, but it is widely respected, cryptographically strong and extremely fast in software. Its distinctive feature is that the digest length is tunable: you can request anywhere from 1 byte upward.
BLAKE2b is optimised for 64-bit processors and supports up to a 512-bit (64-byte, 128 hex character) output — the size this tool produces by default. BLAKE2s is tuned for 8-bit to 32-bit platforms and tops out at 256 bits (32 bytes, 64 hex characters). Both also support keys and personalisation in their full APIs, which makes them flexible building blocks. Their weakness is mostly ecosystem-related: some older systems and compliance regimes do not list BLAKE2, so you may need SHA-2 for interoperability. When speed matters and you control both ends, BLAKE2b is an excellent, thoroughly analysed choice.
Legacy hashes: MD5, SHA-1, MD4 and RIPEMD-160
These algorithms are included because you will still meet them in old systems, and because they are useful for learning. None of them should be chosen for a new security-sensitive design.
MD5
MD5 produces a 128-bit digest (32 hex characters) and was once the default checksum on the web. It is now decisively broken: practical collision attacks let an attacker craft two different inputs with the same MD5 hash. That means MD5 cannot be trusted for digital signatures, certificates or any situation where an adversary benefits from a collision. It is still fine as a non-adversarial checksum to detect a corrupted download, and it remains embedded in legacy protocols. Never use it for passwords.
SHA-1
SHA-1 yields 160 bits (40 hex characters) and was the standard for decades until collision attacks and the famous SHAttered demonstration showed it could be broken with realistic computing power. Major browsers and certificate authorities have deprecated it. Use SHA-1 only to verify old data or to interoperate with systems that have not migrated — for example some Git object identifiers still use it. For anything new, choose SHA-256 or SHA-3.
MD4
MD4 is a 128-bit (32 hex) hash from 1990 and is the ancestor of MD5. It was broken long ago, is severely vulnerable to collisions and is included here mainly for historical and educational exploration. There is no legitimate modern use for MD4. Treat it as a museum piece.
RIPEMD-160
RIPEMD-160 produces 160 bits (40 hex characters) and was designed as a European alternative in the mid-1990s. It has held up better than MD5 and SHA-1 — no practical collision attack is known — but its 160-bit output gives a smaller security margin than modern 256-bit hashes, and it is far less widely supported. Its main surviving claim to fame is Bitcoin, where it is combined with SHA-256 to build addresses. Use it for compatibility with such systems, not as a first choice for new work.
National and special-purpose hashes: SM3 and Whirlpool
SM3 is a Chinese national hash standard published by the State Cryptography Administration and standardised as GB/T 32905. It produces a 256-bit (64 hex character) digest with a design similar in spirit to SHA-256. SM3 is widely used in Chinese financial, government and communications systems, and it is becoming more common in international standards. If you are building for a region or protocol that mandates SM3 — for example certain TLS profiles or Chinese e-commerce platforms — this is the algorithm you need. Outside of compliance requirements, SHA-256 is the more common choice.
Whirlpool is a 512-bit (128 hex character) hash designed by Vincent Rijmen and Paulo Barreto, the creators of AES. It is based on a block-cipher-like round function and produces one of the largest digests available in this tool. Whirlpool has survived cryptanalysis well and is a solid 512-bit hash, but its speed and larger output are rarely necessary, and library support is thinner than for SHA-2. Think of it as a perfectly respectable specialist option when a wide digest is desired.
CRC32: a checksum, not a cryptographic hash
CRC32 computes a 32-bit (8 hex character) cyclic redundancy check. Its job is to catch accidental errors — a flipped bit in a network packet or a damaged archive — not to resist an attacker. It is extremely fast and simple, but it is trivially easy to deliberately construct two different inputs with the same CRC32 value, and its 32-bit space means collisions happen by chance for large data sets. Never use CRC32 for passwords, signatures, integrity against tampering or anything security-related. Use it exactly as intended: quick detection of unintentional corruption, often alongside a real cryptographic hash for stronger verification.
Password hashing: why fast hashes are the wrong tool
Storing a password is a fundamentally different problem from computing a checksum. With a checksum you want speed; with passwords you want the opposite. If a database leaks, an attacker can test guessed passwords offline at enormous speed. A single fast SHA-256 hash on a modern GPU can be evaluated billions of times per second, so even moderately complex passwords fall quickly. That is why the tool offers dedicated password-hashing functions — bcrypt, Argon2id, Argon2i, scrypt and PBKDF2 — which are engineered to be slow and expensive to compute.
Why SHA and MD5 are wrong for passwords
Fast hashes like MD5, SHA-1 and SHA-256 are designed to be quick and deterministic: the same input always gives the same output with no per-user variation. An attacker with a stolen table can precompute hashes for common passwords (rainbow tables) or simply brute-force at GPU speed, comparing each guess to the stored value. MD5 and SHA-1 add the further problem of known collision weaknesses. Even SHA-256, which is cryptographically sound as a hash, offers no defence against offline guessing because it costs almost nothing to compute. The fix is not a stronger fast hash; it is a password hash (or password-based key derivation function) that is deliberately slow, salted and resource-hard.
Salts: the defence against precomputation
A salt is a unique, random value added to each password before hashing and stored alongside the result. Because every user gets a different salt, the same password produces a different stored hash for each account. This defeats rainbow tables and forces an attacker to attack each account separately instead of cracking all identical passwords at once. In the tool, the password algorithms include a Salt field, which is normalised to 16 bytes internally. For real applications the salt should be generated randomly per user by a cryptographically secure generator and never reused. Salts are not secrets — they can be stored in plain sight next to the hash — but they must be unique. Note that including a salt here also lets you reproduce a specific expected hash for testing or verification.
Work factors: making each guess expensive
Password functions expose tuning knobs collectively called the work factor or cost. Raising them makes each hash slower and more memory-hungry for everyone — legitimate users during login and attackers during cracking — but you only pay the cost once per login, while an attacker pays it for every guess. The tool exposes bcrypt cost (4–17, default 10), scrypt cost (16–16384, default 1024) and block size, Argon2 iterations (1–20, default 3), memory (1024–262144 KiB, default 19456 KiB) and parallelism (1–16), and PBKDF2 iterations (up to 600000, default 100000). The right values are the largest your hardware can handle within your login latency budget; benchmark and revisit them every couple of years as hardware improves.
bcrypt, Argon2id, Argon2i, scrypt and PBKDF2 compared
bcrypt is the long-standing default for password storage. Based on the Blowfish cipher, it produces a fixed 60-character encoded string that embeds the salt, cost and hash in one portable value. Its $2a$, $2b$ and $2y$ prefixes are minor variant labels from different implementations: $2a$ is the original, $2b$ fixes a sign-extension bug, and $2y$ is the label used by some PHP/crypt implementations. The tool lets you choose the variant so you can match the system you are interoperating with. bcrypt's strength is maturity and huge library support; its weaknesses are a 72-byte password input limit and only modest memory use.
Argon2 is the winner of the Password Hashing Competition (2015) and the modern recommendation. Argon2id is a hybrid that combines data-independent and data-dependent memory access, giving a strong balance between resistance to GPU/ASIC attacks and resistance to side-channel leaks. It is the best default for most new applications. Argon2i uses data-independent access, which is maximally resistant to side-channel attacks but slightly weaker against certain GPU attacks; it suits environments where timing leaks are a primary concern. Both are memory-hard, meaning attackers cannot cheaply parallelise them on specialised hardware, and they produce a self-contained encoded string with all parameters included.
scrypt is a memory-hard KDF designed to make large-scale custom hardware attacks expensive. It is structured, well understood and heavily used in cryptocurrency and file encryption. Its cost, block size and parallelism parameters control CPU and memory use; here it derives a 32-byte key shown as 64 hex characters. scrypt is a solid choice when you want memory hardness with a long track record.
PBKDF2 (Password-Based Key Derivation Function 2) is the old standard, still widely required by compliance frameworks such as FIPS and PCI-DSS. This tool uses HMAC-SHA256 with a configurable iteration count to derive a 32-byte key (64 hex characters). PBKDF2 is easy to implement and universally supported, but it is not memory-hard, so modern GPUs and ASICs attack it more efficiently than Argon2 or scrypt. Use it when standards mandate it or when you need maximum compatibility; otherwise prefer Argon2id. In short: Argon2id is the best general default, bcrypt is the safe legacy favourite, scrypt is a strong memory-hard alternative, and PBKDF2 is the compliance choice.
Keyed hashing with HMAC-SHA256
HMAC (Hash-based Message Authentication Code) combines a cryptographic hash with a secret key. HMAC-SHA256 produces a 256-bit (64 hex character) tag that proves two things at once: the message was not altered, and it came from someone who knows the secret key. A plain hash only proves the data did not change — anyone can recompute it — whereas an HMAC cannot be forged without the key.
In the tool, enter your secret in the Key field and the message in the input box to get the tag. HMAC-SHA256 is the backbone of webhook signatures, JWT signing (HS256), API request authentication and session tokens. Its strengths are speed, simplicity and rock-solid security when the key is strong and kept secret. Its weaknesses are all about key management: if the key leaks, the protection is gone, and a shared key means every verifier can also create signatures — if you need non-repudiation, use digital signatures instead. Never confuse HMAC with password hashing: HMAC is fast on purpose and requires a high-entropy secret, not a human-chosen password.
Reversible encodings: NOT encryption and NOT security
This is the most important warning in the article. Base64, Base64URL, Hex, URL encoding, ROT13, Base32, Binary and HTML entities are encodings, not encryption. They change the representation of data so it can survive transport through systems that accept only certain characters; they do not hide it. Anyone can decode them instantly — the tool's Decode tab does exactly that with no key whatsoever. Never use an encoding to protect passwords, tokens, personal data or secrets.
Here is what each one does. Base64 maps bytes to 64 printable characters and is the standard way to carry binary data in JSON, email and data URIs; its output is about a third larger than the input. Base64URL replaces the + and / characters with - and _ and drops padding so the result is safe in URLs and filenames, which is why JWTs use it. Hex writes each byte as two hexadecimal digits, doubling the size but making output easy to read and compare — it is the natural format for hashes and keys. URL encoding (percent-encoding via encodeURIComponent) escapes characters that have special meaning in a URL, such as spaces and ampersands. ROT13 shifts letters by 13 places; it is a toy cipher useful only for spoiler hiding and teaching. Base32 uses a 32-character uppercase alphabet and is case-insensitive, making it popular for recovery codes and otpauth URIs. Binary shows the raw 0s and 1s of each byte — ideal for learning how UTF-8 works. HTML entities convert characters such as < and & into escaped forms so text is displayed rather than interpreted as markup.
Because these encodings are reversible, the tool lets you decode them and even swap input and output with one click. Remember: encoding provides format safety, never confidentiality. If you need secrecy, use real encryption such as AES-GCM; if you need integrity, use a hash or HMAC; if you need password storage, use Argon2id.
Practical use cases
The breadth of the tool makes it useful across many everyday tasks:
- Verify downloads and files: compare a SHA-256 or SHA-512 digest with the publisher's value to confirm a file is intact and untampered.
- Build API signatures and webhooks: use HMAC-SHA256 to sign payloads and verify that requests are authentic.
- Learn and teach cryptography: switch between MD5, SHA-1, SHA-2, SHA-3 and Keccak to see how the same input produces different digests, or view UTF-8 text as binary and hex.
- Debug data transport: encode and decode Base64, Base64URL, URL, Base32, HTML entities and Hex while troubleshooting JSON APIs, JWTs or form submissions.
- Interact with blockchains: reproduce Ethereum-style Keccak-256 hashes or RIPEMD-160-based address components for verification.
- Prototype password storage: experiment with salts and work factors in bcrypt, Argon2id, scrypt and PBKDF2 before implementing them server-side.
- Meet regional standards: generate SM3 digests for Chinese systems or Whirlpool where a 512-bit digest is required.
- Detect simple corruption: use CRC32 for a quick accidental-error check, ideally alongside a cryptographic hash.
How SnugyTools compares with other tools
Most online hash sites offer a handful of common algorithms, send your text to a remote server, and surround the result with advertising. SnugyTools takes a different approach.
| Feature | SnugyTools | Typical online hash site | Command-line / local tools |
|---|---|---|---|
| Algorithm coverage | 30+ including Argon2, BLAKE2, SM3, Keccak | Usually MD5, SHA-1, SHA-256 only | Varies; often needs extra packages |
| Privacy | Runs locally in your browser; no upload | Text often sent to a server | Local |
| Installation | None — just open the page | None | Requires setup and syntax knowledge |
| Password options | Salts, costs, variants, memory, parallelism | Rarely offered | Available but manual |
| Encode + decode | Both, with one-click swap | Often encode only | Separate commands |
| Cost | Free, no account | Free with limits or ads | Free but requires a machine |
| Speed | Instant for hashes; WebAssembly-backed | Network round-trip | Very fast |
Because the heavy lifting is done by the hash-wasm WebAssembly module directly on your device, even the slower password functions stay responsive, and nothing sensitive leaves your machine. The grouped algorithm picker, live results, copy button and clear descriptions make the tool approachable for beginners while remaining precise enough for developers who need a specific variant such as Keccak-256 or bcrypt $2y$.
Choosing the right algorithm
If you remember only a handful of rules, let these guide you. For file integrity and general-purpose hashing, use SHA-256 (or SHA-512/SHA3-512 when you want a wider digest). For a modern alternative with a different internal design, choose SHA3-256; for Ethereum compatibility, choose Keccak-256. For the fastest strong software hashing, use BLAKE2b. For storing passwords, reach for Argon2id with a unique salt and tuned cost, with bcrypt, scrypt or PBKDF2 as situation-specific alternatives. For authenticating messages with a shared secret, use HMAC-SHA256. For carrying bytes in text, use Base64, Base64URL or Hex — and never mistake those encodings for protection. Legacy MD5, SHA-1, MD4 and RIPEMD-160 belong in compatibility work only, CRC32 is just an error check, and SM3 and Whirlpool serve their particular standards niches.