Subresource Integrity (SRI) Hash Generator
Paste any text, or pick a file, to get an
integrity="sha384-…" string you can drop into a
<script> or <link> tag. All
three SHA variants are computed.
Runs entirely in your browser — your bytes never
leave the device. Replacement for the archived
srihash.org.
No input yet.
Integrity strings
SHA-256
(empty) SHA-384 (recommended)
(empty) SHA-512
(empty) Ready-to-paste snippet (SHA-384)
Type the URL you intend to use; we won't fetch it. We just slot
the integrity string + crossorigin="anonymous" in
for you.
(pick a SHA-384 hash to build the snippet) Notes
- Local only. Files never leave your browser.
- SHA-384 by default. W3C-recommended; gives a comfortable safety margin without paying SHA-512 size in the attribute.
- No URL fetch. If your script lives at a URL, download it locally and pick the file. (Cross-origin
fetch()requires a server-side proxy; we stay browser-only.) - 25 MiB cap — protects the UI from hashing absurd payloads.