PII masking tester for session replay
Paste a form, a template or a whole page. The tester runs the Replayowl recorder's real masking rules on it in your browser and shows the page as the recording would see it, with a list of every value that was masked and why.
Scripts are not run. Only values present in the HTML are checked; values typed later are masked the same way by the recorder.
| Where | In your HTML | In the recording | Why |
|---|
How PII masking in session replay works
A session replay recorder copies the page into a data structure: every element, every piece of text, every attribute, and then every change. Masking is a rule applied while that copy is made. When a text node or a form value matches a rule, the recorder writes a placeholder instead of the real characters. In Replayowl the placeholder is a * per character, so the layout in the replay stays the same.
Where the rule runs matters more than what it looks like. If masking happens in the visitor's browser, the real text never leaves the page. If it happens on the server, the text has already been sent over the network and processed by someone else's code before it was hidden. Replayowl masks only in the browser, before a batch is built.
What gets masked by default
- Every text input and textarea, unless you mark it with
data-ro-unmask. - Fields that can never be unmasked: password inputs, fields with an
autocompletevalue starting withcc-,current-password,new-passwordorone-time-code, and fields whose name or id contains words like password, pin, token, otp, ssn, iban, cvv or cardnumber, in several languages. - Email addresses in page text, and in
title,alt,placeholderandaria-label. - Runs of 12 to 19 digits, with optional single spaces or dashes, which covers card numbers and most account numbers.
Not masked by default: names, street addresses and short numbers in regular page text, page URLs and the page title, hidden inputs, select values, and attributes other than the four above. Long numbers such as IBANs, which have more than 19 digits, are only partly masked by the digit rule. If a page shows those, mark the area with data-ro-mask or turn on maskAllText. Choose the example "Account page" above to see both.
The three attributes
| Attribute | Effect |
|---|---|
data-ro-mask | Mask all text in the element and its children, including title, alt and placeholder. |
data-ro-block | Do not record the element at all. The replay shows a hatched box of the same size. |
data-ro-unmask | Record the real value of this input, or of the inputs inside the element. Ignored on always-sensitive fields. |
Attributes also work inside open shadow roots: the recorder looks for them across the shadow boundary. See session replay and Shadow DOM.
How to check masking on your own site
- Paste the HTML of your sensitive pages here (View Source, or copy the element from DevTools) and look at the table: every row is something the recording would contain in changed form; anything not listed is recorded as it is.
- Add
data-ro-maskordata-ro-blockwhere real names, addresses or messages show up, and paste again. - On a staging site, record a real session, open DevTools, Network, and look at the requests to your ingest endpoint. The bodies are gzipped JSON; search the decoded text for a value you typed. It should not be there.
- Watch the replay once. Masked fields show stars, blocked areas show a hatched box.
Coming from another tool? Its attributes are not read by Replayowl. The tester flags the common ones, and masking attributes by vendor lists the equivalents with links to each vendor's documentation. For the rest of the privacy setup, read masking and privacy and session replay and GDPR.
Questions and answers
Does this tester send my HTML anywhere?
No. The HTML is parsed and masked in this tab with DOMParser, scripts in it never run, and nothing is uploaded. You can disconnect from the network after the page loads and it keeps working.
Is this the same masking the recorder uses?
Yes. The tester runs a copy of the recorder's privacy module (src/recorder/privacy.ts in the Replayowl repository), with the same defaults and the same five options. The real recorder also masks values typed after the page loads; the tester can only see values written in the HTML.
Why are masked words still the same length?
Each character is replaced with *, and spaces are kept. That keeps line breaks and element sizes the same, so the replay looks like the real page without showing what was written. Password fields are the exception: they always show eight dots, so even the length is hidden.
Will Replayowl respect data-hj-suppress or other vendors' attributes?
No, Replayowl only reads data-ro-mask, data-ro-block and data-ro-unmask. The tester lists the other vendors' attributes it finds and can add the matching Replayowl attribute next to each one. The full list is in masking attributes by vendor.
Last updated .
Try Replayowl on your own site
Hosted
Free for 1,000 sessions a month
Then $29 a month for 10,000. Paste one script tag and watch your first session a minute later.
Start freeSelf-hosted
Free, no session caps
One Cloudflare Worker with your own R2 bucket and D1 database. Nothing is sent to us.
Self-host on CloudflareOr watch it record you first in the live demo, no sign-up.