# SHA256 hash generator

> Calculate a SHA-256 hash of your text.

[Open tool](https://www.toolcabana.com/cu/sha256) · [Developer and data](https://www.toolcabana.com/cu/category/developer-and-data)

Tool ID: sha256. Requested language: cu. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

SHA256 hash generator calculates the SHA-256 digest of the exact UTF-8 bytes of your text. The digest can be shown as lowercase hex, uppercase hex or Base64. Spaces and line breaks are part of the input, so any change to them produces a different hash. It hashes text, not files.

## Supported tasks (en)

Calculate a SHA-256 hash of your text.

## Steps (en)

1. Type or paste your source, or load an example.
2. Change the basic settings or open Advanced mode to fine-tune the result.
3. Review and copy or download your result. Pause Live results to run manually. Sources or individual settings above 20,000 characters require an explicit run.

## Settings

- Digest format (en; key: digestFormat; type: select): hex [en], HEX [en], base64 [en]

## Limitations (en)

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Example input

```text
Hello ToolCabana
```

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### Why does my SHA-256 hash not match another tool?

The hash covers every byte, including trailing spaces and line breaks, so an extra newline changes the result. Also confirm both tools use UTF-8 and the same output format.

### Can I get the SHA-256 hash in Base64?

Yes. Set Digest format to base64 in Advanced mode. You can also choose lowercase hex, which is the default, or uppercase HEX.

### Can I hash a file with the SHA256 hash generator?

No. This tool hashes the text you type or paste. Use the file checksum verifier to calculate the SHA-256 of a file from the exact file bytes.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Text operations generally accept up to 2,000,000 characters. Individual parsers, generators and formulas apply additional limits shown by their controls.

## Related tools

- [Unix timestamp converter](https://www.toolcabana.com/cu/unix-timestamp)
- [MD5 checksum generator](https://www.toolcabana.com/cu/md5)
- [Regex tester](https://www.toolcabana.com/cu/regex-tester)
- [File checksum verifier](https://www.toolcabana.com/cu/file-checksum)
