[Free tools](https://muteware.com/tools/) / Remove API keys from logs

# Remove API keys and passwords from logs

Paste a log, a stack trace or a config file. Keys, tokens and passwords are replaced by placeholders such as \[SECRET\_1\], so you can share the rest with a colleague, a support desk or an AI chat. Nothing leaves your browser. Click *Try an example* to see it work.

# Scrub text before you paste it into AI.

Paste anything below. Emails, phone numbers, IBANs, card numbers, API keys and passwords are replaced with placeholders right here in your browser. Nothing is uploaded, and there is no account.

This page has an interactive tool that runs in the browser. Open it at https://muteware.com/tools/remove-api-keys-from-logs/

## How this page works

- Detection runs in JavaScript on this page. You can confirm in your browser's network tab that nothing is sent while you type.
- The map from placeholders to your real values is kept in the page's memory and disappears when you close or reload the tab. Restore the reply before you leave.
- It finds patterns, not meaning. Names, street addresses and project names are only hidden when you add them as custom terms. Read the result before you share it.

The extension does the same from any page with a right-click or a shortcut, remembers your settings and custom terms, and can keep the placeholder map between sessions if you want it to.

## What it catches

- Keys and tokens with a known shape, for AWS, GitHub, GitLab, Stripe, OpenAI, Anthropic, Google, Slack, SendGrid, npm and Twilio, and JSON Web Tokens.
- Bearer tokens in Authorization headers.
- Passwords inside URLs, such as the one in a database connection string. The host name stays, so the line is still useful.
- Values after telling words such as password, secret, token or api\_key, in `key=value` and `key: value` notation.
- Private key blocks.

## What it leaves alone

A secret without a recognisable shape and without a telling word in front of it will pass. Internal host names, user names and IP addresses also stay on this page, unless you switch those detectors on under *What gets hidden, and your own terms*. Read the result before you share it.

And one rule that no tool changes: a key that has already been pasted somewhere it should not be is exposed. Replace it. The steps are in [what to do after pasting a key into an AI chat](https://muteware.com/guides/leaked-api-key-in-ai-chat/).

## Questions

### Is it safe to paste real keys on this page?

The page does not send what you paste. You can check that in the network tab of your browser, and the page works without a connection once it has loaded. That is the difference with online tools that process your text on a server.

### Can I do this for whole files?

The [Scrub for AI](https://muteware.com/scrub-for-ai/) extension scrubs whole log files, CSV exports and documents with Pro, and can scrub automatically when you paste into an AI chat.

### Does it also catch email addresses and IP addresses?

Yes, when you switch those on. This page starts with only the detectors for secrets. The [full tool](https://muteware.com/scrub/) starts with all of them.

## Related

- [Remove email addresses](https://muteware.com/tools/remove-email-addresses-from-text/)
- [Remove phone numbers](https://muteware.com/tools/remove-phone-numbers-from-text/)
- [Redact IBANs and card numbers](https://muteware.com/tools/redact-iban-and-card-numbers/)
- [Scrub online](https://muteware.com/scrub/): all detectors at once, with your own terms.
- [How to remove personal data from text before you use AI](https://muteware.com/guides/remove-personal-data-from-text-before-ai/)

### Do this without leaving the page you are on

Scrub for AI does the same from a right-click or a shortcut on any page, remembers your own terms and puts the real values back in the answer. Free, runs offline, no account.

[Add to Chrome, free](https://chromewebstore.google.com/detail/scrub-for-ai-hide-persona/madopcokggkmjlmbiifobacolinpabbg) [Firefox](https://addons.mozilla.org/firefox/addon/scrub-for-ai/) [See the extension](https://muteware.com/scrub-for-ai/)

---

Source: https://muteware.com/tools/remove-api-keys-from-logs/
Summary: Paste a log or config file and API keys, bearer tokens, private keys and passwords are replaced by placeholders. It runs in your browser, so the secrets are not uploaded anywhere.
Publisher: Muteware, support@muteware.com
