Skip to main content
Sample Logs & DocumentsLoad sample snippet

Redaction Rules & Patterns

Toggle built-in detectors or add custom sensitive keywords and regex patterns.

Email Addresses/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/
1
IPv4 Addresses/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/
2
API Keys & Secrets/\b(?:sk_live|pk_live|ghp_|glpat-|xoxb-|AKIA)[a-zA-Z0-9_-]{12,}\b/
2
Credit Card Numbers/\b(?:\d{4}[ -]?){3}\d{4}\b/
Social Security Numbers (SSN)/\b\d{3}-\d{2}-\d{4}\b/
JWT / Bearer Tokens/\beyJ[a-zA-Z0-9_-]{10,}\.[a-zA-Z0-9_-]{10,}\.[a-zA-Z0-9_-]{10,}\b/
262 characters

Redaction Preview

5 matches redacted

Original text remains safely in memory. Inspect masked output before copying.

2026-11-12 14:22:01 [ERROR] Failed connection from [REDACTED_IP]:443 Authorization: Bearer [REDACTED_KEY] User session [REDACTED_EMAIL] timed out on worker node [REDACTED_IP] Exception: Invalid API signature for client [REDACTED_KEY].
Tool Documentation & Guide

Text & Log Redactor Guide

Mask credentials, PII, API tokens, and custom patterns locally before copying or sharing snippets.

Overview

The Text & Log Redactor sanitizes confidential data from error traces, server logs, configuration files, and support tickets. It offers built-in opt-in pattern detectors (emails, IPv4 addresses, API keys, credit cards, SSNs, JWTs) and custom literal/regex rules with configurable mask styles (tags, blackout blocks, asterisks). It resolves overlapping match intervals safely, includes timeout safeguards against regex backtracking, and preserves original text in memory with distinct copy actions.

How to Sanitize and Redact Sensitive Text

1Paste Text or Load a Sample

Enter your raw text, server log, or config file into the input editor.

2Configure Redaction Rules

Toggle predefined rules or add custom keywords and regex expressions with your preferred masking style.

3Inspect Safe Previews

Switch between the highlighted badge preview, clean plain output, and side-by-side comparison views.

4Copy Redacted Text

Use the Copy Redacted Text button to safely paste sanitized snippets into issue trackers or public chats.

Matching Rules & Overlap Resolution
  • Non-Destructive Overlap Merging: When multiple rules match overlapping characters, the tool merges the intervals to prevent double-redaction or slice corruptions.
  • Zero-Length Match Protection: Empty regex matches (such as boundary anchors) are safely bypassed without entering infinite loops.
  • Unicode & Multi-Byte Safety: Redaction boundaries cleanly handle multi-byte Unicode characters, emojis, and non-Latin scripts.
100% In-Browser Sanitization
  • Client-Only Processing: Your confidential snippets, logs, and credentials never touch a remote server or API endpoint.
  • Originals Stay Private: Original unredacted text is stored only in transient component memory and never persisted.