SRI hash generator

Compute a Subresource Integrity hash for a file or pasted text — sha256/384/512, base64, with a tag preview.

Input
Digest

Everything runs in this browser. Nothing is uploaded or stored.

SHA-256/384/512 in base64 integrity format. Text input is UTF-8 encoded first. The tag preview is a generic script element — paste the integrity value into your own markup when the real tag has extra attributes.

How to use

  1. Drop a file or paste the exact content.
  2. Pick the hash algorithm.
  3. Copy the integrity value or the tag.

What it supports

SHA-256/384/512 in base64 integrity format. Text input is UTF-8 encoded first — compute over the exact bytes the server will send. The tag preview is a generic script element; adapt it to your markup. Files up to 50 MiB.

Related tools

Related guides