Developer Guide

MD5 vs SHA-256 (and Why Neither Should Hash Your Passwords)

By ToolFlic Expert Team Updated 943 words

A cryptographic hash takes any input and returns a fixed-size fingerprint that is one-way (you cannot reverse it, unlike encryption), deterministic (same input, same output) and avalanche-sensitive (one flipped bit changes everything). The two you meet constantly are MD5 (a 128-bit, 32-character hex digest) and SHA-256 (a 256-bit, 64-character hex digest). They are not simply "weaker" and "stronger" versions of the same tool - one is cryptographically broken, and the other is fine.

The most important, and most misunderstood, point: both are the wrong choice for storing passwords. Speed that makes SHA-256 great for integrity makes it terrible for secrets, because a good hashing algorithm for data is a great guessing engine for GPUs. This guide explains what each hash is actually for, and why password storage needs a completely different class of function.

What a hash is - and what it is not

Hashing is not encryption. Encryption is reversible with a key; a hash has no key and no inverse. You hash a file to detect corruption or a change; you do not "decrypt" an MD5 back to the original. Any tool that claims to "decrypt" a hash is really just looking up the input in a precomputed table.

These generators compute a hash of text you type, entirely in your browser, and they do exactly that - nothing more. They have no salt, no iterations and no secret, which is precisely why they are fine for fingerprints and dangerous for passwords.

MD5: broken for security, still common for non-adversarial uses

MD5 produces a 32-character hex digest and its collision resistance is thoroughly broken - anyone can craft two different inputs with the same MD5 cheaply. That rules it out anywhere an attacker might exploit collisions: code-signing, certificate trust, integrity of files that a hostile party could tamper with, or "proof" two things differ.

It is still seen as a quick, non-security checksum (detecting accidental corruption, cache keys, dedup within trusted data) and in legacy systems. But when in doubt, reach for SHA-256 instead; the extra 32 characters are almost never a reason to use a broken primitive.

SHA-256: a sound choice for integrity and identity

SHA-256 (part of the SHA-2 family) has no practical collisions known and is the default for tamper-evidence and content addressing: it is what Git uses to name objects, what TLS certificates and software signatures rely on, and what blockchain-style digests use. If you need to prove a file has not changed, or to derive a stable ID from content, SHA-256 is the right tool.

It is fast by design, which is exactly what you want for hashing large volumes of public data - and exactly what you do not want for protecting a small secret, as the next section explains.

Why you must never store passwords with MD5 or SHA-256

Password verification is the opposite problem: you want hashing to be slow and expensive so brute force is costly, and you want it unique per user so one stolen table cannot be attacked in bulk. Fast general hashes give you neither - a GPU tries billions of SHA-256 (let alone MD5) attempts per second, and unsalted digests fall to rainbow tables. A single fast hash of a common password is effectively plaintext to a serious attacker.

The correct tools are deliberately slow, salted, work-factor key-derivation functions: Argon2id (memory-hard, current best practice) or bcrypt, with scrypt or PBKDF2 as alternatives. The salt makes each hash unique and defeats precomputed tables; the tunable cost makes guessing expensive. Our generators provide neither salt nor iterations, so they are the wrong class of tool for passwords by design.

JobRight primitiveWrong / unsafe choice
File integrity / tamper evidenceSHA-256MD5 (collisions are practical).
Content address / dedup IDSHA-256Anything an attacker can collide.
Password storageArgon2id or bcrypt (salted, slow)MD5, SHA-1, SHA-256, SHA-512.
Reversible encoding of bytesbase64 (encoding, not a hash)Calling base64 "encryption."
Accidental-corruption checksumSHA-256 (MD5 legacy only)Trusting MD5 against a foe.

A frequent confusion to kill outright: base64 is not hashing or encryption at all - it is a reversible encoding of arbitrary bytes into safe text. Anything base64-encoded can be decoded instantly; it provides zero confidentiality or integrity.

Frequently Asked Questions

Is SHA-256 good enough to hash passwords?

No. SHA-256 is intentionally fast, and fast hashing is the worst property for passwords because GPUs can try billions of guesses per second. Store passwords with a slow, salted KDF such as Argon2id or bcrypt, not a raw hash, and never with MD5 or unsalted SHA.

Why is MD5 considered broken?

Because collisions are practical to produce: two different inputs that yield the same MD5 digest can be crafted cheaply. Anywhere an adversary could exploit that (signatures, certificates, tamper evidence), MD5 is unsafe. Use SHA-256 instead.

Can you decrypt an MD5 or SHA-256 hash?

No. Hashing is one-way with no key and no inverse. What tools sometimes call "decryption" is just looking up a known input in a precomputed table. A hash of a random or high-entropy value cannot be reversed at all.

Is base64 a form of encryption?

No. base64 is a reversible encoding of bytes into text safe to paste around; it has no key and no secrecy. Anything base64-encoded is trivially decoded. Use a real cipher for confidentiality and a hash for integrity - base64 is neither.

MD5 vs SHA-256 for checking a download?

For detecting an accidental corrupted download either works, but if any party could deliberately tamper with the file, use SHA-256, because MD5 collisions are practical. The safe default is SHA-256 unless a legacy system requires MD5.

What does the salt actually do?

A unique random salt per password makes every hash different, so attackers cannot use rainbow tables or hash one guess against many users, and the same password hashes differently for two accounts. Combined with a slow work factor, it turns bulk guessing into an expensive, per-target task.

More Guides

How to Compress an Image to 100 KB (or Any Exact Size) Without Losing Quality

A tested method for hitting 100 KB, 50 KB, 20 KB or 500 KB exactly: dimension math, quality steps, and the formats that shrink best. Works on phone and desktop, no upload required.

Passport and Visa Photo Sizes by Country (US, UK, Schengen, India, Canada, Australia, China)

Exact photo sizes for US, UK, Schengen, India, Canada, Australia and China applications โ€” millimetres, pixels, KB limits, background and head-height rules, plus how to prepare a compliant file.

How to Reduce PDF Size for Online Applications (2 MB, 5 MB, 100 KB and Other Limits)

Get scanned documents, CVs and certificates under any portal limit with real downsampling settings โ€” plus why your PDF is huge, why merging adds pages, and how to keep text selectable.

JSON Formatter for API Debugging: Nine Common Errors and Their Fixes

Line and column errors explained: trailing commas, single quotes, unquoted keys, escaping, arrays versus objects, and the XML-to-JSON gotchas that break integrations. Paste and validate instantly.

How to Merge PDFs on a Phone for Free (Android and iPhone), No Upload

Scan pages, join them into one PDF and email it - all in the browser on your phone. Real page-count and size limits, the scan-then-merge workflow, and how to stay under a 2 MB portal cap without a desktop or an app.

QR Code Print Rules: Size, Error Correction and Contrast That Actually Scan

The numbers that decide whether a printed QR scans: module size, quiet zone, error-correction level (L/M/Q/H), matte vs gloss, print DPI and a real test routine. Generate a print-ready code free, in the browser.

Random Passwords vs Passphrases: Entropy Maths and Real Crack Times

How many bits a password really has, why length beats symbols, honest offline-crack-time maths, and where a password manager and 2FA matter. Generate a strong random password in your browser with nothing sent anywhere.

Word Count for Assignments: Limits, What Counts, and How to Trim Safely

Exactly what a word counter counts, whether the bibliography and headings are included, why 250 words is 250 words, and how to trim to the limit without breaking citations. Count free, in your browser, with no upload.

EMI vs Mortgage Loans: Tenure, Total Interest and the 28/36 Affordability Rule

The real EMI formula, why a longer tenure lowers the payment but raises total interest, the 28/36 affordability rule, part-payment and balance-transfer maths - all worked through. Calculate free, in your browser.

Base64 Data URIs for Images: the +33% Overhead and When Inlining Wins

Why base64 costs about 33% more bytes, how data URIs save or add requests, the HTTP/2 reality, cacheability trade-offs, and inline SVG vs bitmap. Encode and decode a data URI free, in your browser.

Metric and Imperial Conversions: the Factors, the Traps and the Rounding Rules

The exact factors for length, weight and temperature, the tonne vs ton vs metric-cwt trap, rounding rules for construction and cooking, and how to convert without introducing error. Convert free, in your browser.

Website Slow? Fixing LCP, Render-Blocking JS and Core Web Vitals

What LCP, INP and CLS actually measure, lab vs field data, the biggest real fixes - image sizing, render-blocking JS/CSS, caching - and how to check server latency. Be honest that a quick checker is not PageSpeed Insights.

How to Create and Submit an XML Sitemap (and What Actually Gets Pages Indexed)

A practical, honest walkthrough: build an XML sitemap, host it, reference it in robots.txt, and submit it in Google Search Console and Bing - plus why a sitemap is a hint, not a guarantee of indexing.

robots.txt Directives Explained: User-agent, Allow, Disallow, Crawl-delay and Sitemap

A clear, tested reference for every robots.txt line - how matching works, the $ and * rules, crawl-delay reality, and the mistakes that silently block the wrong things.

Meta Description Length: The Character Band and the Pixel Cut Behind the Snippet

There is no official character limit. Here is how Google actually truncates by pixel width, the ranges that usually survive on desktop and mobile, and how to write a description that gets shown instead of rewritten.

AI Crawlers, GPTBot and llms.txt: What They Mean for Your Site

Who the AI bots are (GPTBot, ClaudeBot, PerplexityBot, Google-Extended and more), how to allow or block each in robots.txt, and an honest take on what llms.txt does and does not do.

Domain Authority: What DA Actually Measures (and Why It Is Not a Google Score)

Domain Authority is a Moz prediction, not a Google metric. What DA and PA really mean, why they differ between tools, how to use them honestly, and how our checker fetches them.

How to Find Broken Links Before They Cost You Traffic and Trust

Why 404s and dead outbound links leak value, the HTTP codes behind them, a practical one-page check workflow, and how to fix each failure - using a browser-based link checker.

Google Index vs Crawl: Two Different Things Most People Conflate

Crawling, indexing and ranking are three separate stages. What crawled-but-not-indexed really means, which signals let a page be indexed, and how to verify status honestly in Search Console.

Keyword Density: Why There Is No "Safe" Percentage to Hit

What keyword density actually measures, why chasing a target percentage is a myth, when the number is a useful red flag, and how to use a density checker without stuffing.

UTM Parameters: A Clean Naming Convention and Reusable Template

What utm_source, medium, campaign, term and content actually capture, the rules for a consistent lowercase naming scheme, a copy-paste template, and the traps that wreck attribution.

HTTP Status Codes Every Site Owner Should Recognise

A plain-language map of 200, 301, 302, 404, 410, 403 and 5xx codes, what each does to your SEO, and how to read a URL's real status without guessing.

A GDPR-Ready Privacy Policy Checklist (and Why a Generator Is Only the Draft)

What a GDPR privacy policy must disclose, the many obligations that live outside the document, how CCPA differs, and how to use a policy generator without mistaking a draft for compliance.

Plagiarism vs Paraphrasing: An Honest Guide to Originality Checks

Why a browser plagiarism checker cannot compare your text to the internet, what matched-source detection actually needs, how to paraphrase legitimately, and how to use originality tools without fooling yourself.

Reading and Writing Regular Expressions Without Fear

A plain-language tour of regex syntax, the JavaScript flags (g, i, m, s, u), capture groups, the greedy-vs-lazy and engine gotchas, and how to test a pattern safely before you ship it.

CSV to JSON: How to Convert Cleanly (Delimiters, Headers and Quoting)

The traps that silently corrupt CSV data - quoted fields, embedded commas and newlines, header-vs-array shape, auto-typed numbers and BOM - and how to convert to JSON safely.

XML to JSON: What Gets Lost and How to Convert Faithfully

XML and JSON are not equivalent trees. How attributes, repeated elements, mixed content, CDATA and namespaces map across - and where silent data loss and array-vs-object ambiguity bite.

Minify, Compress or Cache? Three Speed Levers People Confuse as One

HTML minification shrinks bytes, compression shrinks transfer, and a CDN or cache cuts latency and rework. What each layer actually changes and the order to apply them.

Formatting SQL for Readable Code Review (Without Pretending It Validates It)

A SQL beautifier only reflows text - it cannot prove a query is correct. How to format for review, pick a house style, and combine it with real validation and EXPLAIN.

URL Encoding and Reserved Characters: What to Escape and When

Percent-encoding, the RFC 3986 reserved vs unreserved split, the difference between encoding one parameter value and a whole URL, and the double-encoding traps that break requests.

Favicon Sizes: The Complete, Honest List (and What Actually Matters)

A favicon is not one file. Which sizes serve which surfaces - tab, apple-touch, PWA 192/512, legacy ICO - what SVG can and cannot replace, and what a generator can really output.

Unix Time and the 2038 Problem: What a Timestamp Really Is

Epoch time is seconds since 1970 UTC ignoring leap seconds. Why 32-bit signed counters roll over in 2038, the seconds-versus-milliseconds bug, and always storing UTC.

UUID vs Auto-Increment IDs: Which Primary Key to Use

Random UUID v4 versus sequential integer IDs: index locality, key size, global uniqueness, enumeration risk, and the time-ordered middle ground (UUIDv7/Snowflake/ULID).

How to Upscale an Image Without Pixelation (Honest Limits)

What 2x/4x/8x interpolation really does, why enlarging cannot invent captured detail, smooth versus nearest-neighbour, and when upscaling helps versus when to leave the image alone.

WebP vs JPEG: When to Use Each (and When Neither)

WebP is 25-35% smaller and adds transparency and animation, but JPEG still wins on reach. When each fits, lossy versus lossless, and how compatibility and the quality slider change the choice.

PDF to Word: What 'Editable' Really Means (Digital vs Scanned)

Digital PDFs carry a real text layer and convert cleanly; scanned PDFs need OCR with imperfect results. What a converter can and cannot give you, and how to get a good edit.

How to Scan Documents to PDF on Your Phone (Free, Private)

Turn camera photos of pages into a proper PDF: shoot pages that scan well, drag to reorder, set page size, margins and quality, merge batches, and keep everything on-device.

BMI: What It Measures and Where It Is Wrong

BMI is weight over height squared - a cheap screening proxy, not body fat or a diagnosis. Where it misleads: athletes, children, the elderly, pregnancy, and different ethnicities.

How to Calculate Age for Documents (Exact Years, Months and Days)

Age 'as of' a reference date, completed years, leap-day (Feb 29) birthdays, and unambiguous date formats for admissions, exams, visas and benefits paperwork.

Counting Business Days: Weekdays, Deadlines and the Long-Weekend Trap

Working-day math for contracts and delivery SLAs: exclude weekends, remember holidays are not built in, and handle the inclusive-versus-exclusive start-date off-by-one errors.

What a Valid Invoice Needs (and What Depends on Your Country)

The elements almost every invoice carries versus the jurisdiction-specific extras - tax/GST/VAT number, tax breakdown, e-invoicing, sequential numbering. A template is not tax advice.

Text-to-Speech for Accessibility: What It Helps and Its Limits

Browser TTS speaks text with the voices already on the device. Who it helps (low vision, dyslexia, proofreading), where it falls short, and why it complements rather than replaces accessible design.

Downloading and Using YouTube Thumbnails: What's Fair

You can grab a video's preview image, but usage rights are separate from the download button. Ownership, fair use, embedding versus re-hosting, and the safe rules - plus how the downloader actually works.

How to Convert HEIC to JPG on Windows (Free, and Without Uploading Your Photos)

Open iPhone HEIC photos on a PC: use a browser HEIC converter that decodes locally, or install the HEVC/HEIF extensions. What HEIC is, why Windows struggles, and when to convert.

LiftOff Badge PeerPush Badge