hyve

SRI hash generator

Generate Subresource Integrity hashes for scripts and stylesheets. Runs entirely in your browser; nothing leaves your machine.

It hashes the exact bytes you give it and writes the tag. It does not fetch anything, so it can't tell you whether the copy on your server or CDN matches. Hash the file you actually serve.

Files

Drop files here, or press Enter to choose.

Up to 50 MB per file and 200 MB per batch. Folders can't be hashed; choose the files inside them.

Or paste text

Hashed as UTF-8, exactly as it appears in the box. A trailing newline changes the hash, and the box stores line endings as LF. If the served file uses CRLF, or may differ by even one byte, hash the file instead.

Verify

Paste the value, for example sha384-…, or the whole tag.

Using the tag

A resource on another origin needs crossorigin="anonymous" on the tag, and its server must send CORS headers (Access-Control-Allow-Origin). Without both, the browser blocks the resource. If the file changes, even by a byte, the hash must be regenerated.