Small tools. Better flow.

Hash & HMAC

Calculate checksums and keyed authentication codes for text or files.

Usage guide

Your input stays in this browser.

Input & options

Files up to 20 MB; text up to 1 MB

View code examples ↓

Result

Your result will appear here.

Code examples

Starting points for your own code. Run them in the environment shown below.

Node.js 22+ · ES module (.mjs)

Current inputs apply only to fields used by the example. Selected files are not embedded.

import { createHash, createHmac } from "node:crypto";
const input = "hello";
console.log(createHash("sha256").update(input, "utf8").digest("hex"));
console.log(createHmac("sha256", "test-secret").update(input, "utf8").digest("hex"));

Put it to work

Compute a downloaded file’s SHA-256 and compare it with the publisher’s checksum.

Details that matter

Format and meaning

Supports SHA-256, SHA-384, and SHA-512. MD5 and SHA-1 are not offered.

Using it correctly

HMAC uses a UTF-8 secret key. Unlike an ordinary hash, reproducing it requires the key.

Common pitfalls

A plain hash is not a password-storage function. Use a purpose-built password derivation function.

Supported scope and limits

Files up to 20 MB; text up to 1 MB

Split inputs that exceed the limit. If a format or algorithm is unsupported, choose a tool that matches your requirements instead of silently changing the format.