Hash Generator

Use this free hash generator to create SHA-256, SHA-384, or SHA-512 hex digests from text with the browser SubtleCrypto API.

All tools
Illustration for Hash Generator showing generate SHA-256, SHA-384, or SHA-512 text digests in hexadecimal format.
Hash Generator artwork matches the live tool workflow: generate SHA-256, SHA-384, or SHA-512 text digests in hexadecimal format. Use it with the calculator, examples, and result notes. View in the smoke-kawaii gallery
Inputs explained Result checks Example values Runs in your browser

How to use the Hash Generator

  1. Choose SHA-256, SHA-384, or SHA-512.
  2. Paste or type the text you want to hash.
  3. Press Generate hash to create a hexadecimal digest.
  4. Remember that hashing is not encryption and a raw digest is not a password storage design.

What people use it for

Create a quick SHA-256 digest for a text sample.

Compare whether two pasted text values produce the same digest.

Generate SHA-384 or SHA-512 outputs for learning and debugging.

Keep small text hashing local in the browser.

Quick examples

SHA-256 text

Access Free Tools

bdcddc51dd9df0bad4c886a189a36bde524fd4c43f2ac196c7d8e2d4fe53076f

SHA-384 note

browser utility

96-character hex digest

SHA-512 phrase

local hash example

128-character hex digest

Need the guide or a nearby tool?

Need a slower walkthrough, a related generator, or the full library? These links keep you close to the task you started.

Frequently asked questions

Plain-language answers about when to use the tool, what it does with your inputs, what to double-check, and how privacy works.

When should I use the Hash Generator?

Use it when your task matches one of these common needs: Create a quick SHA-256 digest for a text sample. Compare whether two pasted text values produce the same digest. It works best when you already know the text, code, URL, mode, format, or technical setting the page asks for.

What is the Hash Generator doing with my inputs?

In plain language: The tool uses TextEncoder to turn text into UTF-8 bytes, calls browser crypto.subtle.digest() with SHA-256, SHA-384, or SHA-512, then writes each digest byte as two lowercase hexadecimal characters. SHA-256 returns 32 digest bytes, SHA-384 returns 48, and SHA-512 returns 64. The examples on the page are there so you can compare your inputs with a filled-out example before copying the answer.

What do the main Hash Generator inputs mean?

Algorithm: Choose SHA-256 for the common 32-byte digest, SHA-384 for a 48-byte digest, or SHA-512 for a 64-byte digest. Text to hash: Paste the exact text you want to digest. Case, spaces, punctuation, emoji, and line breaks all change the output. Input bytes: This is the UTF-8 byte length of your text before hashing. It can be different from the character count when the text includes emoji or non-English characters. Hex digest: The result is lowercase hexadecimal text. Two hex characters represent one digest byte.

How should I read the Hash Generator answer?

Read the output next to your original input. If the tool changes format, units, encoding, spacing, or capitalization, compare a small sample before copying the whole result into another app.

What should I double-check before trusting the answer?

A hash is not encryption, a login design, or proof of who created text. Do not use raw hashes for password storage, signatures, API secrets, or authenticity checks; those need salts, key-derivation functions, HMACs, signatures, and security-specific code. Also check the selected mode, input format, encoding, and whether the text includes private keys, passwords, or sensitive data.

Is a hash the same as encryption?

No. Encryption is designed to be reversed with a key. A SHA-2 hash is a one-way digest, so this page cannot decrypt the output back into the original text.

Why does a tiny text change create a different hash?

Hash functions are built so small input changes create very different digests. Changing a capital letter, adding a trailing space, or changing a line break should produce a new hash.

Why is a SHA-256 digest 64 hex characters?

SHA-256 returns 32 digest bytes. Hex uses two characters per byte, so 32 bytes become 64 lowercase hex characters. SHA-384 becomes 96 hex characters, and SHA-512 becomes 128.

Can I use this for password storage?

No. Password storage needs a password-hashing design such as a modern salted key-derivation function with security parameters. A raw SHA digest is not enough.

Can this page hash files?

No. This page is for text. File hashing needs a file picker, visible file-size limits, browser memory notes, and clear handling for large or binary files.

Does a matching hash prove who wrote the text?

No. A matching digest can show that two exact text values match, but it does not prove the sender or owner. Authenticity checks need HMACs, digital signatures, or another trusted system.

Does the site save what I enter?

No. The tool runs in your browser tab. Your recent answers stay only on the page while you use it, and they are not sent to a server.

Related tools