# 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://test.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, choose one or more algorithms, and get the selected digests: MD5 (128-bit, legacy), SHA-1 (160-bit, deprecated for security), SHA-256 (recommended), SHA-512, and CRC-32 (fast non-cryptographic checksum). Hashes are computed over the UTF-8 byte encoding of the input and shown in lowercase hex and Base64. Useful for cache keys, integrity checksums, content-addressable IDs, dedup keys, and data-transfer verification.

## Inputs

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

## When to use

- You need a SHA-256 or MD5 digest of a string for cache keys or deduplication.
- You must supply both hexadecimal and Base64 representations of a hash digest.
- You want to compute a standard CRC-32 checksum or SHA fingerprint for a text payload.

## How it works

- Enter or paste the string into the Text to hash field.
- Select an algorithm from the Algorithms dropdown (SHA-256, SHA-512, MD5, SHA-1, or CRC-32).
- Select Hex only or Hex + Base64 from the Output formats dropdown.
- Review the output panel to retrieve the computed hash string in the requested format.

## Use cases

- Cache Key Generation: Convert dynamic query strings or request bodies into fixed-length SHA-256 hex keys.
- Legacy API Integration: Generate MD5 digests in hex or Base64 when integrating with legacy systems requiring 128-bit checksums.
- Payload Verification: Calculate a CRC-32 or SHA-256 fingerprint of a configuration snippet before sharing or storing.

## Frequently asked questions

### What character encoding is used to generate the hash?

The tool hashes the UTF-8 byte representation of the input text.

### Can I output hashes in both hexadecimal and Base64?

Yes. Set Output formats to 'Hex + Base64' to view both digest encodings simultaneously.

### Which algorithm is recommended for security-sensitive hashing?

SHA-256 or SHA-512. MD5 and SHA-1 are deprecated for cryptographic security and should only be used for legacy compatibility.

### Is CRC-32 suitable for cryptographic security?

No. CRC-32 is a 32-bit non-cryptographic checksum intended solely for basic data integrity checks.

## Related tools

- [Hash Algorithm Comparator](https://test.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://test.elysiatools.com/en/tools/hash-generator): Generate hash values (MD5, SHA1, SHA256, SHA512)
- [Audio Hash](https://test.elysiatools.com/en/tools/audio-hash): Generate cryptographic hashes (checksums) for audio files
- [CRC32 Checksum](https://test.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.
- [PKCE Code Verifier & Challenge Generator](https://test.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.
- [Data URI Generator](https://test.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://test.elysiatools.com/en/tools/checksum-comparator): Compare two checksums/hash values to check if they match
- [File Hash Verifier](https://test.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://test.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://test.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://test.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://test.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://test.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.
