Free Online Checksum Calculator

Calculate SHA-256, SHA-1, and SHA-512 checksums for text or files. All computation runs locally using the Web Crypto API.

Key Features

bolt

Fast Processing

Uses Web Crypto API for fast, native hash computation.

lock

Privacy Protected

All processing runs locally in your browser. No data sent to servers.

deployed_code

Multiple Algorithms

Compute SHA-256, SHA-1, and SHA-512 checksums individually or all at once.

upload_file

File Support

Upload files to compute checksums for integrity verification.

What Is a Checksum?

A checksum is a fixed-length value computed from an arbitrary data input, designed to detect accidental or intentional changes to the data. The term "checksum" historically referred to simple error-detection codes like CRC32, but in modern development it is often used interchangeably with "cryptographic hash." A well-designed checksum function produces a completely different output even if a single bit of the input changes — a property known as the avalanche effect. This tool computes cryptographic hashes using the Web Crypto API, the same native browser API used for HTTPS security.

Checksum vs Hash vs Encryption

These three concepts are frequently confused but serve fundamentally different purposes:

The Four Generations of Hash Algorithms

Understanding the evolution of hash algorithms helps you choose the right one for your use case:

How Checksums Work: A Code Example

Calculating a checksum programmatically in different environments:

// JavaScript (Browser) — Using Web Crypto API
async function sha256(input) {
  const encoder = new TextEncoder();
  const data = encoder.encode(input);
  const hashBuffer = await crypto.subtle.digest('SHA-256', data);
  const hashArray = Array.from(new Uint8Array(hashBuffer));
  return hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
}
# Python — Using hashlib
import hashlib

def sha256_hash(data):
    return hashlib.sha256(data.encode('utf-8')).hexdigest()

# Output: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
print(sha256_hash("Hello, World!"))
# Command Line — Linux / macOS
echo -n "Hello, World!" | sha256sum

# Command Line — Windows PowerShell
Get-FileHash -Algorithm SHA256 -Path "file.txt"

File Integrity Verification Workflow

Verifying that a downloaded file has not been corrupted or tampered with follows this standard workflow:

  1. Obtain the official checksum — Most software distributions publish SHA-256 checksums on their download page or in a separate .sha256 file.
  2. Download the file — Use any standard download method (HTTP, FTP, torrent).
  3. Compute the local checksum — Use this tool (upload the file) or the command line to compute the file's SHA-256 hash.
  4. Compare the two values — If the checksums match exactly, the file is identical to the original. Any difference — even a single character — indicates corruption or tampering.

Step-by-Step Guide: Using This Tool

  1. Select an algorithm — Click SHA-256, SHA-1, or SHA-512 in the tab bar.
  2. Enter or paste text — Type text directly into the input area, or click "Upload File" to select a file from your computer.
  3. Click Calculate — The tool computes the checksum instantly. Enable "Realtime mode" to auto-calculate as you type.
  4. Copy the result — Click the Copy button to copy the checksum to your clipboard.
  5. Toggle case — Use the ABC → abc button to switch between uppercase and lowercase hex output as needed.
  6. Compare all algorithms — Switch to "All Algorithms" mode to see SHA-256, SHA-1, and SHA-512 hashes side by side for the same input.

Common Use Cases

Best Practices

Related Resources

Frequently Asked Questions

Getting Started
What is the difference between a checksum and a hash?expand_more
Technically a checksum (like CRC32) detects accidental corruption, while a cryptographic hash (like SHA-256) resists intentional tampering. This tool computes cryptographic hashes, not simple checksums.
Should I compare hashes visually?expand_more
Never compare hashes visually — a single-character difference is easy to miss. Copy both hashes and use a diff tool, or paste them side by side in a text editor to confirm.
Why no CRC32 or other non-cryptographic checksums?expand_more
CRC32 is not available in the Web Crypto API. For verifying file integrity against malicious modification, SHA-256 is the correct tool.
Uppercase or lowercase hex for checksums?expand_more
Both are equivalent — hex digits A-F and a-f represent the same values. Linux tools output lowercase, Windows certutil outputs uppercase. The case-toggle button lets you switch instantly.