Mask Sensitive Data in Logs (Replace IPs, Hostnames, Passwords and Tokens Before Pasting into AI or Support, Then Restore the Reply)

Completely free, with no extra charges. You may freely use the output commercially.

About this tool

This tool is for developers and IT admins who want to paste an error log or config file into ChatGPT, Claude or another AI, a vendor support ticket, or a GitHub issue, but first need to swap internal IP addresses, hostnames, email addresses, passwords and API keys for placeholder values. The same value always becomes the same placeholder, and an IP address stays an IP address and an email address stays an email address, so the meaning of the log (which connection went where) is not lost.

Paste the answer you get back from the AI or support team and the placeholders are turned back into the original values, so you can use a corrected config file in your own environment as is. The placeholders come from ranges reserved for documentation (IPv4 from RFC 5737, IPv6 from RFC 3849, domains under .example from RFC 2606), so they can never be confused with someone else's real address. All processing happens entirely in your browser (no data is sent).

Paste and replace

What to replace
What to replace

Replaced values

If a value was replaced by mistake (a version number, a public address needed for the question, etc.), uncheck “Replace” to restore it.

Restore placeholders in the reply

Paste the reply from the AI or support, or a corrected config file, to turn the placeholders in the list above (10.200.0.1, domain1.example, [PASSWORD_1], etc.) back into the original values. The mapping is lost when you close this page, so save it if you want to restore later.

How to use

  1. Paste a log or config file into “Original text”, or choose one with “Load file”. Click “Try a sample” to see how replacement works.
  2. The text with sensitive data replaced by placeholders appears in “Masked result”. Check “Replaced values” to see what became what, and uncheck any value that was replaced by mistake.
  3. Company names, product names and server names without dots (such as db-prod-01) cannot be recognized by their format, so list them under “Also replace these words”.
  4. Click “Copy result” and paste it to the AI or support to ask your question.
  5. Paste the reply or corrected config into “Restore placeholders in the reply” to get the text with the original values back.

Which values are replaced, and how

  • IPv4 addresses: Internal addresses (10.x.x.x, 172.16–31.x.x, 192.168.x.x, 100.64–127.x.x) are assigned 10.200.0.1 onward, and internet-side addresses are assigned the documentation addresses 203.0.113.1, 198.51.100.1 and 192.0.2.1 onward. Because “internal or external” is preserved, questions about NAT or firewalls still make sense. Subnet relationships (whether two addresses are in the same /24) are not preserved.
  • Hostnames and domains: db01.example-corp.co.jp becomes db01.domain1.example. Common names such as www, api, mail and db01, and AWS region names, are kept; other labels become host1 and so on. Public service domains such as github.com and amazonaws.com are kept, and only the bucket names and other labels below them are replaced.
  • Email addresses: They take the form user1@domain1.example. The domain uses the same placeholder as the hostname, and if the local part matches a user name in a path, both become the same user1.
  • Passwords and tokens: Values of key names containing password, secret, token, api_key, client_secret and so on (in JSON, YAML, .env, XML and URL queries), Authorization headers, cookie values, credentials in URLs like postgres://user:pass@, AWS, GitHub, Slack, Stripe, OpenAI and other API keys, and JWTs are replaced with markers such as [PASSWORD_1] and [TOKEN_1].
  • What is kept: 127.0.0.1, 0.0.0.0, netmasks such as 255.255.255.0, version numbers such as “version 1.2.3.4”, ::1, domains under .example and .test, and times such as 12:34:56.

A value that already appears in the input (for example, 203.0.113.1 in the original log) is never used as a placeholder, so two different values never end up with the same placeholder and get mixed up when restoring.

What to check before pasting into an AI

Values that can be recognized by their format are replaced automatically, but company names, customer names, project code names, server names without dots and people's names in the log cannot be detected. Read through the result once, and if any remain, add them to “Also replace these words”. Long random strings that were left unreplaced (possible keys or tokens) are shown as a warning below the result.

If your workplace has rules about what information may be entered into generative AI, follow them. This tool saves you the work of replacing values; it does not decide which information may leave your organization.

To hide information in screenshots, use the image redaction tool; for PDFs, the PDF redaction tool; and for author names and other data left in Word and Excel files, the Office metadata cleaner. You can inspect the contents of a browser network recording (HAR file) with the HAR Viewer.