Repr-Digest Builder & Analyzer
Compute or analyze the RFC 9530 Repr-Digest field for UTF-8 text using SHA-256 structured-field syntax. Distinguishes representation integrity from message-content integrity and performs all work locally.
🔒 100% Client-Side & Private — processed locally in your browser. Files never leave your device.
Options
Your result will appear here
Type or paste your input above, adjust the options, then press Run. Tip: press Ctrl+Enter to run, and ? for every shortcut.
How it works
Building and verifying the digest field
This tool computes or checks an RFC 9530 Repr-Digest for UTF-8 text. Build mode returns the field as sha-256=: followed by a base64 SHA-256 value in colons. Verify mode recomputes the digest and compares it with the expected value you supply, reporting Match, Mismatch or Invalid in a small table.
When a representation digest helps
Reach for it to hand a client a representation hash so it can detect corruption in transit, or to check a Repr-Digest header you received. It also helps debug an integrity mismatch by showing whether the exact text and the header value agree.
The mode switch and expected value
Mode chooses building or verifying; in verify mode the digest option holds the expected value. The tool first checks that value shape with a strict pattern, reporting Invalid when it is not a well-formed sha-256 field, then compares it byte-for-byte with the computed digest.
What Repr-Digest does not prove
This tool hashes the UTF-8 bytes of the text you enter, while a real deployment must hash the exact representation bytes its protocol specifies. A digest detects accidental change only and does not authenticate the producer, so use a signature for authenticity. Content-Digest covers message content after codings, which is a different field.
Where the hash is computed
The hashing runs locally through the browser crypto API. Your text is never uploaded and no request is made, so a digest can be checked offline.
Questions
How is Repr-Digest different from Content-Digest?
Repr-Digest identifies the selected representation, while Content-Digest identifies message content after transfer/content codings are considered.
Is this an authenticity signature?
No. A digest detects accidental changes but does not authenticate who produced the representation. Use a signature when authenticity is required.
What bytes are hashed?
This tool hashes the UTF-8 bytes of the entered text. Real deployments must hash the exact representation bytes specified by their protocol.
Related tools
See category- HTTP Header Analyzer
- Content-MD5 Builder & Analyzer
- :nth-child An+B Evaluator
- .editorconfig Generator
HTTP Header Analyzer
Paste any HTTP headers and auto-detect, parse and check every one of them.
Content-MD5 Builder & Analyzer
Build or verify legacy Content-MD5 integrity values — the header is deprecated.
:nth-child An+B Evaluator
Parse CSS An+B (:nth-child, :nth-of-type) microsyntax, validate it, and list which child indices it matches.
.editorconfig Generator
Generate an .editorconfig with your indentation, line-ending and charset settings.