Internative Logo

MD5, SHA-1, SHA-256 and SHA-512 Hash Generator

Convert text to hash with four algorithms

Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from text input.

How to use the hash generator

  1. 1

    Enter your text

    Type or paste text into the input area. The tool hashes its UTF-8 bytes exactly as entered, including accents, spaces, tabs and line breaks.

  2. 2

    Generate the hashes

    Select Generate to produce MD5, SHA-1, SHA-256 and SHA-512 together as lowercase hexadecimal. Processing happens entirely in your browser; your input is not sent anywhere.

  3. 3

    Compare the outputs

    MD5 produces 32 hex characters (128 bits), SHA-1 produces 40 (160 bits), SHA-256 produces 64 (256 bits), and SHA-512 produces 128 (512 bits). When comparing results, check that the input matches exactly, including any trailing newline.

  4. 4

    Clear the input

    Use Clear to reset the widget before entering another text. This tool accepts text only, with no file upload, secret-key HMAC or salt option.

Explore More Tools

Hash generator examples: hello and small changes

Use hello without a trailing newline to compare the four algorithms. The MD5 examples show how capitalization, a newline and empty input affect the result.

Hashes of the text hello

AlgorithmLength (hex)Hash
MD5325d41402abc4b2a76b9719d911017c592
SHA-140aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d
SHA-256642cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
SHA-5121289b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043

Small changes, different hashes (MD5)

InputMD5
hello5d41402abc4b2a76b9719d911017c592
Hello8b1a9953c4611296a827abf8c47804d7
hello (with a trailing newline)b1946ac92492d2347c6235b4d2611184
(empty text)d41d8cd98f00b204e9800998ecf8427e

SHA-256 in Node.js JavaScript

import { createHash } from "node:crypto";
createHash("sha256").update("hello").digest("hex");

SHA-256 in Python Python

import hashlib
hashlib.sha256("hello".encode("utf-8")).hexdigest()

Frequently asked questions

How do I generate a hash from text?

Enter your text and select Generate to get its MD5, SHA-1, SHA-256 and SHA-512 hashes at once. A hash is a fixed-length digest of the input, so the same text always produces the same result for a given algorithm. This text-to-hash converter processes UTF-8 bytes locally in your browser.

Can a hash decoder reverse a hash?

No, a hash cannot be decoded or decrypted to recover the original text. A hash function is one-way and has no decryption key. Sites offering hash decode usually search precomputed tables or guess candidate inputs until a hash matches, which can work for common passwords but is not a way to reverse long random input.

Is MD5 safe, and how does MD5 compare with SHA-256?

MD5 is unsuitable for security decisions; SHA-256 is a general-purpose choice for integrity checks and digital signatures. MD5 and SHA-1 have known collision attacks, so avoid both for signatures and certificates. An MD5 hash generator remains useful for non-adversarial checksums, cache keys and de-duplication. SHA-512 is another SHA-2 option, with a 512-bit output.

Can I use a SHA256 hash generator to store passwords?

No, a plain SHA-256 hash is not suitable for password storage. MD5, SHA-1, SHA-256 and SHA-512 are fast, allowing attackers to test password guesses quickly. Use a slow, salted password hashing scheme such as bcrypt, scrypt or Argon2 instead. This widget does not offer password hashing or a salt option.

Why does my terminal produce a different hash?

A trailing newline can make your terminal hash different from the hash of the text alone. The command echo "hello" | md5sum includes a newline and produces b1946ac92492d2347c6235b4d2611184. Use printf or echo -n to hash hello alone, which produces 5d41402abc4b2a76b9719d911017c592. Spaces, tabs and other input differences also change the result.

Is this a random hash generator?

No, this hash generator is deterministic and does not create random input. Entering the same text again gives the same four hashes; changing the text changes the results. If you need a random password or a random identifier, use a password generator or UUID generator respectively.

Choose the next tool for your task.

Built by Internative

Crafted by our software and AI engineering team

Every free tool here is a byproduct of the custom software, SaaS platforms and AI products we ship for our enterprise clients. Need a production-grade version, an API, or a full engineering team behind the next build? Let's talk.

Related services from Internative

The commercial engineering services closest to this tool.