How it works
Your text goes to a Web Worker, a background thread inside this tab, so even a 5 MB log does not freeze the page. It runs the gitleaks secret rules and the other checks listed under What does PasteSafe detect?
The worker has no network code at all.
Each unique value gets a stable placeholder such as AWS_ACCESS_KEY_1 or EMAIL_2, so the AI's answer still makes sense. The table that maps placeholders back to real values lives only in this tab's memory. Nothing is saved: no cookies, no local storage, no accounts. Close the tab and it is gone.
The service worker
A small service worker (sw.js) keeps a copy of this site's own files in your browser, so the page can load without a connection. It only requests files from this same site, and it never sees your text, because the page never sends your text anywhere. The connection panel above tells you when that copy is saved.
Limits
Known key formats are caught reliably. Plain passwords, names and street addresses in free text can slip through. Read the cleaned text before you paste it.
There is no analytics script. Visitor numbers come from the hosting dashboard, which needs nothing on the page. The ads are plain links to our own apps, with their logos served from this site.
Questions about pasting logs into AI
Is it safe to paste logs into ChatGPT?
Only after you remove the secrets and personal data. Logs often hold API keys, session tokens, emails and IP addresses, and once you send a message it is stored on the AI provider's servers, out of your control. Paste the log here first and send the cleaned copy instead.
What are the data privacy concerns with ChatGPT?
The main concern is that everything you paste is kept on someone else's servers. Depending on your plan and settings, chats may be stored, reviewed or used to improve models, and a leaked API key keeps working until you rotate it. Masking before you paste keeps keys and customer data out of the chat.
What is PII masking?
PII masking replaces personally identifiable information, such as emails, phone numbers and card numbers, with placeholders, so text can be shared without exposing the people in it. PasteSafe gives each unique value its own placeholder, like EMAIL_1, so the AI can still tell values apart. It does not mask names.
How do I mask PII data in logs?
Paste the log into the editor and copy the cleaned text: emails, IP addresses, card numbers, IBANs and phone numbers are replaced automatically. For logs your apps write every day, also mask PII in your logging code, so it never reaches the log files in the first place.
How do I remove API keys and secrets from logs or a stack trace?
Paste the log or stack trace here and copy the cleaned version, where known key formats become placeholders like STRIPE_KEY_1. The redacted API key never leaves your browser. If the key was already shared or committed to GitHub, rotate it as well: removing it from a log or from git history does not revoke it.
Can I sanitize a whole log file?
Yes. Drop a text file onto the editor and it is read and cleaned on your device in one pass, even a 5 MB log. Above 300 KB or 5,000 lines the highlights and animation switch off, but every line is still masked.
Is my text uploaded anywhere?
No. The scan runs in a background thread inside this tab, the page's Content Security Policy forbids it from opening network connections, and nothing is saved to cookies or local storage. The Check it yourself panel counts network requests live, so you can verify it.
Can I get the real values back after the AI answers?
Yes. Paste the AI's reply into Put the real values back and every placeholder turns back into its original value, in this tab only. Close the tab and the mapping is gone.
Step by step help, with command line alternatives: read the guides on masking PII in logs, sanitizing HAR files and what to do after an API key leaks.