BuildUtilities

Secret Redactor – Free Online Tool

Find and mask API keys, tokens, emails, and private keys in code or logs before you share them.

Everything here runs in your browser. Nothing you paste is uploaded, logged, or sent anywhere — which is rather the point of a tool you feed secrets to.

5 known credentials found.

What was found

AWS access key id1 occurrence · line 2

AKIAIOSFODNN… → [REDACTED_AWS_ACCESS_KEY_1]

OpenAI API key1 occurrence · line 3

sk-proj-9fKq… → [REDACTED_OPENAI_KEY_1]

Database connection string1 occurrence · line 4

postgres://a… → [REDACTED_CONNECTION_STRING_1]

Email address1 occurrence · line 6

dev@example.… → [REDACTED_EMAIL_1]

JSON Web Token1 occurrence · line 8

eyJhbGciOiJI… → [REDACTED_JWT_1]

Hear when a new tool ships

No schedule, no newsletter — one email when a new tool ships. Unsubscribe in a click.

Example

Input

AWS_KEY=AKIAIOSFODNN7EXAMPLE
const token = "sk-proj-abc123def456ghi789jkl012mno345pqr";
contact: dev@example.com

Output

AWS_KEY=[REDACTED_AWS_ACCESS_KEY_1]
const token = "[REDACTED_OPENAI_KEY_1]";
contact: [REDACTED_EMAIL_1]

Each secret is replaced by a labelled placeholder. The numbering means you can still tell two different keys apart in the redacted text.

How to Use Secret Redactor

  1. 1

    Paste

    Drop in the code, config, or log output you were about to share.

  2. 2

    Review

    Each finding is listed with its type and line so you can see what was caught and why.

  3. 3

    Copy the clean version

    Copy the redacted text, with secrets replaced by labelled placeholders.

What is Secret Redactor?

Pasting real code into a chat window is now part of everyday debugging, and it is the easiest way to leak a credential without noticing. The Secret Redactor scans text for the key formats the major providers use, spots private key blocks and JSON Web Tokens, and flags high-entropy strings that look generated rather than written. Findings are grouped by type so you can see what it caught before you trust the result. The scan happens entirely in your browser: a tool that asks you to paste your secrets somewhere else would defeat its own purpose.

Common Use Cases

  • Scrubbing a stack trace or config file before pasting it into an AI assistant
  • Cleaning logs before attaching them to a bug report or support ticket
  • Checking a snippet for leaked credentials before committing it
  • Sanitising output before sharing a screen recording or blog post

Share

Share a link to this tool. Results can be passed via URL parameters.

https://buildutilities.com/share/secret-redactor

Frequently Asked Questions

More Security Tools

Security-focused tools for passwords, tokens, and cryptography.

View all Security tools
Tip Jar