HomeDeveloper toolsSubresource Integrity Builder

Subresource Integrity Builder

Hash exact UTF-8 source text and generate an integrity attribute.

Processing stays in your browser. Hashes pasted UTF-8 bytes only, not a fetched asset. Newlines, byte encoding and CORS settings must match the served file.

How to use the subresource integrity builder

Review the example input and the labeled settings for subresource integrity builder. Paste your own data or use the optional UTF-8 upload where shown. Choose Run tool, inspect the result and any visual preview, then copy or download it. Changing an input clears the previous result.

Example

The output combines the selected hash name and Base64 digest.

Good to know

Hashes pasted UTF-8 bytes only, not a fetched asset. Newlines, byte encoding and CORS settings must match the served file.

Separate representation, integrity and trust

Use public test values for the first run and identify exactly what property you want to inspect. Encoding makes data representable in another format; hashing produces a digest; signing and encryption have different purposes. A readable token, matching digest or parsed key does not by itself establish who created the data or whether it should be trusted. The scope stated on this page is the boundary of the result.

Inputs and settings explained

Input
Paste the input as plain text using the demonstrated structure. Keep meaningful line breaks, quotation marks and separators. Start with a small representative example and increase its size only after the output is understood. Read the tool's restrictions before including unsupported syntax or binary data.
See the demonstration value
console.log("hello");
Hash
Choose the hash setting that matches your task. Available choices: SHA-384; SHA-256; SHA-512. The supplied example selects SHA-384. Compare the result after changing this setting; the options describe different operations or conventions.
Asset URL
Use the address format indicated by the label and example. Include a scheme when a full URL is requested; a hostname, origin and full path are different values. Remove credentials or private query parameters when preparing a reproducible example.
See the demonstration value
https://example.com/app.js

How to review the result

Compare the exact bytes and encoding used by the other system. Spaces, line endings, Unicode encoding and Base64 variants can all affect the result. For cryptographic material, confirm algorithms and parameters against the protocol you are implementing. Do not put real credentials in a bug report or screenshot. Review any external-service disclosure before starting a lookup; a service-assisted check has different data handling from a local transformation.

  • Confirm the expected encoding, algorithm and byte sequence with a public known example.
  • Get comparison values and trust anchors from an independent source you trust.
  • Keep generated secrets out of shared downloads, source control and support messages.

Common questions about this workflow

Does decoding or inspecting a token verify it?

No. Reading fields and checking syntax are separate from verifying a signature, issuer, audience, expiry and the surrounding application's policy. Use the verification procedure required by the actual protocol.

Does no reported issue prove that a value is safe?

No. The result covers the checks described on this page and the supplied input only. A local utility cannot establish every security property, and a lookup may have incomplete coverage. Apply your application's complete validation and key-management requirements.

Built by DevBricks Technologies. Found an unexpected result in Subresource Integrity Builder? Report a reproducible example with the tool URL, settings and a small sample that contains no private information.