ToolsCVE trackerATT&CKCIDRDNSEmail securityHeadersTrackersTLSMy connectionCSP builderEmail headersJWTCert decoderPassphrasePassword checkHash & encodesecurity.txtDNSSEC & CAA

d4 · tools · hash & encode

Hash & encode.

Digests, encoders and Subresource Integrity in one place: SHA-1 through SHA-512 of any text or file, conversion between Base64, base64url, URL percent-encoding, hex and HTML entities, and ready-to-paste SRI attributes. Everything runs in your browser; nothing you type leaves this page.

Hash

Type or paste text, or choose a file to read locally. Digests are computed with the browser's crypto.subtle and shown as hex and Base64. A file, if chosen, takes priority over the text box.

Encode / decode

Bidirectional conversion for Base64, base64url, URL percent-encoding, hex and HTML entities. Text is handled as UTF-8, so accents and emoji round-trip correctly.

Subresource Integrity

Paste the exact contents of a script or stylesheet, or choose the file, and get the integrity attribute to add to your <script> or <link> tag. A file, if chosen, takes priority over the text box.

The integrity hash must be computed over the exact bytes the browser receives. If the server transforms the response (minification, differing line endings, a byte-order mark), recompute against the delivered file. For cross-origin resources also add crossorigin="anonymous".