Subresource Integrity Byte-Size
Calculate the base64-encoded size of an SRI hash to assist in CSP header length planning.
Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch are delivered without unexpected manipulation. This tool calculates the overhead added to your HTML or Content Security Policy (CSP) headers when implementing SRI. This is critical for developers managing large numbers of third-party scripts and styles.
Planning for header size is important because overly large CSP headers can lead to 431 Request Header Fields Too Large errors. By understanding the footprint of your integrity hashes, you can optimize your security headers and ensure that your site remains both secure and accessible. This utility aids in the technical implementation of modern web security best practices.
Privacy: All string length calculations occur on the client side. No hash data is transmitted to external servers.
Terms: The calculation assumes standard Base64 encoding rules for SHA-family hashes. Always verify against your specific CSP implementation.
Terms: The calculation assumes standard Base64 encoding rules for SHA-family hashes. Always verify against your specific CSP implementation.
Need help with Subresource Integrity Byte-Size? Contact our support team below.