# Text Hash Generator

Compute MD5, SHA-1, SHA-256, SHA-512, and CRC-32 hashes of any text in one shot. Get both hex and Base64 digests over the UTF-8 encoding.

> Canonical page: https://elysiatools.com/en/tools/text-hash-generator

- **Category:** Text Processing

- **Keywords:** text hash, md5, sha1, sha-256, sha-512, crc32, checksum, digest, sha256, fingerprint

## Overview

A one-stop text hashing utility. Paste text and instantly get all five common digests: MD5 (128-bit, legacy), SHA-1 (160-bit, deprecated for security), SHA-256 (the recommended modern hash), SHA-512, and CRC-32 (a fast non-cryptographic checksum). Hashes are computed over the UTF-8 byte encoding of the input, and each is shown in both lowercase hex and Base64. Useful for generating cache keys, file/integrity checksums, content-addressable IDs, dedup keys, verifying data transfer, and teaching how the same input yields fixed-length fingerprints. Copy buttons work even inside the sandboxed preview via an execCommand fallback.

## Inputs

- **Text to hash** (textarea): Type or paste any text…
- **Output formats** (select)
- **Algorithms** (select)

## When to use

- Create a SHA-256 fingerprint for text used in a cache key or content-addressable identifier.
- Compare text checksums when verifying data integrity or transfers.
- Generate legacy MD5 or SHA-1 values for systems that still require them.

## How it works

- Enter or paste the text to hash.
- Choose an algorithm: MD5, SHA-1, SHA-256, SHA-512, or CRC-32.
- Select Hex only or Hex + Base64 output.
- Review and copy the generated digest.

## Use cases

- Generate cache keys and stable text fingerprints with SHA-256 or another selected algorithm.
- Create checksums for comparing text before and after transfer.
- Teach how identical UTF-8 input produces fixed-length hexadecimal and Base64 digests.

## Frequently asked questions

### Which algorithms does the tool support?

It supports MD5, SHA-1, SHA-256, SHA-512, and CRC-32.

### What encoding is used for the input text?

The digest is calculated from the text's UTF-8 byte encoding.

### Can I get the hash in Base64?

Yes. Select Hex + Base64 to receive both formats.

### Which algorithm is recommended for new uses?

SHA-256 is the recommended modern option. MD5 and SHA-1 are legacy algorithms, while CRC-32 is not cryptographic.

### What is CRC-32 used for?

CRC-32 provides a fast, non-cryptographic checksum for detecting accidental changes.

## Related tools

- [Hash Algorithm Comparator](https://elysiatools.com/en/tools/hash-algorithm-comparator): Hash the same input with MD5, SHA-1, SHA-256, SHA-512, BLAKE2b, and BLAKE3 at the same time and compare them side by side: output length, hex/Base64 digest, security status (broken / modern), and a relative speed benchmark. Great for teaching, choosing a hashing algorithm, or sanity-checking checksums.
- [Hash Generator](https://elysiatools.com/en/tools/hash-generator): Generate hash values (MD5, SHA1, SHA256, SHA512)
- [Audio Hash](https://elysiatools.com/en/tools/audio-hash): Generate cryptographic hashes (checksums) for audio files
- [PKCE Code Verifier & Challenge Generator](https://elysiatools.com/en/tools/pkce-code-verifier-generator): Generate, validate and verify OAuth2 / OIDC PKCE (RFC 7636) code_verifier and S256 code_challenge pairs. Three modes: (1) generate a fresh verifier + challenge from cryptographically secure random bytes at 256/384/512/768-bit entropy, (2) audit a verifier you already have against the RFC — length (43–128), charset \[A-Za-z0-9-._~\] and ≥256-bit entropy, and (3) verify a verifier/challenge pair by recomputing BASE64URL(SHA256(verifier)). Optionally build the full authorization-request URL and token-exchange body. Complements the generic nonce-generator (which only emits a verifier+challenge pair) with RFC-compliance auditing and pair verification.
- [CRC32 Checksum](https://elysiatools.com/en/tools/crc32-checksum): Compute the CRC32 checksum (IEEE 802.3 polynomial) of any text or raw bytes. Output as hex, decimal or binary. Accepts plain text (UTF-8) or raw bytes via hex/base64 input.
- [Data URI Generator](https://elysiatools.com/en/tools/data-uri-generator): Convert files into Data URIs (Base64 or percent-encoded) for inlining images, fonts, and assets directly into HTML, CSS, or Markdown
- [Checksum Comparator](https://elysiatools.com/en/tools/checksum-comparator): Compare two checksums/hash values to check if they match
- [File Hash Verifier](https://elysiatools.com/en/tools/file-hash-verifier): Calculate MD5/SHA1/SHA256 hash values for files and verify against expected hashes

## Samples

- [Text with Emoji Samples](https://elysiatools.com/en/samples/text-with-emoji-samples): Mixed language text containing various Unicode emojis for testing emoji extraction
- [Chinese-English Mixed Text Samples](https://elysiatools.com/en/samples/text-chinese-english-mixed-samples): Sample text files with mixed Chinese and English content for testing automatic spacing tools
- [Text Case Format Samples](https://elysiatools.com/en/samples/text-case-formats): Examples of different text case formats: camelCase, snake_case, kebab-case, PascalCase, and more
- [Text with Chinese Samples](https://elysiatools.com/en/samples/text-with-chinese-samples): Mixed language text containing Chinese characters for testing Chinese extraction

## Related content

- [Binary Encoding, File Forensics, and Integrity Tools](https://elysiatools.com/en/hubs/binary-encoding-file-forensics-integrity): Inspect bytes and signatures, identify file types, measure entropy, and verify hashes or checksums in one safe forensic workflow.
