What is a log anonymizer?
A log anonymizer finds the sensitive values in a block of text and replaces them before you share it. Logs are the first thing people paste into a bug report, a forum question or a chat with a vendor, and they are full of things that should not leave the company: client IP addresses, e-mails, session tokens, API keys, card numbers, tax IDs and the user name hidden inside a file path.
This tool takes your text on the left and shows the cleaned version on the right. The page opens with a sample log that contains only made-up values, so you can see the result before pasting anything of your own. There are three modes. Markers is the default and the most useful: every value becomes a label such as IP_1, EMAIL_2 or USER_1, and the same value always gets the same label. The log stays readable, and you can still follow one IP address across fifty lines. Remove deletes the value. Partial mask keeps a hint, for example 203.0.*.* or **** **** **** 4242.
Thirteen categories can be switched on or off: tokens and keys (JWT, Bearer, AWS, GitHub, Slack, Stripe and Google keys, PEM private keys, and the value after password=, token= or api_key=), URLs including user:password@ credentials, e-mails, card numbers, CPF and CNPJ, MAC addresses, UUIDs, IPv6, IPv4, phone numbers, user names in paths, and domains and hosts. Everything runs in your browser. Nothing is uploaded.
How to anonymize a log
- Paste your log into the left box. The page starts with a sample, so clear it first.
- Pick a mode. Use Markers if someone will need to read the log, Remove if the values are irrelevant, Partial mask if a hint such as the last four card digits helps.
- Turn categories off if they get in the way. For instance, switch off UUIDs when they are your own request IDs and are safe to share.
- Decide about private IPs. By default only public addresses are replaced. Tick the box to also replace private ranges (10.x, 172.16-31, 192.168.x, loopback, link-local).
- Read the "What was replaced" report: per category, how many occurrences, how many different values and a partly hidden example (never the full value).
- Read the right side once more, line by line, then copy it. If you used Markers, download the map only if you will need to restore the original, and keep it private.
Examples
A web server line
203.0.113.7 - maria@example.com [22/Nov/2026] "GET /api/users?token=abc123 HTTP/1.1" 200
203.0.113.7 - - "POST /login" 401In Markers mode both lines start with IP_1, so the repeated failed login stays easy to spot, and the e-mail becomes EMAIL_1.
An application error with a path and a key
Failed to load C:\Users\Joao\app\config.json
aws_access_key_id=AKIAIOSFODNN7EXAMPLEOnly the user name in the path is replaced, so the rest of the path is still useful. The AWS key is replaced as a whole.
Partial mask
| Original | Masked |
|---|---|
| 203.0.113.7 | 203.0.. |
| ana@example.com | a@*****.com |
| 4242 4242 4242 4242 | ** ** 4242 |
Undoing it with a map
In Markers mode you can download a JSON file that maps each marker back to its original value. Later, paste the anonymized text on the left, choose "Undo with a saved map..." and load the file: the original text is restored. Anyone holding that file can reverse everything, so treat it like a password.
Common mistakes
- Sharing without reading. The tool is pattern based. Read the output before you post it.
- Expecting names and addresses to disappear. It does not detect people's names or postal addresses in free text, and hosts without a dot such as
db01are not seen. - Trusting version numbers. A string like
1.2.3.4looks exactly like an IPv4 address, so a version may be replaced. - Forgetting private IPs. If your internal network layout is sensitive, tick the box for private ranges.
- Sending the map along with the log. It defeats the purpose: with the map, anyone can restore the original.
- Calling it anonymous. Replacing values with markers is pseudonymization. Usage patterns can still identify someone.
Frequently asked questions
Is my log uploaded anywhere?
No. Detection and replacement happen in your browser, and no request is made with your text.
Why was a number not treated as a card?
Card numbers are only replaced when they pass the Luhn check, and CPF and CNPJ only with valid check digits. A repeated-digit number such as 111.111.111-11 is rejected on purpose. In the other direction, a 13 to 19 digit number that happens to pass Luhn will be treated as a card.
Why were main.py and readme.md left alone?
Domains and hosts are matched only against known top-level domains, so file names such as main.py, app.log or node.js stay intact.
Does running it twice change the markers?
No. Running it again on the result does not rename markers, and if your text already contains IP_1 it is not reused for a different value.
Is the result truly anonymous?
No. Whoever has the map can reverse it, and behavior patterns can still point to a person. Treat the output as safer to share, not as risk free.
What can I do next?
Compare the original and the result with the text diff to check exactly what changed, or build your own patterns in the regex tester. For fake sample inputs, use the test documents generator.