Why scrub webhook payloads before sharing them
Automation work is full of raw payloads. A Stripe event, a form submission, a CRM update or a support ticket arrives as JSON, and when something breaks the fastest way to get help is to paste that JSON into a chat window, a bug report or an AI assistant. The problem is that webhook bodies are packed with personal data: customer emails, phone numbers, shipping addresses, IP addresses, session tokens and sometimes payment details. Pasting them into a third-party service is a data transfer, and depending on where your customers live it can fall under GDPR, CCPA or similar privacy laws.
Sending real customer data to a large language model is a particularly easy mistake to make. The prompt feels like a private conversation, yet the text may be logged, retained or reviewed according to the provider's terms. Scrubbing the payload first lets you keep the structure that matters for debugging while removing the values that identify a person. This tool does that locally, in seconds, without sending the original text anywhere.
What the scrubber detects
- Email addresses. Standard addresses, including plus-addressing and subdomains, become
[EMAIL_1],[EMAIL_2]and so on. - Phone numbers. International numbers that start with a plus sign or contain separators such as spaces, dashes, dots or brackets, with nine to fifteen digits. Plain digit runs such as order numbers and timestamps are deliberately left alone to avoid false positives.
- Credit and debit card numbers. Thirteen to nineteen digit sequences are checked with the Luhn algorithm, the same checksum card networks use, so random long numbers are not mistaken for cards.
- Tokens and API keys. Bearer headers, JSON Web Tokens, OpenAI style keys, Stripe keys, Slack and GitHub tokens, Google API keys and AWS access key IDs.
- IP addresses. IPv4 addresses, which many privacy regulations treat as personal data.
- Government IDs. US social security number formats and similar dashed national ID patterns.
- Names and addresses in common JSON keys. When the input is valid JSON, values stored under keys such as
first_name,lastName,full_name,address,street,doborbirthdateare replaced, because free-text names cannot be found reliably by pattern matching alone.
Numbered placeholders keep your debugging intact
By default the same original value always receives the same placeholder inside one run. If jane@example.com appears in five places, all five become [EMAIL_1]. That matters when you ask someone, or an AI model, to trace a problem: they can still see that the customer in the order object is the same customer in the invoice object, without learning who the customer is. Turn the option off if you prefer plain labels such as [EMAIL]. The mapping lives only in memory on your page and disappears when you close the tab, so there is no way to reverse the redaction later. Keep your original payload if you need it.
How to use it
- Copy the payload from your automation tool's execution log, from your webhook inspector or from the server log. Plain JSON, URL-encoded forms, CSV snippets and multi-line log files all work, because detection is based on the text itself.
- Paste it into the input box and review which categories are selected. If you are debugging a payment problem you may want to keep IP addresses, for example; if you are sending the text to an AI model, leave everything on.
- Press Scrub PII. The output box shows the cleaned text and the counters show what was found in each category.
- Read the result. Look for names in free-text fields, internal URLs with customer slugs, company names and anything else specific to your business.
- Copy or download the scrubbed text and share it.
Not sure what to expect? Press Load Sample Data to fill the input with an invented order webhook that contains a fake customer, a standard test card number and a fake token, and see the result immediately.
Privacy and how it works
The scrubber is plain JavaScript running in your browser. It uses regular expressions and a checksum to find sensitive patterns and string replacement to mask them. There is no network request involved in processing your text, no analytics on the contents and no server that could store it. Our privacy policy explains the guarantee in detail. You can disconnect from the internet after the page loads and the tool will still work.
Limitations
No automatic redactor is perfect, and you should treat this one as a first line of defence. Names that appear in free text, such as a customer's message body, are not detected unless they sit under a recognised JSON key. Unusual phone formats, addresses written as prose and identifiers specific to your industry may be missed. In the other direction, a long number that looks like a phone number might be masked when it is really an ID. Always read the scrubbed output before it leaves your machine. For regulated data such as health or financial records, follow your organisation's compliance rules instead of relying on any single tool.
Practical tips for safer automation debugging
- Log only the fields you need. Dropping unused fields at the webhook node is better than scrubbing them later.
- Use test mode and fake customers whenever you build a new workflow, so real data never enters the picture.
- Remove or mask personal data before it goes into an AI node, and tell your users in your privacy policy which processors you use.
- Combine this tool with the n8n workflow sanitizer when you share a whole workflow together with an example payload.